Developer first APIs for Screen Sharing, Audio and Video Conferencing
Easily add Screen-Sharing/Audio/Video Conferencing capability in your web app with just a few lines of code.
Javascript SDK
Clear and concise API
Prebuilt widgets for easy integration
const DSS = require('deadsimplescreensharing')
DSS.init()
DSS.createMeeting().then((meeting) => {
// Share Screen (Screen Sharing)
meeting.shareScreen();
// Share Microhpone (Audio Conference)
meeting.shareMicrophone();
// Share Video (Video Conference)
meeting.shareVideo();
});
Create a Session
To create a meeting session just call the DSS.createMeeting()
method and it will create a new meeting. The create meeting method returns a Promise with a meeting object and we can do a lot of interesting stuff with the meeting like calling meeting.shareScreen()
to start screen sharing
DSS.createMeeting().then((meeting) => {
// Printing out the meetingId
console.log(meeting.meetingId)
// Sharing Screen
meeting.shareScreen();
//Sharing Microphone
meeting.shareMicrophone();
})
Join a Session
To join a session which another user has created we can call the DSS.joinMeeting(meetingID)
method, and it will also return a promise and provide us with the meeting object and we can call the same methods on that object like before.
DSS.joinMeeting(meetingId).then((meeting) => {
// Sharing microphone
meeting.shareMicrophone();
})
Sharing Screen, Microphone and Camera
Sharing the Screen, Microphone and Camera is very simple, we just have to call the respective methods on the meeting object.
Share Screen: meeting.shareScreen()
This method will share the user’s screen with other participants in the meeting,
Share Microphone: meeting.shareScreen()
Share the user’s microphone with other participants for audio-conferencing.
Share Video: meeting.shareVideo()
Share user’s webcam with other participants for video conferencing.
DSS.createMeeting().then((meeting) => {
// Printing out the meetingId
console.log(meeting.meetingId)
// Sharing Screen
meeting.shareScreen();
//Sharing Microphone
meeting.shareMicrophone();
//Share Camera
meeting.shareVideo();
})