W3C home > Mailing lists > Public > public-html-media@w3.org > July 2012

Re: [MSE] Proposal to move SourceBufferList.remove() to MediaSource.removeSourceBuffer()

From: Aaron Colwell <acolwell@google.com>
Date: Tue, 17 Jul 2012 14:50:14 -0700
Message-ID: <CAA0c1bCTeq5AgbzPHRpdJZEqZqD-17VjYZf78tgEQJYEzgFp1Q@mail.gmail.com>
To: "<public-html-media@w3.org>" <public-html-media@w3.org>
Hi,

I just published a new version of the spec with the proposed changes.

Editors Draft:
http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
Change Sets:
  http://dvcs.w3.org/hg/html-media/rev/32d0ee562168  - Moved
SourceBufferList.remove() to MediaSource.removeSourceBuffer()
  http://dvcs.w3.org/hg/html-media/rev/ab36e8e882c6 - Fixed version date
because I forgot to update it in the change above.

Aaron


On Mon, Jul 9, 2012 at 2:31 PM, Aaron Colwell <acolwell@google.com> wrote:

> Hi,
>
> I was talking to one of our engineers that is updating Chrome's
> MediaSource implementation to the new object-oriented API and she requested
> changing the spec so SourceBufferList.remove() is replaced by
> MediaSource.removeSourceBuffer(). Here are a few reasons we think this
> would be a good idea.
>
> 1. It feels more consistant to add and remove SourceBuffers through the
> same object.
> 2. The MediaSource object has two SourceBufferList objects and it seems
> weird to call remove() on one of them and that call modifying the other
> list. (ie mediaSource.activeSourceBuffers.remove(sourceBuffer) would
> trigger a change in mediaSource.sourceBuffers and vice-versa.)
>
> If anyone has an objection please let me know. Otherwise I'll publish an
> update to the spec sometime Friday afternoon.
>
> Aaron
>
Received on Tuesday, 17 July 2012 21:50:46 UTC

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