0👍
You can’t stop a remote track like that. The remote track object is a representation of the track as a stream from the remote participant as a stream. A local track is a representation of a track as a stream from the device’s camera or microphone, so when you call stop
, it stops interacting with the hardware.
So you cannot call stop
on a remote track, because that would imply you’re trying to stop the track coming from the remote participant’s camera or microphone.
If you want to stop seeing or hearing a remote track, you can detach
the track from the page. If you want to unsubscribe from the track so that you stop receiving the stream of it, you can use the track subscriptions API. And if you want to actually stop the remote participant’s device, you would have to send a message to the remote participant (possibly via the DataTrack
API) and have them execute the track.stop()
locally.
- [Vuejs]-Laravel returns 419 csrf token mismatch after vue axios request
- [Vuejs]-Can not access http://192.168.56.1:3000