<?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>18624</bug_id>
          
          <creation_ts>2012-08-20 13:51:51 +0000</creation_ts>
          <short_desc>endOfStream(&quot;network&quot;) issues</short_desc>
          <delta_ts>2012-09-14 12:31:24 +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>72435</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-20 13:51:51 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-endofstream

MSE maps endOfStream(&quot;network&quot;) to &quot;If the connection is interrupted, causing the user agent to give up trying to fetch the resource&quot; but HTML has no such section, it is called &quot;If the connection is interrupted after some media data has been received, causing the user agent to give up trying to fetch the resource.&quot;

The &quot;after some media data has been received&quot; difference is relevant, because at least in Opera, this step of the algorithm can only be run when HTMLMediaElement.readyState &gt; HAVE_NOTHING. Network errors reported when readyState is HAVE_NOTHING are treated as &quot;If the media data cannot be fetched at all, due to network errors, causing the user agent to give up trying to fetch the resource&quot;.

For consistency with HTTP and other resources, I think the handling should be different &quot;after some media data has been received&quot;, i.e. depending on readyState.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73819</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-09-14 01:02:29 +0000</bug_when>
    <thetext>Changes committed.
http://dvcs.w3.org/hg/html-media/rev/349559debcc3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>