This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22431 - HTMLVideoElement.videoPlaybackQuality should be a live object rather than returning a new object
Summary: HTMLVideoElement.videoPlaybackQuality should be a live object rather than ret...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Adrian Bateman [MSFT]
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-24 02:15 UTC by Matthew Gregan [:kinetik]
Modified: 2013-07-02 20:18 UTC (History)
4 users (show)

See Also:


Attachments

Description Matthew Gregan [:kinetik] 2013-06-24 02:15:57 UTC
This would maintain the invariant that element.videoPlaybackQuality === element.videoPlaybackQuality.

Or if a new object is absolutely required each time, videoPlaybackQuality should be changed from an attribute to a method.
Comment 1 Aaron Colwell 2013-06-25 14:49:32 UTC
This attribute is mimicking HTMLMediaElement.buffered, seekable, and played attributes where a new object is returned on every fetch. This is to make sure that all the values in the object stay consistent with eachother since values are intended to be compared with one another.
Comment 2 Boris Zbarsky 2013-06-26 05:36:52 UTC
Why are we mimicking terrible APIs?

If you want to return a new object each time, use a method, not an attribute.  Abusing attributes like this is really bad from the point of view of JS API consumers...
Comment 3 Aaron Colwell 2013-07-02 20:18:38 UTC
Change committed.
https://dvcs.w3.org/hg/html-media/rev/b98190a4472c

changed videoPlaybackQuality attribute to getVideoPlaybackQuality() method.