W3C home > Mailing lists > Public > public-html@w3.org > July 2015

Clarification on "simple event"

From: Jerry Smith (IEP) <jdsmith@microsoft.com>
Date: Tue, 28 Jul 2015 16:30:14 +0000
To: "public-html@w3.org" <public-html@w3.org>
Message-ID: <BY2PR03MB041917EC62A3FBA969526EDA48D0@BY2PR03MB041.namprd03.prod.outlook.com>
The following question relates to https://github.com/w3c/encrypted-media/issues/17.

The HTML Media Task Force is looking for clarification on what constitutes a "simple event".  The EME spec (https://w3c.github.io/encrypted-media/) currently defines four "simple events":  two with no attributes (keystatuseschange & waitingforkey) and two with attributes (message & encrypted).  The attributes on the latter two provide initDataType and initData necessary to handle the events.  We've seen references to "trusted events" in other places where attributes are provided.

If trusted events was more correct, we might change event handling language like this:

Queue a task to fire a simple event named encrypted at the media element. The event is of type MediaEncryptedEvent and has: initDataType = initDataType initData = initData.

To this:

Queue a task to fire a trusted event with the name encrypted, that does not bubble and is not cancelable, that uses the Event interface, and is of type MediaEncryptedEvent with the track attributes initDataType initialized to initDataType and initData initialized to initData, at the media element.

The specifics on trusted handling aren't especially relevant though.  Can anyone confirm whether a simple event may include attributes of the type discussed above?

Jerry
Received on Tuesday, 28 July 2015 16:30:45 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:44 UTC