[Bug 17002] Specify a mechanism to determine which SourceBuffer an AudioTrack,VideoTrack, or TextTrack belong to.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17002

--- Comment #7 from Aaron Colwell <acolwell@chromium.org> 2012-08-13 18:44:49 UTC ---
Now that the object-orient API changes are done, it's time to update the
proposal for this bug. Here is the simplest think I can think of.

Add the following method to the MediaSource object.

partial interface MediaSource {
  SourceBuffer? getSoureBufferByTrackId(DOMString id);
}

- id can be a VideoTrack.id, AudioTrack.id, or TextTrack.id(when that is
speced.)
- The MediaSource will ensure that the id values in all of the XXXTrack objects
it provides data for are unique.
- This method returns null if the id is not associated with any tracks created
by this MediaSource object.
- Throws an INVALID_ACCESS_ERR exception if id is null or empty.
- Throws an INVALID_STATE_ERR exception if called in the "closed" state.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 13 August 2012 18:44:52 UTC