RE: Track "id" format?

> Regarding clashes, does the Track.id attribute have to be unique in the
> page? or in the list of Tracks to which the Track belongs (AudioTracks,
> VideoTracks or TextTracks)? It doesn't make much sense to have a
> page-wide id, does it?

Interestingly, the spec currently doesn't require the track "id" to be unique:

> The AudioTrack.id and VideoTrack.id attributes must return the identifier
> of the track, if it has one, or the empty string otherwise. If the media
> resource is in a format that supports the Media Fragments URI fragment
> identifier syntax, the identifier returned for a particular track must be the
> same identifier that would enable the track if used as the name of a track
> in the track dimension of such a fragment identifier.
http://www.w3.org/TR/html5/embedded-content-0.html#dom-audiotrack-id

> Anyway, I had thought for the 'id' value to use a fragment identifier
> like 'file.mp4#track_id=1' or 'file.ts#pid=120'. That would avoid clashes.

I think right now the format is just "file.mp4#track=1" or "file.ts#track=120":

http://www.w3.org/TR/2011/CR-media-frags-20111201/#naming-track

Received on Tuesday, 12 November 2013 15:41:37 UTC