Closed Bug 1220047 Opened 9 years ago Closed 8 years ago

Resolve track-disabling issues

Categories

(Core :: Audio/Video: MediaStreamGraph, defect, P2)

33 Branch
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: pehrsons, Assigned: pehrsons)

References

Details

As of today when a track gets disabled, it's disabled at it's owning MSG-stream only (changing to input MSG-stream in bug 1219711). This works well for the regular case but if direct listeners are used they listen only to the input stream, so disabling the track at the owning stream won't work (see bug 1219711 comment 0).

We can apply it at the input MSG-stream instead while tracks cannot be cloned. However, when cloning is implemented applying at the input MSG-stream would mean tracks get enabled/disabled across all clones which is not desired.

To resolve this we'll apply track disabling at the owned MSG-stream, and make NotifyDirectListeners() propagate along all of a SourceMediaStream's consumers, updating track disabling and TrackID mappings for the call along the way.

nsDOMUserMediaStream::AddDirectListener can then be redirected to add the listener to the owning MSG-stream instead of the input.
Blocks: 1083354
Assignee: nobody → pehrsons
Status: NEW → ASSIGNED
Rank: 23
Priority: -- → P2
Bug 1208371 fixed this.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.