Skip to main content

localTrackStopped

When stopAudio(), stopVideo(), shareCustomVideoTrack() or shareCustomAudio() tracks end, this event is emitted.

When stopAudio() or stopVideo() method is called, or when tracks from shareCustomVideoTrack() or shareCustomAudio() end, this event is emitted.

JavaScript
meeting.on("localTrackStopped", function(localTrackItem) {

});

Properties

localTrackItem is an object that contains the following properties

PropertyDescriptionType
typetype can be audio or videostring
streamIdunique streamId associated with the audio or video streamstring
trackMediaStreamTrack to add to a video tag you would need to convert it into a MediaStream objectobject