Open Bug 1763716 Opened 4 years ago

Offer with rejected m-line does not fire onremovetrack event, and currentDirection isn't stopped

Categories

(Core :: WebRTC: Signaling, defect, P3)

defect

Tracking

()

People

(Reporter: jib, Unassigned)

References

(Depends on 1 open bug)

Details

+++ This bug was initially created as a clone of Bug #1728367 +++

When we receive an offer with a rejected m-line, the spec says among other things that we must fire onremovetrack on any associated streams the transceiver.receiver.track is in.

Google and Edge appear to do this correctly (though their event firing order seems off a bit). Firefox and Safari do not.

STR:

Expected result:

ontrack
ontrack
onremovetrack
video transceiver currentDirection = recvonly
audio transceiver currentDirection = stopped
onended

Actual result:

ontrack
ontrack
video transceiver currentDirection = recvonly
audio transceiver currentDirection = null
onended

Workaround

  • Listen for the ended event on the track instead of removetrack on its stream.
You need to log in before you can comment on or make changes to this bug.