stopCustomTrack(trackName)
Prebuilt
Custom
Stops the specified custom track. To confirm the track has stopped, listen for participant-updated or track-stopped and check that the track key is no longer present in the local participant’s tracks property.
Parameters
The name of the custom track to stop. This is the value returned by
startCustomTrack() when the track was started.Return value
Returns aPromise<string> that resolves to the name of the stopped track.