-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add key status support and video error events.
This adds support for EME key statuses, which are translated into Player error events. It also listens for error events on the video tag, which are also translated into Player error events. This also updates the prefixed EME polyfill to simulate key statuses for prefixed EME. Applications can now detect HDCP failures and message appropriately. Native key status support was not added to Chrome until Chrome 42. The prefixed EME events to detect HDCP failures work in Chrome 39 and Chrome 42, but are broken in Chrome 40 & 41. Closes #14, b/19244591 Change-Id: I112c489bda63360d2bedca83f190c639559641ea
- Loading branch information
1 parent
b244def
commit b092231
Showing
4 changed files
with
371 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Copyright 2015 Google Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @fileoverview Iterator externs missing from closure. | ||
* @externs | ||
*/ | ||
|
||
|
||
|
||
/** | ||
* @interface | ||
* @template VALUE | ||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/The_Iterator_protocol | ||
*/ | ||
function Iterator() {} | ||
|
||
|
||
/** | ||
* @return {{value:VALUE, done:boolean}} | ||
*/ | ||
Iterator.prototype.next = function() {}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.