<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27174</bug_id>
          
          <creation_ts>2014-10-26 10:05:45 +0000</creation_ts>
          <short_desc>[MSE] Clarify that addSourceBuffer() doesn&apos;t return two source buffers</short_desc>
          <delta_ts>2014-11-08 06:50:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Media Source Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Silvia Pfeiffer">silviapfeiffer1</reporter>
          <assigned_to name="Aaron Colwell">acolwell</assigned_to>
          <cc>acolwell</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113766</commentid>
    <comment_count>0</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-10-26 10:05:45 +0000</bug_when>
    <thetext>The following description of addSourceBuffer() is confusing:

&quot;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.&quot;

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114536</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-11-04 23:45:35 +0000</bug_when>
    <thetext>Change committed..
https://dvcs.w3.org/hg/html-media/rev/af052af0dd5f

I took a slightly different approach by creating a &quot;SourceBuffer configuration&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114707</commentid>
    <comment_count>2</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-11-08 06:50:22 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>