[whatwg] ambiguity in timed tracks API part of spec?
Bruce Lawson
brucel at opera.com
Fri Nov 5 02:29:00 PDT 2010
http://www.whatwg.org/specs/web-apps/current-work/complete/video.html#sourcing-in-band-timed-tracks
says to create TimedTrack objects etc for in-band tracks which are then
exposed in the API - so captions/ subtitles etc that are contained in the
media container file are exposed, as well as those tracks pointed to by
the <track> element.
But
http://www.whatwg.org/specs/web-apps/current-work/complete/video.html#timed-track-api
implies that the array is only of tracks in the track element:
"media . tracks . length
Returns the number of timed tracks associated with the media element
(e.g. from track elements). This is the number of timed tracks in the
media element's list of timed tracks."
Suggestion: amend to say "Returns the number of timed tracks associated
with the media element (e.g. from track elements and any in-band track
files inside the media container file)" or some such.
Hang loose and stay groovy,
Bruce Lawson
Web Evangelist
www.opera.com (work)
www.brucelawson.co.uk (personal)
www.twitter.com/brucel
Buy my HTML5 book www.introducinghtml5.com
More information about the whatwg
mailing list