<?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>18660</bug_id>
          
          <creation_ts>2012-08-23 08:35:41 +0000</creation_ts>
          <short_desc>Run endOfStream(&quot;decode&quot;) instead of &quot;the media element&apos;s error handling code&quot;</short_desc>
          <delta_ts>2012-09-14 12:39:09 +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>72594</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-23 08:35:41 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-append

The phrasing &quot;run the media element&apos;s error handling code to signal a MediaError.MEDIA_ERR_DECODE error&quot; is used in a few places.

The intention must be to treat this as a decode error in any other kind of resource, but this doesn&apos;t point out the section in HTML that actually does this.

Suggestion: Define that the equivalent of endOfStream(&quot;decode&quot;) be run.

This will also set readyState to &quot;ended&quot;, which seems desirable to cause any further call to append() to fail. Possibly, the call where the decode error is caught should also throw, but a caller could tell that an error occurred by checking readyState, so it&apos;s not strictly necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73820</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-09-14 01:03:00 +0000</bug_when>
    <thetext>Changes committed.
http://dvcs.w3.org/hg/html-media/rev/349559debcc3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>