mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
b092231952
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
35 lines
919 B
JavaScript
35 lines
919 B
JavaScript
/**
|
|
* 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() {};
|
|
|