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

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