Skip to content

Proper way of pause and resume a track #1163

Discussion options

You must be logged in to vote

Removal is irreversible in WebRTC media negotiation, so you can't re-add the same track later. It is typically used to reject a track.

Track negotiation is designed only to negotiate formats and codecs, you should not attempt to signal stop and restart with it. You should need renegotiation only when a new media is added later, like screen sharing.

To pause a track, just stop sending, and to resume, restart sending. You can send your own signaling messages to inform the remote side explicitly of the playback state.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vvalentinich
Comment options

Answer selected by vvalentinich
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