localTrackStopped
When stopAudio() or stopVideo() methods are called, this event is emitted.
When stopAudio() or stopVideo() method is called, 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 |