stop() method in the
RTCRtpTransceiver interface permanently stops the transceiver by stopping both the associated
RTCRtpReceiver. Once stopped, the transceiver's
stopped property will return
This method does nothing if the transceiver is already stopped.
RTCPeerConnectionof which the transceiver is a member is closed.
When you call
stop() on a transceiver, the sender immediately stops sending media and each of its RTP streams are closed using the RTCP
"BYE" message. The receiver then stops receiving media; the receiver's
track is stopped, and the transceiver's
stopped property is set to
At that point,
currentDirection is set to
null and a
negotiationneeded event is scheduled to be sent to the
|WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCRtpTransceiver.stop()' in that specification.