<?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>22458</bug_id>
          
          <creation_ts>2013-06-25 16:43:33 +0000</creation_ts>
          <short_desc>Change the spec to allow rendering of captions for audio when controls are visible</short_desc>
          <delta_ts>2013-06-26 13:26:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>TextTracks CG</product>
          <component>WebVTT</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>https://bugzilla.mozilla.org/attachment.cgi?id=767116</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="Mardeg">mardeg</reporter>
          <assigned_to name="Silvia Pfeiffer">silviapfeiffer1</assigned_to>
          <cc>giles</cc>
    
    <cc>mike</cc>
    
    <cc>public-texttracks</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89822</commentid>
    <comment_count>0</comment_count>
    <who name="Mardeg">mardeg</who>
    <bug_when>2013-06-25 16:43:33 +0000</bug_when>
    <thetext>According to Ralph Giles at https://bugzilla.mozilla.org/show_bug.cgi?id=886748#c3 if there&apos;s ui displayed, which is conditional on &apos;controls&apos; then aborting in step 1 at http://dev.w3.org/html5/webvtt/#dfn-rules-for-updating-the-display-of-webvtt-text-tracks based solely on the element being &lt;audio&gt;, ie. without checking for the existence of a rendering area which *does* exist when there is a &apos;controls&apos; boolean attribute, is wrong.

Please change the text of that rule to allow vendors to render captions for &lt;audio&gt; elements that have a rendering area.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89827</commentid>
    <comment_count>1</comment_count>
    <who name="Ralph Giles">giles</who>
    <bug_when>2013-06-25 17:49:41 +0000</bug_when>
    <thetext>I&apos;d state it a little more generally. Step 1 assumes &lt;audio&gt; has no rendering area. Does that make sense?

&lt;audio controls&gt; has a built-in ui elements which render. It could make sense that &lt;audio&gt;&lt;track default&gt;&lt;/audio&gt; also has a rendering area in which to do caption display.

Mardeg, can you explain the use-cases you&apos;re trying to address with this, and why e.g. using &lt;video&gt; instead isn&apos;t sufficient?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89835</commentid>
    <comment_count>2</comment_count>
    <who name="Mardeg">mardeg</who>
    <bug_when>2013-06-25 18:53:16 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Mardeg, can you explain the use-cases you&apos;re trying to address with this,

When people only record audio of their presentations, and want to use CSS animations/transitions for the image slideshows and/or other javascriptless animations like SMIL in SVG without any video, having the captions for hearing impaired would be ideal.

&gt; and why e.g. using &lt;video&gt; instead isn&apos;t sufficient?

I haven&apos;t tested that workaround enough to know the answer to that. Right now I can only speculate that some future curated authoring/hosting sites allow &lt;audio&gt; but not &lt;video&gt;.

The key is being able to do it without relying on javascript for when the user isn&apos;t in control of settings such as at a kiosk that has javascript off.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89867</commentid>
    <comment_count>3</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-06-26 03:27:02 +0000</bug_when>
    <thetext>You can render captions for audio resources by putting them into a &lt;video&gt; element.

The controls are not regarded as a rendering area for the audio - audio is only rendered to the audio device. An &lt;audio&gt; element is not rendered visually unless it has controls, so there is no place to render subtitles into - in particular if you are creating your own controls.

Using the &lt;video&gt; element works perfectly fine. You can control the size of the rendering area through CSS.

Also, I don&apos;t see why sites should disallow the use of &lt;video&gt; when they want to render captions on audio resources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89874</commentid>
    <comment_count>4</comment_count>
    <who name="Mardeg">mardeg</who>
    <bug_when>2013-06-26 08:26:44 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Also, I don&apos;t see why sites should disallow the use of &lt;video&gt; when they
&gt; want to render captions on audio resources.

I was thinking along the lines of soundcloud-like sites that are audio-specific, where people couldn&apos;t be trusted to only upload audio to (presuming that playing a video .ogg in &lt;audio&gt; won&apos;t show the video), but in any case this is resolved and now it&apos;s on the record for people looking it up in future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89886</commentid>
    <comment_count>5</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-06-26 13:26:54 +0000</bug_when>
    <thetext>It&apos;s even explained in a note in the HTML spec. See the first note in http://www.whatwg.org/specs/web-apps/current-work/#the-audio-element .

I don&apos;t know what else we can do to explain this to people though.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>