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
| Property | Description | Type |
|---|---|---|
| type | type can be audio or video | string |
| streamId | unique streamId associated with the audio or video stream | string |
| track | MediaStreamTrack to add to a video tag you would need to convert it into a MediaStream object | object |