<?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>27843</bug_id>
          
          <creation_ts>2015-01-16 09:22:38 +0000</creation_ts>
          <short_desc>[MSE] Should the media element load algorithm trigger detaching from a media element?</short_desc>
          <delta_ts>2015-10-13 22:57:46 +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>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>CR</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>
    
    <cc>wolenetz</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>117272</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-01-16 09:22:38 +0000</bug_when>
    <thetext>https://w3c.github.io/media-source/#mediasource-detach

&quot;The following steps are run in any case where the media element is going to transition to NETWORK_EMPTY and queue a task to fire a simple event named emptied at the media element. These steps must be run right before the transition.&quot;

Per a literal reading of the MSE spec, the media element load algorithm in the HTML spec does not qualify, as there is no transition to NETWORK_EMPTY. In Blink the &quot;If a fetching process is in progress for the media element, the user agent should stop it.&quot; step is &quot;implemented&quot; by setting networkState to NETWORK_EMPTY, but per spec that doesn&apos;t happen and doesn&apos;t matter since the resource selection algorithm set it to NETWORK_NO_SOURCE.

A review of exactly which bits of the HTML spec should trigger the detaching from a media element may be in order. The &quot;These steps must be run right before the transition.&quot; also make it such that the event order depends on the order in which HTML queues the task to fire the event and sets networkState.

If an explicit hook in HTML would help, let&apos;s ask Hixie for one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123690</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Wolenetz">wolenetz</who>
    <bug_when>2015-10-13 22:57:46 +0000</bug_when>
    <thetext>This bug has been migrated to the GitHub issue tracker. Please follow/update progress using the GitHub issue:
https://github.com/w3c/media-source/issues/17</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>