removeTrack method
The removeTrack()
method of the RTCPeerConnection interface tells
the local end of the connection to stop sending media from the specified
track, without actually removing the corresponding RTCRtpSender from the
list of senders as reported by RTCPeerConnection.getSenders.
If the track is already stopped, or is not in the connection's senders
list, this method has no effect.
If the connection has already been negotiated
(RTCPeerConnection.signalingState is set to "stable"
), it is marked as
needing to be negotiated again; the remote peer won't experience the
change until this negotiation occurs.
A RTCPeerConnection.negotiationneeded_event
event is sent to the
RTCPeerConnection to let the local end know this negotiation must occur.
Implementation
external void removeTrack(RTCRtpSender sender);