<?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>26570</bug_id>
          
          <creation_ts>2014-08-13 14:56:01 +0000</creation_ts>
          <short_desc>MediaController.unpause() doesn&apos;t seek when ended</short_desc>
          <delta_ts>2014-09-12 20:06:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#synchronising-multiple-media-elements</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110138</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-08-13 14:56:01 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content.html
Multipage: http://www.whatwg.org/C#synchronising-multiple-media-elements
Complete: http://www.whatwg.org/c#synchronising-multiple-media-elements
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
MediaController.unpause() doesn&apos;t seek when ended

Posted from: 83.218.67.123
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.35 Safari/537.36 OPR/24.0.1558.21 (Edition Developer)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110139</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-13 14:59:20 +0000</bug_when>
    <thetext>If a MediaController is in playbackState &quot;ended&quot;, calling unpause() will just leave it paused at the end. Because the &quot;activation behavior of a media element that is exposing a user interface to the user&quot; is defined in terms of unpause(), clicking a slaved video that has played to the end won&apos;t cause it to start playing again.

This was reported as a bug on Chromium&apos;s audio controls:
https://code.google.com/p/chromium/issues/detail?id=403320

Either tweaking the activation behavior or unpause() itself seems to fix the problem, in both cases simply setting currentTime to 0 if playbackState == &quot;ended&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111452</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-09-12 18:03:27 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8766.
Check-in comment: Make clicking on a paused media element attached to a paused media controller restart playback from zero
http://html5.org/tools/web-apps-tracker?from=8765&amp;to=8766</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111460</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-09-12 20:06:19 +0000</bug_when>
    <thetext>Note to self and other implementors: this was followed by an editorial rewrite of the steps: http://html5.org/r/8767</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>