<?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>25573</bug_id>
          
          <creation_ts>2014-05-06 08:51:28 +0000</creation_ts>
          <short_desc>Can new audio/video tracks be added before/after loadedmetadata?</short_desc>
          <delta_ts>2014-07-30 07:43:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#found-another-audio-track</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>acolwell</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105164</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-05-06 08:51:28 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#found-another-audio-track
Complete: http://www.whatwg.org/c#found-another-audio-track
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Can new audio/video tracks be added before/after loadedmetadata?

Posted from: 83.218.67.123
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 OPR/21.0.1432.48 (Edition Next)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105165</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-06 09:12:18 +0000</bug_when>
    <thetext>These are separate steps in the resource fetch algorithm:
&quot;If the media resource is found to have an audio track&quot;
&quot;If the media resource is found to have a video track&quot;
&quot;Once enough of the media data has been fetched ...&quot;

Does this mean that audio/video tracks can be added at any time, even after playback has begun? I think that can happen when using Media Source Extensions, so probably yes.

However, the only point where tracks are enabled/selected is in the last step: &quot;If either the media resource or the address of the current media resource indicate a particular set of audio or video tracks to enable ...&quot;

What should happen when the media resource itself indicates that a track should be enabled/selected, but there are already enabled/selected tracks?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105553</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-09 17:44:11 +0000</bug_when>
    <thetext>I think this got resolved in response to one of the other bugs; is there anything still unclear about this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109555</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-07-30 07:43:07 +0000</bug_when>
    <thetext>Yes, by moving the &quot;If either the media resource or the address of the current media resource indicate a particular set of audio/video tracks to enable&quot; steps into &quot;If the media resource is found to have an audio/video track&quot; the problem has been solved.

Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>