In-band track metadata attribute

Someone (Silvia?) proposed this interface in the Wiki [1]:


interface TextTrack {

   ...
   readonly attribute ArrayBuffer metadata; // binary descriptor data


}

interface HTMLMediaElement {

   ...
   readonly attribute mediaType; // "video/mp2t"


}

I guess this would replace inBandMetadatatrackDispatchType. I think this is a good idea. Adding ‘mediaType' makes it easy for script to know how to parse the metadata. Adding ‘metadata’ as ArrayBuffer makes things easier for the UA and could also be added, if use cases support, to audio and video tracks.

Should we submit an HTML5 bug in this regard?

Thanks,
Bob

[1] https://www.w3.org/community/inbandtracks/wiki/Main_Page#In-band_Metadata_Attribute_Alternative

Received on Monday, 10 March 2014 16:12:16 UTC