Skip to main content

remoteTrackStopped

Emitted when any participant in the meeting room STOP sharing their microphone, camera, or screen

This event is emitted when any remote participant in the meeting room stop shares their microphone, camera, or screen.

This event is used to remove the remote participant's video or audio from the current user's screen.

JavaScript
meeting.on("remoteTrackStopped", function(remoteTrackItem) {


});

Properties

remoteTrackItem is an object that contains the following properties:

PropertyDescription
streamIduniqueId of the video or audio stream
typetype can be video or audio
participantSessionIdparticipantSessionId of the source Participant
trackMediaStreamTrack . This should be converted into MediaStream object before attaching to html video tag. see example below.
namename of the source user

Example

JavaScript
meeting.on("remoteTrackStopped", function(remoteTrackItem) {
console.log("remoteTrackStarted", remoteTrackItem);
document.getElementById(remoteTrackItem.streamId).remove();
});