Fix wpt mediasource-append-buffer.html
Categories
(Core :: Audio/Video: Playback, task, P3)
Tracking
()
People
(Reporter: alwu, Unassigned)
References
(Blocks 1 open bug)
Details
Per spec [1] step 2~5, media element should change its ready state during coded-frame-processing
, which means the events related with the ready state, such as loadeddata
, should be dispatched before source buffer's event updateend
.
But we dispatch loadeddata
after updateend
, that is why we fail on this test [2].
However, other browsers also have this issue [3], so I'm not sure if fixing this would cause any compatible issue. Anyway, this bug is used as a reference in case we decide to fix that in the future.
[1] https://w3c.github.io/media-source/#sourcebuffer-coded-frame-processing
[2] https://searchfox.org/mozilla-central/rev/1758450798ae14492ba28b695f48143840ad6c5b/testing/web-platform/meta/media-source/mediasource-append-buffer.html.ini#4-5
[3] https://wpt.fyi/results/media-source/mediasource-append-buffer.html?label=master&label=experimental
Description
•