Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hint attribute to HTMLMediaElement to configure rendering latency #4638

chcunningham opened this issue May 18, 2019 · 1 comment


2 participants
Copy link

commented May 18, 2019

All user agents delay the start of playback until some minimum number of frames are decoded and ready for rendering. This buffer provides an important cushion against playback stalls that might otherwise be caused by intermittent decoder slowness. It also adds a small amount of latency to start playback. For example, in Chromium this adds roughly 200 milliseconds for common video frame rates.

I'd like to propose an attribute that lets web authors disable this rendering buffer for use cases where sub-second latency is more important than smooth playback.

Some examples include interactive apps like cloud gaming or remote desktop. Notably, this feature does NOT target video streaming sites that offer live sports and TV. For these sites, low latency (e.g. 3 seconds) is very important, but sub-second latency is not critical and should not be prioritized over smooth playback.

Please see here for additional details and examples.

There have been a number of bugs MediaSource bugs [1][2][3] that reference this, but they also discuss a number of MSE specific issues/features-requests. This bug tracks feature that is more broadly applicable to <audio> and <video>.

[2] w3c/media-source#21
[3] w3c/media-source#133

@annevk annevk added the topic: media label May 20, 2019


This comment has been minimized.

Copy link

commented May 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.