W3C home > Mailing lists > Public > public-html-media@w3.org > April 2014

Re: [MSE] Alternate proposal for resolving Bug 24370

From: Mark Watson <watsonm@netflix.com>
Date: Fri, 25 Apr 2014 07:58:16 -0700
Message-ID: <CAEnTvdDHqDPo-+CfRmHpj3un3B8_ScKGRv3xC30PKBKqKnZX3w@mail.gmail.com>
To: Aaron Colwell <acolwell@google.com>
Cc: Silvia Pfeiffer <silviapfeiffer1@gmail.com>, "<public-html-media@w3.org>" <public-html-media@w3.org>
HI Aaron,

I think the proposal works but I think that byteStreamTrackID should be
optional in the case that only one set of default track settings is
provided. In that case, if there is only one track in the stream, it gets
the provided defaults and if there is more than one track in the stream the
defaults are ignored.

This would avoid the need to know the byteStreamTrackID for the common case
where there is only one track for each SourceBuffer.

...Mark



On Fri, Apr 25, 2014 at 7:25 AM, Aaron Colwell <acolwell@google.com> wrote:

> On Thu, Apr 24, 2014 at 9:46 PM, Silvia Pfeiffer <
> silviapfeiffer1@gmail.com> wrote:
>
>> On Fri, Apr 25, 2014 at 2:32 PM, Aaron Colwell <acolwell@google.com>
>> wrote:
>> >
>> > No. The web application adds default information to the
>> trackDefaultList on
>> > the SourceBuffer. The SourceBuffer code consults these defaults when
>> data
>> > gets appended that would result in xxxTrack objects getting created (ie
>> when
>> > the initialization segment received algorithm is invoked.)
>>
>> OK, thanks, I get it. Why would .trackDefaults be in every
>> SourceBuffer object rather than just in the MediaSource ?
>>
>
> Because different SourceBuffer objects can have byte streams that contain
> the same underlying byteStreamTrackID and there would be no way to
> differentiate the two.
> For example, in the case were a SourceBuffer is used for the audio track
> and a different SourceBuffer is used for the video track, it is highly
> likely that the track in each byte stream will have a byteStreamTrackID of
> '1' because in each case there is only 1 track. Putting the defaults on the
> MediaSource would require specifying a SourceBuffer parameter to
> TrackDefaultList to disambiguate this case, which seems a little odd to me
> since this is really a matter that is internal to the SourceBuffer and not
> a MediaSource wide concern.
>
> Aaron
>
>
>>
>> Silvia.
>>
>
>
Received on Friday, 25 April 2014 14:58:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:33:03 UTC