<?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>27740</bug_id>
          
          <creation_ts>2015-01-03 23:44:35 +0000</creation_ts>
          <short_desc>Suggest changing interface name &apos;MediaKeyStatuses&apos; to &apos;MediaKeyStatusMap&apos;</short_desc>
          <delta_ts>2015-01-15 01:35:03 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>API_Compatibility</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>27739</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Glenn Adams">glenn</reporter>
          <assigned_to name="David Dorwin">ddorwin</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>116768</commentid>
    <comment_count>0</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2015-01-03 23:44:35 +0000</bug_when>
    <thetext>Since MediaKeyStatuses is nothing more than a maplike&lt;&gt;, I suggest changing the name to MediaKeyStatusMap. The term &apos;status&apos; is often used as a mass noun, in which case status is also the plural. Since there is also a MediaKeyStatus interface, I see why this wasn&apos;t an option, but &apos;statuses&apos; just sounds odd to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116899</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-07 21:12:35 +0000</bug_when>
    <thetext>Note that the name of the attribute that uses this type is &quot;keyStatuses&quot;. Would this change too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117098</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-13 21:46:45 +0000</bug_when>
    <thetext>As discussed in the telecon today, we&apos;ll change the name of the type. Note, that this is also consistent with MIDIInputMap [1].

Other interesting things from the Web MIDI spec:
1. The map key is DOMString &quot;id&quot;, and the value is MIDIInput &quot;port&quot; [1]. Thus, the &quot;MIDI input map&quot;, is a map of an ID to a MIDIInput.
2. The attribute that uses MIDIInputMap is named &quot;inputs&quot; and has the description &quot;The MIDI input ports available to the system. [2]&quot;

Applying these to EME:
#1 - MediaKeyStatusMap is a map of an ID to a MediaKeyStatus.
#2 - keyStatuses is the shortened plural name of the type of value (MediaKeyStatus &gt; keyStatuses as MIDIInput &gt; inputs).

In summary, the type will change to MediaKeyStatusMap and we will keep the attribute name &quot;keyStatuses&quot;.

[1] http://webaudio.github.io/web-midi-api/#midiinputmap-interface
[2] http://webaudio.github.io/web-midi-api/#widl-MIDIAccess-inputs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117178</commentid>
    <comment_count>3</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2015-01-15 01:26:31 +0000</bug_when>
    <thetext>Implemented in https://github.com/w3c/encrypted-media/commit/98790589a5a9528a13c1d2b09ea9566edfb77138</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117180</commentid>
    <comment_count>4</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2015-01-15 01:35:03 +0000</bug_when>
    <thetext>thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>