Open Bug 1296964 Opened 8 years ago Updated 2 years ago

Use MediaEvents to communicate between AbstractMediaDecoder and HTMLMediaElement

Categories

(Core :: Audio/Video: Playback, defect, P3)

50 Branch
defect

Tracking

()

People

(Reporter: bryce, Unassigned)

References

(Blocks 1 open bug)

Details

The MediaEvent mechanism from MediaEventSource.h can be used to reduce coupling between AbstractMediaDecoder and HTMLMediaElement. As it stands, we have the HTMLMediaElement owning its decoder, but GetOwner() is also used on the decoder to obtain references to the HTMLMediaElement to notify events.

This could be replaced by having the decoder expose events using the MediaEvent mechanism, and html media element listen to the producer. This has been done in Bug 1145011, and it would be good to use this pattern more, both for the intrinsic benefits, and for the sake of consistency.
Assignee: nobody → bvandyk
Hi SingingTree, 
Are you current working on this? If not, may I separate it into small parts and then solve gradually?
Flags: needinfo?(bvandyk)
I am not working on this at the moment. By all means you may take it.
Assignee: bvandyk → nobody
Flags: needinfo?(bvandyk)
Assignee: nobody → kaku
Blocks: 1347406
Status: NEW → ASSIGNED

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: kakukogou → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.