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

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

From: Aaron Colwell <acolwell@google.com>
Date: Mon, 9 Jul 2012 14:31:38 -0700
Message-ID: <CAA0c1bCyJT335T6zXP8Cz-Uge_tps78L=4sn2Q3JidhaZUXbcg@mail.gmail.com>
To: "<public-html-media@w3.org>" <public-html-media@w3.org>

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.

Received on Monday, 9 July 2012 21:32:07 UTC

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