w3c / media-playback-quality

Media Playback Quality
https://w3c.github.io/media-playback-quality/
Other
12 stars 4 forks source link

Don't return a read-only object #3

Open mounirlamouri opened 8 years ago

mounirlamouri commented 8 years ago

The VideoPlaybackQuality object is currently read-only, forcing user agents to create a new one every time it is requested. Given that there is no event mechanism, we can assume that websites will poll this object on a regular basis (every frame? few seconds?). This is likely over-stressing the GC for no clear benefit.

mounirlamouri commented 8 years ago

On top of my head, I think a live object that gets updated in sync with rAF would be good: websites would now when to check for potential new values and we don't need to add costly events.