Fixed the remove track to have RTCRptSender object, by invoking
pc.call,getSenders() method and finding the sender by track.
also update the adddStream() method to have addTrack() if the pc.addTrack() is defined as epr documentation of RTCPeerConnection. you may find it here: https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addStream
Fixed the remove track to have RTCRptSender object, by invoking
pc.call,getSenders()
method and finding the sender by track. also update theadddStream()
method to haveaddTrack()
if thepc.addTrack()
is defined as epr documentation ofRTCPeerConnection
. you may find it here: https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addStream