Skip to content

Question: Closing Track while keeping data channel open. #1820

Answered by Sean-Der
tartavull asked this question in Q&A
Discussion options

You must be logged in to vote

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 then CreateOffer again.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sean-Der
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1813 on May 21, 2021 16:30.