<?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>24381</bug_id>
          
          <creation_ts>2014-01-24 09:50:40 +0000</creation_ts>
          <short_desc>HTMLMediaElement.setMediaKeys() appears superfluous</short_desc>
          <delta_ts>2014-02-18 16:44:09 +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>Encrypted Media Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>20337</dup_id>
          
          <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>ddorwin</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>98992</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-01-24 09:50:40 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#dom-setmediakeys

The mediaKeys attribute could be made writable instead. That setting is not &quot;trivial&quot; or that it may throw an exception is not in itself reason to have a setter function, an IDL attribute setter can do the same thing.

See HTMLMediaElement.controller for an analogous situation:

http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-controller

Here the getter is trivial but the setter does all kinds of things.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99108</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-01-26 17:04:00 +0000</bug_when>
    <thetext>If a change is being made anyway, I&apos;d also suggest naming the IDL attribute just keys. MediaError is error, MediaControls is controls and MediaKeys is... mediaKeys.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100803</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2014-02-18 16:44:09 +0000</bug_when>
    <thetext>We discussed this a long time ago and concluded that we wanted a method. I&apos;m not sure anything has changed to make us reconsider this. Clearly this is mostly subjective and we decided in 2012 to use a method. See bug 20337.

*** This bug has been marked as a duplicate of bug 20337 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>