[whatwg] HTML5 video <source> dimensions and bitrate
Tab Atkins Jr.
jackalmage at gmail.com
Tue Aug 10 09:44:07 PDT 2010
It *appears* that the minimum you're asking for is some way to include
the bitrate/etc. information in the <source> element so that you can
switch between them in js, right? You're not trying to add something
that will cause changed browser behavior?
In that case, your solution already exists - use the data-*
attributes. <source src=foo data-jw-bitrate=2> works just fine. In
existing browsers you can access the attribute with
elem.getAttribute('data-jw-bitrate'), and in future browsers it'll be
More information about the whatwg