Re: [media-and-entertainment] Frame accurate seeking of HTML5 MediaElement

In comment to @nigelmegitt [1] increase the timeupdate to 50hz, I'd just like to point out two things:
1. As transferring the playback state (e.g. currentTime) from player to JS takes more than 0 time, the value received in JS will always be outdated. We see this very clearly as massive jitter in the currentTime reporting. Going to 50hz will make this error smaller, but it will still be there.

2. Triggering events with event handlers at 50hz will make increase resource usage by a lot, even if there is no real reason for it. For example, updating a progress bar at 50hz is just silly, similarly, a subtitle that is shown for 5.4 seconds will have executed the code for checking if it should be removed 269 times for no reason.

A 

[1] https://github.com/w3c/media-and-entertainment/issues/4#issuecomment-397209849

-- 
GitHub Notification of comment by Snarkdoof
Please view or discuss this issue at https://github.com/w3c/media-and-entertainment/issues/4#issuecomment-397593999 using your GitHub account

Received on Friday, 15 June 2018 11:34:22 UTC