stopCustomTrack()

stopCustomTrack(trackName)

Compatibility:
Prebuilt
Custom

Stops the specified custom track, if there is one.

Returns a Promise which resolves with the string name of the stopped track.

trackName

  • You will receive this trackName identifier as a result of invoking startCustomTrack().

To confirm that the custom track has stopped, listen for "participant-updated" events and check the local user's tracks property. The key with the identifier that you have used won't be available anymore.