-
There is a Close method for DataChannel but not for TrackRemote. Is this possible? Thanks for Pion! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @tartavull thanks for using Pion! WebRTC doesn't provide anything at the protocol to close a remote track. If you wish to inform a remote peer that you are unwilling to accept media you can reject the media during signaling. You probably will need to implement some communication outside of WebRTC that asks the remote peer to call |
Beta Was this translation helpful? Give feedback.
Hey @tartavull thanks for using Pion!
WebRTC doesn't provide anything at the protocol to close a remote track. If you wish to inform a remote peer that you are unwilling to accept media you can reject the media during signaling.
You probably will need to implement some communication outside of WebRTC that asks the remote peer to call
RemoveTrack
and thenCreateOffer
again.