<?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>18622</bug_id>
          
          <creation_ts>2012-08-20 12:48:20 +0000</creation_ts>
          <short_desc>endOfStream(&quot;decode&quot;) when HTMLMediaElement.readyState == HAVE_NOTHING</short_desc>
          <delta_ts>2012-09-14 17:07:34 +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>Media Source Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>VERIFIED</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>acolwell</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</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>72432</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-20 12:48:20 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-endofstream

The MSE spec unconditionally invokes the &quot;If the media data is corrupted&quot; section of the HTML spec. Before readyState has reached HAVE_METADATA, it would be more in line with how e.g. HTTP resources work to invoke &quot;If the media data can be fetched but is found by inspection to be in an unsupported format, or can otherwise not be rendered at all.&quot;

At least in Opera, network errors are treated differently depending on readyState, so jumping straight into &quot;If the media data is corrupted&quot; when readyState is HAVE_METADATA would requiring special-casing MSE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72433</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-20 12:51:05 +0000</bug_when>
    <thetext>Oops, I mixed things up, resolving as invalid and trying again...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72436</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-20 14:02:57 +0000</bug_when>
    <thetext>Actually, I am doubly confused, there&apos;s a problem with both &quot;decode&quot; and &quot;network&quot;. The first comment is correct, except for the typo in the second paragraph -- I mean &quot;decoding errors&quot; and not &quot;network errors.&quot;

Like in Bug 18624, the behavior should depend on readyState, for consistency with HTTP and other resources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73818</commentid>
    <comment_count>3</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-09-14 01:02:03 +0000</bug_when>
    <thetext>Changes committed.
http://dvcs.w3.org/hg/html-media/rev/349559debcc3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73912</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-09-14 12:30:53 +0000</bug_when>
    <thetext>Looks good, but there are some missing words in &quot;If [the] HTMLMediaElement.readyState attribute [is] greater than HAVE_NOTHING&quot; and similar phrasing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73933</commentid>
    <comment_count>5</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-09-14 17:07:34 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Looks good, but there are some missing words in &quot;If [the]
&gt; HTMLMediaElement.readyState attribute [is] greater than HAVE_NOTHING&quot; and
&gt; similar phrasing.
Oops. These fixes will be in the next set of updates.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>