Open Bug 1428688 Opened 2 years ago Updated 2 years ago

use HTTP OMT data delivery while loading media tracks

Categories

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

enhancement

Tracking

()

People

(Reporter: jwwang, Unassigned)

Details

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

From telemetry [1] I found that HTTP off-main-thread data delivery is not enabled while loading <video>/<audio>/<track> resource[2][3][4]. Might be able to reduce jank if we can deliver the data to decoder/parser thread directly without touching main thread.

HTML5 parser is a good example of enabling HTTP OMT [5].

[1] https://mzl.la/2ugBd0T
[2] https://searchfox.org/mozilla-central/rev/3a3af33f513071ea829debdfbc628caebcdf6996/dom/html/HTMLMediaElement.cpp#1175
[3] https://searchfox.org/mozilla-central/rev/3a3af33f513071ea829debdfbc628caebcdf6996/dom/media/MediaResource.cpp#861
[4] https://searchfox.org/mozilla-central/rev/3a3af33f513071ea829debdfbc628caebcdf6996/dom/html/HTMLTrackElement.cpp#330
[5] https://searchfox.org/mozilla-central/rev/3a3af33f513071ea829debdfbc628caebcdf6996/parser/html/nsHtml5StreamParser.cpp#973
MediaResource is done. This bug is to track the work in HTMLTrackElement.
You need to log in before you can comment on or make changes to this bug.