Re: Track "id" format?

On Tue, Nov 12, 2013 at 6:44 AM, Brendan Long <B.Long@cablelabs.com> wrote:
>> We can define how to convert an inband ID representation into the
> value for the @id attribute of tracks in HTML, but we have to stick
> with the resulting @id value being conformant with the HTML spec.
>
> Yes, it needs to be a string.

No, it's not "just a string" - it's a DOMString, which is defined as a
sequence of code units, commonly interpreted as UTF-16 encoded
strings:
http://www.w3.org/TR/WebIDL/#idl-DOMString


> My point is that the actual in-band representation is either binary (PID) or an integer (TrackUID), so we need to define how you convert that binary / integer into a string.

I'd recommend to follow the Javascript/ECMAScript toString() method:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString

Silvia.

Received on Monday, 11 November 2013 22:58:54 UTC