question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement removestream, removetrack events

See original GitHub issue

These events were disabled due to a lack of a reliable way to detect media removals and correlate them with streams provided by the stream and track events.

They should be re-added to allow peers to observe remote stream removals.

peer.on('removestream', cb) peer.on('removetrack', cb)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:10
  • Comments:6

github_iconTop GitHub Comments

4reactions
nielsswinkelscommented, Nov 15, 2018

Any progress yet? Would be great to have indeed.

3reactions
ted-piotrowskicommented, May 20, 2020

@fictorial The mute event fires on the remote peer for me (Latest Chrome/MacOS) 🤷 However, the mute event can’t be used to infer if a track has ended because mute event gets periodically emitted when a peer can’t stream data fast enough and unmute is emitted when data comes through again. I am also sending a trackRemoved event now, but using the simplepeer data channel instead of a signaling server. Would be a nice addition to have a removeTrack event.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RTCPeerConnection: removestream event - Web APIs | MDN
The obsolete removestream event was sent to an RTCPeerConnection to inform it that a MediaStream had been removed from the connection.
Read more >
Removestream - DOM Events - W3cubDocs
The removestream event indicates that a MediaStream has been removed from the RTCPeerConnection which received the event. You can use the RTCPeerConnection ...
Read more >
RTCPeerConnection.removeStream() - Web APIs
if your target browser versions have implemented it. If the signalingState. ⚠️. is set to "closed" , an InvalidStateError is raised. If the...
Read more >
simple-peer removeTrack/removeStream is destroying the ...
Hmm not pretty sure what u are trying to do, but for removing only the audio track u need to do something like...
Read more >
RTCRtpSender/Receiver
removeStream -> removeTrack ... void removeTrack(RTCRtpSender sender); ... EventHandler onaddtrack; // replaces onaddstream; event object is AddTrackEvent.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found