<?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>16612</bug_id>
          
          <creation_ts>2012-04-03 16:15:19 +0000</creation_ts>
          <short_desc>Consider wrapping all encrypted media methods inside a new interface</short_desc>
          <delta_ts>2012-08-17 05:58:06 +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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>16613</dependson>
          <blocked>17199</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Watson">watsonm</reporter>
          <assigned_to name="David Dorwin">ddorwin</assigned_to>
          <cc>acolwell</cc>
    
    <cc>ddorwin</cc>
    
    <cc>eric.sun</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-media</cc>
    
    <cc>public-html-wg-issue-tracking</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>66371</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2012-04-03 16:15:19 +0000</bug_when>
    <thetext>It has been suggested that only a single key manager attribute be added to the HTMLMediaElement itself in order to improve encapsulation. For example:

partial interface HTMLMediaElement {
    attribute MediaKeyManager keymanager;
};

interface MediaKeyManager {
  void generateKeyRequest(in DOMString keySystem, in Uint8Array? initData);
  void addKey(in DOMString keySystem, in Uint8Array key, in Uint8Array? initData, in DOMString? sessionId);
  void cancelKeyRequest(in DOMString keySystem, in DOMString? sessionId);
};</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68162</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-05-25 22:24:06 +0000</bug_when>
    <thetext>Bug 16613 also relates to improving encapsulation. We should address these two issues together.

The Media Source Extensions effort is also discussing whether to encapsulate the methods - see bug 17082. We should track the progress there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68931</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-06-12 00:03:49 +0000</bug_when>
    <thetext>Bug 16613 may address this for us. If we choose not to address that bug, then we will need to specifically address this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68941</commentid>
    <comment_count>3</comment_count>
    <who name="Yang Sun">eric.sun</who>
    <bug_when>2012-06-12 05:46:18 +0000</bug_when>
    <thetext>
Hi, Mark

So this is about encrypted key managed object for media element?
Will generateKeyRequest request browser or request web site?
Why no removeKey method for this interface?

KeySystem means encrypted mechinism used by this media element,right?
The generateKeyRequest will return a key to be used by addkey?

And what&apos;s the meaning of cancelKeyRequest? During requesting key from ??? and we cancel it by a button or js inside logic?

Sorry for so many questions.......

(In reply to comment #0)
&gt; It has been suggested that only a single key manager attribute be added to the
&gt; HTMLMediaElement itself in order to improve encapsulation. For example:
&gt; 
&gt; partial interface HTMLMediaElement {
&gt;     attribute MediaKeyManager keymanager;
&gt; };
&gt; 
&gt; interface MediaKeyManager {
&gt;   void generateKeyRequest(in DOMString keySystem, in Uint8Array? initData);
&gt;   void addKey(in DOMString keySystem, in Uint8Array key, in Uint8Array?
&gt; initData, in DOMString? sessionId);
&gt;   void cancelKeyRequest(in DOMString keySystem, in DOMString? sessionId);
&gt; };</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72330</commentid>
    <comment_count>4</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-08-17 05:56:13 +0000</bug_when>
    <thetext>Addressed by the object-oriented API (bug 16613).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>