<?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>25429</bug_id>
          
          <creation_ts>2014-04-23 14:57:56 +0000</creation_ts>
          <short_desc>restrained media controller should not depend on blocked media elements</short_desc>
          <delta_ts>2014-04-30 09:32:02 +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/#media-controllers</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>104275</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-04-23 14:57:56 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#media-controllers
Complete: http://www.whatwg.org/c#media-controllers
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
restrained media controller should not depend on blocked media elements

Posted from: 83.218.67.123
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 OPR/21.0.1432.39 (Edition Next)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104277</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-04-23 15:10:44 +0000</bug_when>
    <thetext>I implemented the activation behavior (click to play/pause) for media elements and used the same logic internally to toggle paused state from the native controls. This revealed an oddity in the definition of a restrained media controller.

If the media controller is playing and its slaved media elements are paused (their initial states), the controller is usually restricted and the UI would show a play button. However, when seeking, the media element&apos;s readyState will fall down to HAVE_METADATA momentarily, causing it to be blocked, so that the controller is then not restricted (nor paused) so a pause button would be shown instead. The net result is that when dragging the seek bar of a paused media element attached to a playing media controller, the play/pause button will flicker between the two states.

Of course I could just fix the controls to hide the issue, but I don&apos;t see why a blocked media element is part of the definition of restricted. In general it would make sense if a single media element slaved to a media controller behaved like a standalone media element, and there readyState is simply not involved in determining whether clicking should play or pause.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104279</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-04-23 15:19:17 +0000</bug_when>
    <thetext>FWIW, I&apos;ve tested simply removing the bit about blocked media elements from the implementation and that fixes the flickering problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104642</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-29 00:18:18 +0000</bug_when>
    <thetext>Yeah I dunno what I was thinking there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104643</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-04-29 00:18:29 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8585.
Check-in comment: restrained media controller should not stop being restrainted just because the video elements haven&apos;t finished loading their content
http://html5.org/tools/web-apps-tracker?from=8584&amp;to=8585</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104795</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-04-30 09:32:02 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>