The stop()
method in the RTCRtpTransceiver
interface permanently stops the transceiver by stopping both the associated RTCRtpSender
and RTCRtpReceiver
.
Note: Until recently, the stopped
property was provided to return true
if the connection is stopped. That property has been deprecated and will be removed at some point. Instead, check the value of currentDirection
. If it's stopped
, the transceiver has been stopped.
This method does nothing if the transceiver is already stopped.