This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27174 - [MSE] Clarify that addSourceBuffer() doesn't return two source buffers
Summary: [MSE] Clarify that addSourceBuffer() doesn't return two source buffers
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Aaron Colwell
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-26 10:05 UTC by Silvia Pfeiffer
Modified: 2014-11-08 06:50 UTC (History)
3 users (show)

See Also:


Attachments

Description Silvia Pfeiffer 2014-10-26 10:05:45 UTC
The following description of addSourceBuffer() is confusing:

"Implementations must support at least 1 MediaSource object with the following SourceBuffer configurations. MediaSource objects must support each of the configurations below, but they are only required to support one configuration at a time. Supporting multiple configurations at once or additional configurations is a quality of implementation issue.

    A single SourceBuffer with 1 audio track and/or 1 video track.
    Two SourceBuffers with one handling a single audio track and the other handling a single video track."

It seems to indicate that a call to addSourceBuffer() can return either 1 SourceBuffer or two SourceBuffer objects. This should be rewritten.


As Cyril explained:
addSourceBuffer always returns a single SourceBuffer. Implementations should support either one call to addSourceBuffer for multiplexed a/v streams or two calls for separate audio and video streams and that it may throw a QUOTA_EXCEEDED_ERROR on the next calls.
Comment 1 Aaron Colwell 2014-11-04 23:45:35 UTC
Change committed..
https://dvcs.w3.org/hg/html-media/rev/af052af0dd5f

I took a slightly different approach by creating a "SourceBuffer configuration" definition and put the mandatory configuration requirements in there. I then updated the addSourceBuffer() algorithm to refer to the definition so that it is clear that unsupported configurations result in the QUOTA_EXCEEDED_ERROR exception being thrown.
Comment 2 Silvia Pfeiffer 2014-11-08 06:50:22 UTC
Thanks.