<?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>25574</bug_id>
          
          <creation_ts>2014-05-06 09:13:47 +0000</creation_ts>
          <short_desc>Queue a (micro)task to change enabled audio tracks</short_desc>
          <delta_ts>2014-06-12 08:37:15 +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/#dom-TrackList-getKind-categories</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>105166</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-05-06 09:13:47 +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#dom-TrackList-getKind-categories
Complete: http://www.whatwg.org/c#dom-TrackList-getKind-categories
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Queue a (micro)task to change enabled audio tracks

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>105167</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-06 09:21:30 +0000</bug_when>
    <thetext>If a script is to switch audio tracks, it needs to disable one and enable another. In order to make the switch gapless, it&apos;s necessary to wait until the script has finished before informing the media engine about the change. It would be nice if the spec pointed this out, so that all implementations do the same thing.

The difference is possibly detectable when using the Web Audio API and certainly audible.

Only one video track can be selected at a time, but maybe it would be a good idea to throw that into the same logic in case an audio track and video track are switched at the same time and somehow go together.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107686</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-06-11 22:24:43 +0000</bug_when>
    <thetext>I don&apos;t really see why it would have to be a microtask. I just synchronised it with reaching the event loop&apos;s step 1. (Note that this has implications with respect to alert() and company that you might want to explicitly test...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107687</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-06-11 22:25:42 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8673.
Check-in comment: Make sure that we say that enabling audio tracks and selecting video tracks is all synchronised with the event loop
http://html5.org/tools/web-apps-tracker?from=8672&amp;to=8673</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107702</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-06-12 08:37:15 +0000</bug_when>
    <thetext>I meant a task or a microtask, either would do I think. There&apos;s now a lot of &quot;the last time the event loop reached step 1&quot; around media elements, which may or may not map to something sane in an implementation. Is there any particular reason you have that concept in addition to tasks and microtasks?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>