--- a/encrypted-media/encrypted-media.html Tue Jul 09 08:00:36 2013 -0700
+++ b/encrypted-media/encrypted-media.html Tue Jul 16 07:48:45 2013 -0700
@@ -57,7 +57,7 @@
<div class="head">
<p><a href="http://www.w3.org/"><img src="https://www.w3.org/Icons/w3c_home" alt="W3C" width="72" height="48"></a></p>
<h1>Encrypted Media Extensions</h1>
- <h2 id="draft-date">W3C Editor's Draft 2 July 2013</h2>
+ <h2 id="draft-date">W3C Editor's Draft 16 July 2013</h2>
<dl>
<dt>This Version:</dt>
<dd><a href="http://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html">http://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html</a></dd>
@@ -658,6 +658,7 @@
[Constructor(DOMString type, optional <a href="#dom-mediakeyneededeventinit">MediaKeyNeededEventInit</a> eventInitDict)]
interface <dfn id="dom-mediakeyneededevent">MediaKeyNeededEvent</dfn> : <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event">Event</a> {
readonly attribute Uint8Array? <a href="#dom-initdata">initData</a>;
+ readonly attribute DOMString <a href="#dom-type">type</a>;
};
dictionary <dfn id="dom-mediakeyneededeventinit">MediaKeyNeededEventInit</dfn> : <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
@@ -678,6 +679,12 @@
<p>Returns the <a href="#initialization-data">Initialization Data</a> related to the event.</p>
</dd>
<dt>
+<var title="">event</var> . <code><a href="#dom-type">type</a></code>
+</dt>
+ <dd>
+ <p>Returns the MIME type of the <a href="http://www.w3.org/TR/html5/embedded-content-0.html#media-data">media data</a> related to the event.</p>
+ </dd>
+ <dt>
<var title="">event</var> . <code><a href="#dom-message">message</a></code>
</dt>
<dd>
@@ -686,6 +693,7 @@
</dl>
<div class="impl">
<p>The <dfn id="dom-initdata"><code>initData</code></dfn> attribute contains <a href="#initialization-data">Initialization Data</a> specific to the event.</p>
+ <p>The <dfn id="dom-type"><code>type</code></dfn> attribute contains the MIME type of the <a href="http://www.w3.org/TR/html5/embedded-content-0.html#media-data">media data</a> specific to the event. The format of the <code><a href="#dom-initdata">initData</a></code> will depend on the <code><a href="#dom-type">type</a></code>.</p>
<p>The <dfn id="dom-message"><code>message</code></dfn> attribute contains a message from the CDM. Messages are Key System-specific. <span class="non-normative">In most cases, it should be sent to a key server.</span></p>
<p>The <dfn id="dom-destinationurl"><code>destinationURL</code></dfn> is the URL to send the <code><a href="#dom-message">message</a></code> to.
An application <em>may</em> override this.
--- a/encrypted-media/encrypted-media.xml Tue Jul 09 08:00:36 2013 -0700
+++ b/encrypted-media/encrypted-media.xml Tue Jul 16 07:48:45 2013 -0700
@@ -56,7 +56,7 @@
<div class="head">
<p><a href="http://www.w3.org/"><img src="https://www.w3.org/Icons/w3c_home" alt="W3C" width="72" height="48" /></a></p>
<h1>Encrypted Media Extensions</h1>
- <h2 id="draft-date">W3C Editor's Draft 2 July 2013</h2>
+ <h2 id="draft-date">W3C Editor's Draft 16 July 2013</h2>
<dl>
<dt>This Version:</dt>
<dd><a href="http://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html">http://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html</a></dd>
@@ -620,6 +620,7 @@
[Constructor(DOMString type, optional <precoderef>MediaKeyNeededEventInit</precoderef> eventInitDict)]
interface <precodedfn>MediaKeyNeededEvent</precodedfn> : <dom4ref name="event">Event</dom4ref> {
readonly attribute Uint8Array? <precoderef>initData</precoderef>;
+ readonly attribute DOMString <precoderef>type</precoderef>;
};
dictionary <precodedfn>MediaKeyNeededEventInit</precodedfn> : <dom4ref name="eventinit">EventInit</dom4ref> {
@@ -635,6 +636,10 @@
<dd>
<p>Returns the <a href="#initialization-data">Initialization Data</a> related to the event.</p>
</dd>
+ <dt><var title="">event</var> . <coderef>type</coderef></dt>
+ <dd>
+ <p>Returns the MIME type of the <videoanchor name="media-data">media data</videoanchor> related to the event.</p>
+ </dd>
<dt><var title="">event</var> . <coderef>message</coderef></dt>
<dd>
<p>Returns the message <span class="non-normative">(i.e. key request)</span> to send.</p>
@@ -642,6 +647,7 @@
</dl>
<div class="impl">
<p>The <codedfn>initData</codedfn> attribute contains <a href="#initialization-data">Initialization Data</a> specific to the event.</p>
+ <p>The <codedfn>type</codedfn> attribute contains the MIME type of the <videoanchor name="media-data">media data</videoanchor> specific to the event. The format of the <coderef>initData</coderef> will depend on the <coderef>type</coderef>.</p>
<p>The <codedfn>message</codedfn> attribute contains a message from the CDM. Messages are Key System-specific. <span class="non-normative">In most cases, it should be sent to a key server.</span></p>
<p>The <codedfn>destinationURL</codedfn> is the URL to send the <coderef>message</coderef> to.
An application <em>may</em> override this.