<?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>24895</bug_id>
          
          <creation_ts>2014-03-03 00:36:03 +0000</creation_ts>
          <short_desc>Be explicit in dealing with UA preference settings for audioTracks and videoTracks</short_desc>
          <delta_ts>2014-04-27 01:00:08 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</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>Unsorted</target_milestone>
          
          <blocked>24859</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Silvia Pfeiffer">silviapfeiffer1</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>cyril.concolato</cc>
    
    <cc>hbbtvjon</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>pal</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101733</commentid>
    <comment_count>0</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-03-03 00:36:03 +0000</bug_when>
    <thetext>UAs want to introduce settings to pre-activate audioTracks and videoTracks, e.g. to always have an &quot;audio description&quot; audio track enabled in parallel to the default audio track (AudioTrack.kind()=&quot;descriptions&quot;), or to always pick the video track with burnt in captions over the &quot;main&quot; video track (VideoTrack.kind()=&quot;captions&quot;), or to auto-activate the audio track with the correct dubbing (AudioTrack.kind()=&quot;translation&quot;).

The spec currently does not mention this possibility and does not deal well with it.

In the section that describes the tasks to do after media fetch (in point 4 of [1]) it says:
&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, then the selected audio tracks must be enabled in the element&apos;s audioTracks object, and, of the selected video tracks, the one that is listed first in the element&apos;s videoTracks object must be selected. All other tracks must be disabled.&quot;

So, the possibility of the browser enabling specific audio or video tracks from UA preferences doesn&apos;t seem to be taken care of.


I think it would be worth adding another step after step 11, something similar to what is in the text track section. E.g.

&quot;If the user has expressed an interest in having an audio or video track enabled based on its kind, language, or label, then the selected audio tracks must be enabled in the element&apos;s audioTracks object, and, of the selected video tracks, the one that is listed first in the element&apos;s videoTracks object must be selected.&quot;


[1] http://www.whatwg.org/specs/web-apps/current-work/#concept-media-load-resource</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101751</commentid>
    <comment_count>1</comment_count>
    <who name="Jon Piesing (HbbTV)">hbbtvjon</who>
    <bug_when>2014-03-03 09:10:51 +0000</bug_when>
    <thetext>As the originator of #24859, this issue is not just about the user expressing an interest.

There may be audio tracks which differ only by the number of channels (stereo, 5.1, 7.1) but are otherwise equivalent. 

There may be audio and video tracks which differ only by the codec. e.g. AVC vs HEVC for video and HE-AAC vs Dolby vs DTS for audio. 

It should be clear if the UA can choose between these based on the characteristics of the device without user input. 

The quoted language in the spec can be reasonably be interpreted as excluding the UA making these kind of choices as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101764</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-03-03 18:53:32 +0000</bug_when>
    <thetext>Yeah we can add something to step 11 there that more explicitly allows the user agent to apply some intelligence to the track selection. (My intent was that &quot;the media resource ... indicate[s] a particular set&quot; would cover this, e.g. the media says &quot;this track is 5.1 channel, this track is 2 channel&quot;, and the user agent says &quot;well I need the 5.1-channel version&quot;.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102337</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-03-13 23:32:29 +0000</bug_when>
    <thetext>Reopen if this isn&apos;t enough. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102338</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-03-13 23:33:10 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8543.
Check-in comment: Try to elaborate on why the UA might pick particular media tracks
http://html5.org/tools/web-apps-tracker?from=8542&amp;to=8543</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102549</commentid>
    <comment_count>5</comment_count>
    <who name="Jon Piesing (HbbTV)">hbbtvjon</who>
    <bug_when>2014-03-18 11:31:20 +0000</bug_when>
    <thetext>Reopened as we think that the proposed wording could be improved.

The proposed wording is;

if the user agent has information that enabled it to select specific tracks for optimal performance

We think any of the following would be clearer (although we prefer the first two);

1) &quot;if the user agent has information that enabled it to select specific tracks&quot; (i.e. delete &quot;for optimal performance&quot;)

2) &quot;if the user agent has information that enabled it to select specific tracks for a better user experience&quot; (i.e. replace &quot;optimal performance&quot; with &quot;a better user experience&quot;)

3) &quot;if the user agent has information that enabled it to select specific tracks for optimal results&quot; (i.e. replace &quot;performance&quot; with &quot;results&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102588</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-03-18 18:00:23 +0000</bug_when>
    <thetext>Ok, how&apos;s this?:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102589</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-03-18 18:00:56 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8552.
Check-in comment: Try to improve wording for track selection text.
http://html5.org/tools/web-apps-tracker?from=8551&amp;to=8552</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102623</commentid>
    <comment_count>8</comment_count>
    <who name="Jon Piesing (HbbTV)">hbbtvjon</who>
    <bug_when>2014-03-19 09:25:10 +0000</bug_when>
    <thetext>Sorry but the URL doesn&apos;t work. &quot;No result.&quot;

Also the email in the commit-watchers archive says;

&quot;/home/ianh/svn/webapps/hooks/commit-email.pl: `/usr/bin/svnlook diff /home/ianh/svn/webapps -r 8552&apos; failed with this output:
svnlook: Can&apos;t write to file &apos;/tmp/tempfile.2.tmp&apos;: No space left on device&quot;

and the version of the spec that I can see doesn&apos;t have a change (although I may be looking in the wrong place).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102801</commentid>
    <comment_count>9</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-03-24 02:02:45 +0000</bug_when>
    <thetext>Jon: check again - the URL works now</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103272</commentid>
    <comment_count>10</comment_count>
    <who name="Jon Piesing (HbbTV)">hbbtvjon</who>
    <bug_when>2014-04-02 13:24:30 +0000</bug_when>
    <thetext>(In reply to contributor from comment #7)
&gt; Checked in as WHATWG revision r8552.
&gt; Check-in comment: Try to improve wording for track selection text.
&gt; http://html5.org/tools/web-apps-tracker?from=8551&amp;to=8552

That change works for us.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>