-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
Is your feature request related to a problem? Please describe.
Scheduling interstitial assets loading and playing is currently triggered by the timeupdate event of the video element, which leads to inaccurate scheduling since timeupdate event is triggered at most every few hundred ms.
For scenario such as ad replacement accuracy is critical for user experience.
Describe the solution you'd like
A solution could be to rely on the requestVideoFrameCallback() API, if available, to be frame accurate.
If requestVideoFrameCallback() API is not available, a fallback solution could be to set a timer as we are getting close to the intersitial time, without waiting for next behindhand timeupdate event.
Additional context
No response