- From: Zachary Ozer <zach@longtailvideo.com>
- Date: Tue, 10 Aug 2010 15:28:46 -0400
On Tue, Aug 10, 2010 at 12:44 PM, Tab Atkins Jr. <jackalmage at gmail.com> wrote: > 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? Correct - we're just trying to do some JS switching. > 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 > elem.data['jw-bitrate']. Wow - I had no idea this was valid. This is exactly what we were looking for - thanks!
Received on Tuesday, 10 August 2010 12:28:46 UTC