W3C home > Mailing lists > Public > public-html-media@w3.org > February 2013

Re: [MSE] Track and track events

From: Aaron Colwell <acolwell@google.com>
Date: Fri, 15 Feb 2013 09:07:36 -0800
Message-ID: <CAA0c1bB=zDqf10j5-7DsAAaydGuV9suONY-LRiWp6DkDZaNv0A@mail.gmail.com>
To: Cyril Concolato <cyril.concolato@telecom-paristech.fr>
Cc: Bob Lund <B.Lund@cablelabs.com>, "public-html-media@w3.org" <public-html-media@w3.org>
Hi Cyril,

I was assuming that adding the track to the list would fire the event, but
I don't mind being more explicit about this in the MSE spec. The
removetrack events should also be called out in the removeSourceBuffer()
algorithm as well. Please file a bug for this and I'll take care of
updating the spec.

Aaron


On Fri, Feb 15, 2013 at 2:41 AM, Cyril Concolato <
cyril.concolato@telecom-paristech.fr> wrote:

> Hi Bob,
>
> Le 22/01/2013 18:09, Bob Lund a écrit :
>
>
>> On 1/22/13 9:57 AM, "Cyril Concolato"
>> <cyril.concolato@telecom-**paristech.fr<cyril.concolato@telecom-paristech.fr>>
>> wrote:
>>
>>  Hi all,
>>>
>>> I'm wondering if the creation of tracks and addition of tracks to the
>>> HTMLMediaElement tracks lists as indicated here
>>> https://dvcs.w3.org/hg/html-**media/raw-file/tip/media-**
>>> source/media-source.h<https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.h>
>>> tml#sourcebuffer-init-segment-**received
>>> should fire addtrack events on the HTMLMediaElement track lists or not ?
>>> I think it should and maybe it's covered already by some reference to
>>> the HTML5 spec, but I couldn't find it.
>>>
>> Check out the onchange, onaddtrack and onremovetrack event handlers for
>> Video and Audio track lists
>> http://www.w3.org/html/wg/**drafts/html/master/embedded-**
>> content-0.html#audiot<http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#audiot>
>> racklist and same (except for onchange) for Text track lists
>> http://www.w3.org/html/wg/**drafts/html/master/embedded-**
>> content-0.html#texttr<http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#texttr>
>> acklist
>>
> Thanks for the links but they do not completely answer my question. Let me
> rephrase. In some cases the MSE spec says:
> "Queue a task to fire a simple event named change at the HTMLMediaElement
> track lists that were modified."
> for instance when changing the kind, language of a track or when removing
> a source buffer. But when processing an initialization segment such
> sentence is not used, for instance, it only says:
> "Add new audio track to the audioTracks attribute on the HTMLMediaElement."
> I think it could be clearer.
>
>
> Cyril
>
> --
> Cyril Concolato
> Maître de Conférences/Associate Professor
> Groupe Multimedia/Multimedia Group
> Telecom ParisTech
> 46 rue Barrault
> 75 013 Paris, France
> http://concolato.wp.mines-**telecom.fr/<http://concolato.wp.mines-telecom.fr/>
>
>
>
Received on Friday, 15 February 2013 17:08:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 15:48:32 UTC