<?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>10975</bug_id>
          
          <creation_ts>2010-10-04 15:35:53 +0000</creation_ts>
          <short_desc>from gmail, JimJJewett said:  Audio and Video should show the fallback content (for older browsers) if they do not understand the codec -- even if they understand video (or audio) itself</short_desc>
          <delta_ts>2012-01-12 23:15:05 +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>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#video</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>jimjjewett</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>s.marshall</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>40558</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-10-04 15:35:53 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#video

Comment:
from gmail, JimJJewett said:  Audio and Video should show the fallback content
(for older browsers) if they do not understand the codec -- even if they
understand video (or audio) itself

Posted from: 99.147.172.248</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40627</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2010-10-05 10:36:50 +0000</bug_when>
    <thetext>No, it shouldn&apos;t. In particular because all browsers have implemented this part of the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40993</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-12 07:35:25 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: Not showing fallback content in browsers that support &lt;video&gt; is an explicit design choice motivated by the eventual agreement on a single codec, at which point this situation won&apos;t arise. It is unfortunate that we have not yet been able to find a common codec, but in practice the market will almost certainly resolve that long before this specification is done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41102</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Jewett">jimjjewett</who>
    <bug_when>2010-10-12 13:24:58 +0000</bug_when>
    <thetext>Even if every single tool agreed to support the XYZ codec, there would still be tools that also supported experimental codec XYZA -- and so there would be times when a browser did not support the codec that happened to be used in practice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41162</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-12 19:36:25 +0000</bug_when>
    <thetext>What fallback would you use in such a case? Why not just provide a fallback video file in a supported format?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41165</commentid>
    <comment_count>5</comment_count>
    <who name="Jim Jewett">jimjjewett</who>
    <bug_when>2010-10-12 20:08:35 +0000</bug_when>
    <thetext>The fallback would depend on the particular video (or audio) and context.

As to why not just provide a fallback in the standard codec ...

Why not just require valid XML?  Because it won&apos;t happen in practice, and it won&apos;t always be an accident when it doesn&apos;t happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41168</commentid>
    <comment_count>6</comment_count>
    <who name="Jim Jewett">jimjjewett</who>
    <bug_when>2010-10-12 20:27:29 +0000</bug_when>
    <thetext>Or if you&apos;re asking what the spec should recommend, then just treat it like an object, and use the internal text or elements.

In other words, replace:

&quot;&quot;&quot;
Content may be provided inside the video element. User agents should not show this content to the user; it is intended for older Web browsers which do not support video, so that legacy video plugins can be tried, or to show text to the users of these older browsers informing them of how to access the video contents.
&quot;&quot;&quot;

with something like:

&quot;&quot;&quot;
Content may be provided inside the video element. User agents should not show this content to the user unless they are unable to play the video.  It is intended for older Web browsers which do not support video, so that legacy video plugins can be tried, or to show text to the users of these older browsers informing them of how to access the video contents or an alternate representation.
&quot;&quot;&quot;

And replace:
&quot;&quot;&quot;
Note: In particular, this content is not intended to address accessibility concerns. ...
&quot;&quot;&quot;

with:

&quot;&quot;&quot;
Note: This content is not the preferred method to address accessibility concerns. ...
&quot;&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41340</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-14 09:56:49 +0000</bug_when>
    <thetext>&gt; The fallback would depend on the particular video (or audio) and context.

Do you have a concrete example of when someone would use a codec that not every browser supports? What fallback would you use for that specific concrete case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41361</commentid>
    <comment_count>8</comment_count>
    <who name="Jim Jewett">jimjjewett</who>
    <bug_when>2010-10-14 13:32:28 +0000</bug_when>
    <thetext>Concrete use cases:

(a)  Transition period, before the One True Codec is fully established.  This also includes legacy pages that are undergoing only minimal maintenance.

(b)  Experimental codecs.  These may be there for political reasons.

(c)  Limited devices, such as low-end cell-phones -- particularly those that tried to use hardware for video, but were finalized before the One True Codec was.

(d)  Personal or low-budget sites, where something is uploaded in the format it was captured in, and not transformed.  (There may also be historical or legal reasons to show something only in the original format.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43548</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-12-26 20:00:49 +0000</bug_when>
    <thetext>What fallback would you use for those specific concrete cases? I don&apos;t understand how you imagine this working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44219</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-01-11 20:22:48 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: I don&apos;t understand what fallback would be used in these cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52725</commentid>
    <comment_count>11</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:03:51 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61549</commentid>
    <comment_count>12</comment_count>
    <who name="sam marshall">s.marshall</who>
    <bug_when>2011-12-14 17:09:56 +0000</bug_when>
    <thetext>Hi, I am coming across this problem now in development work for a real system so I can give you the concrete example that you are asking for. Some of it is related to the &apos;temporary problem&apos; (will that really be resolved by 2014?) that major manufacturers refuse to use .webm format, but not all.

Reopening as instructed, you can always close it again.

The reason why this is a problem:

1) We allow ordinary users, such as schoolteachers, to add video files. They almost certainly won&apos;t understand anything about video formats; we let them upload a range of formats (including crappy ones like .avi, as well as .mp4 for instance).

2) Because this is an open-source system that can be installed on a range of servers and is frequently used on cheap hosting (and also just because it would be some work), we don&apos;t really want to implement automated format conversion relying on a server-side tool such as ffmpeg - at least not yet - this might be a good option in future but there are challenges there.

When we don&apos;t use HTML5, then for all file formats we can offer a fallback via the object tag. The system allows for multiple fallbacks and the last fallback is very simple: we give users a link where they can download the file. In most cases, their operating system probably has a player for the file format.

The problem comes when using HTML5 audio or video tags. Here is the solution I am currently planning to adopt for .mp4 files:

1) At the outer layer, use an object tag (which QuickTime will handle if available).
2) Inside that, put the HTML5 video tag - conditional on a browser-detect depending on the format(s) available.
3) Inside that, put the download link.

The browser-detect is needed because we&apos;d like them to see the link not a broken video (if they see the broken video, some people will call helpdesk whereas there is nothing obviously wrong with our web page when you get a download link).

So this is not impossible to make work if we ladle on enough server-side browser detection and hard-code in knowledge about which browsers support which formats in which versions. It just seems like the sort of problem that HTML5 was supposed to make easier, whereas this particular task is harder to achieve than using the HTML4 object tag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62630</commentid>
    <comment_count>13</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-01-12 23:15:05 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: 

I would recommend the following approaches:

* Don&apos;t allow people to upload content that isn&apos;t in the well-supported format(s).

* If you really must, then first, realise that this is not what the feature was designed for. But then, use script to detect the error condition (using the onerror handler on &lt;video&gt; or &lt;source&gt; depending on what you&apos;re doing) and then in that handler, replace the &lt;video&gt; element with the plugin.

* Alternatively, use &lt;video&gt; as the fallback to the plugin, instead of the plugin as the fallback to the &lt;video&gt;.

Also, always provide the download link, don&apos;t hide it in the fallback.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>