<?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>12547</bug_id>
          
          <creation_ts>2011-04-23 03:17:33 +0000</creation_ts>
          <short_desc>&lt;video&gt; Expose the /most recently reported readiness state/ as MediaController.readyState</short_desc>
          <delta_ts>2012-06-05 00:15:13 +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>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11ytf, media</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>9452</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Foliot">jfoliot</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bmf834</cc>
    
    <cc>ian</cc>
    
    <cc>jer.noble</cc>
    
    <cc>laura.lee.carlson</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-a11y</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</cc>
    
    <cc>scherkus</cc>
    
    <cc>silviapfeiffer1</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>47625</commentid>
    <comment_count>0</comment_count>
    <who name="John Foliot">jfoliot</who>
    <bug_when>2011-04-23 03:17:33 +0000</bug_when>
    <thetext>The MediaController object currently does not expose an aggregate view of the readyState of the slave media elements. It is, however, impossible for a developer to reliably aggregate the readyState from the individual slave media elements, since their states may continue to change. The media framework inside the UA is the only place where such aggregation is sensibly possible.

Therefore, we request addition of a readyState IDL attribute on the MediaController object.
It must represent the minimum state that all the slave media elements have achieved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47635</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-04-23 09:35:42 +0000</bug_when>
    <thetext>The suggestion 

If it is really just the minimum of all slave media elements, this is actually trivial to achieve using scripts and does not need to be</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47636</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-04-23 09:46:08 +0000</bug_when>
    <thetext>Oops, slipped on the submit button. Again:

The suggestion says &quot;the UA is the only place where such aggregation is sensibly possible&quot;, but also that the aggregate readyState is simply the minimum of all the slave elements. This would actually be trivial to do with scripts, having the UA do it doesn&apos;t provide any benefit.

More generally, readyState on HTMLMediaElement is only really useful in two situations:

1. When the state after an event is ambiguous, such as in the waiting event.

2. When attaching controls to an already playing media element and need to bring them up to speed.

Both cases are somewhat advanced uses of the API, and I really think it wouldn&apos;t be much to ask in such a situation that the minimum of the readyStates be calculated by scripts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47800</commentid>
    <comment_count>3</comment_count>
    <who name="Laura Carlson">laura.lee.carlson</who>
    <bug_when>2011-04-29 12:10:31 +0000</bug_when>
    <thetext>Per Martin Kliehm &quot;although the bug-triage sub-team didn&apos;t decide on these bugs yet, John mentioned in yesterdays teleconference [1] that there are several important multimedia related bugs where he&apos;d like to add the a11ytf keyword. There was approval&quot;. 

[1] http://www.w3.org/2011/04/28-html-a11y-minutes.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49740</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-06-16 21:53:25 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: see comment 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53731</commentid>
    <comment_count>5</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:16:49 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59533</commentid>
    <comment_count>6</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-11-02 22:55:05 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Both cases are somewhat advanced uses of the API, and I really think it
&gt; wouldn&apos;t be much to ask in such a situation that the minimum of the readyStates
&gt; be calculated by scripts.

In implementing this spec for WebKit, I have become convinced that the implementation of a readyState accessor is so incredibly trivial that even if the only benefit were to keep script authors from having to calculate the minimum readyState of the slaved media elements, it would still be worth adding.

But as there is no accessor in MediaController for the current slaved media elements, even doing this calculation script-side has the potential for errors.

&gt; 2. When attaching controls to an already playing media element and need to
bring them up to speed.

Note that, currently, attaching a playing media element to a media group does not trigger &quot;reporting the controller state&quot;, and thus in this situation the minimum slaved element readyState and the controller readyState are not the same.

As such, I&apos;d like to reopen this bug for consideration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59565</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-11-03 16:37:58 +0000</bug_when>
    <thetext>For the latter case, should we change the spec to report the state?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59576</commentid>
    <comment_count>8</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-11-03 18:07:17 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; For the latter case, should we change the spec to report the state?

I believe so, yes. Does that deserve a separate bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61071</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-12-07 00:56:31 +0000</bug_when>
    <thetext>Nah, we can use this bug for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68606</commentid>
    <comment_count>10</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-06-04 23:42:28 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7115.
Check-in comment: Update the controller state when the current media controller changes.
http://html5.org/tools/web-apps-tracker?from=7114&amp;to=7115</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68607</commentid>
    <comment_count>11</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-06-05 00:14:42 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7116.
Check-in comment: Expose the controller state, since implementing it is apparently easy and it can be a bit more subtle than it looks.
http://html5.org/tools/web-apps-tracker?from=7115&amp;to=7116</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68608</commentid>
    <comment_count>12</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-06-05 00:15:13 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diffs given above
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>