When participant asks for entry in a meeting that you are connected to, you will be notified via entry-requested and when you or any other participant's entry is responded, entry-responded will be fired.
Step 5: Listen for new & leaving participant events
When participant joins or leaves a meeting that you are connected to, you will be notified via participant-joined and participant-left events respectively.
Step 6: Listen for audio/video stream events
When a participant from meeting enables or diables a audio/video stream, you will be notified via stream-enabled and stream-disabled events from the participant object.
// play video track on a <video /> element
// play audio track on a <audio /> element
// play screen sharing video track on a <video /> element
// remove video track or the <video /> element
// remove audio track or the <audio /> element
// remove screen sharing video track or the <video /> element
Each stream object consists of:
Note: Chrome Autoplay policy workaround
Chrome's autoplay policy does not allow audio autoplay unless user has interacted with the domain (click, tap, etc.) or the user's Media engagement Index threshold has been crossed. Thus, as a workaround before starting the meeting, user can either create a meeting join page or create a join meeting confirmation dialog by which we can perform a user click interaction to enable audio autoplay in chrome's newer versions.
Step 7: Main screen video (optional)
When a participant who is currently presenting or speaking is changed in the meeting, you will be notified via main-participant-changed event.
After we set local participant, main-screen participant, other participants, participant event handlers and stream event handlers from the meeting, next step is to join the meeting by calling meeting.join(). This will trigger participant-joined event for all other participants.
Step 9: Utility methods & events (optional)
Toggle own mic with the unmuteMic() and muteMic() methods. Toggling mic will trigger stream-enabled and stream-disabled events for all other participants when enabling and disabling mic.
// unmute/mute your own mic
// unmute/mute other participant's mic
Toggle own webcam with the enableWebcam() and disableWebcam() methods. Toggling webcam will trigger stream-enabled and stream-disabled events for all other participants when enabling and disabling webcam.
// disable/enable your own webcam
// disable/enable other participant's webcam
Enable/Disable Screen share
Share your screen with the enableScreenShare() method and stop sharing with disableScreenShare(). Toggling screen-share will trigger stream-enabled and stream-disabled events for all other participants when enabling and disabling screen-share.
Record the meeting session with startRecording(webhookUrl) method and stop recording with stopRecording(). Toggling recording will trigger recording-started and recording-stopped events for all participants when starting and stopping recording respectively.
// The webhook will be called with the fileUrl as a POST request when the recording is processed.