mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-25 17:45:03 +03:00
64896d70b0
This reflects changes in Google's policy on JavaScript license headers, which should be smaller to avoid increasing the size of the binary unnecessarily. This also updates the company name from "Google, Inc" to "Google LLC". Change-Id: I3f8b9ed3700b6351f43173d50c94d35c333e82b4
118 lines
2.1 KiB
JavaScript
118 lines
2.1 KiB
JavaScript
/** @license
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Externs for prefixed EME v20140218 as supported by IE11/Edge
|
|
* (http://www.w3.org/TR/2014/WD-encrypted-media-20140218).
|
|
* @externs
|
|
*/
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @param {string} keySystem
|
|
*/
|
|
function WebKitMediaKeys(keySystem) {}
|
|
|
|
|
|
/**
|
|
* @param {string} keySystem
|
|
* @param {string} contentType
|
|
* @return {boolean}
|
|
*/
|
|
WebKitMediaKeys.isTypeSupported = function(keySystem, contentType) {};
|
|
|
|
|
|
/**
|
|
* @param {string} contentType
|
|
* @param {Uint8Array} initData
|
|
* @return {!WebKitMediaKeySession}
|
|
*/
|
|
WebKitMediaKeys.prototype.createSession = function(contentType, initData) {};
|
|
|
|
|
|
/**
|
|
* @interface
|
|
* @extends {EventTarget}
|
|
*/
|
|
function WebKitMediaKeySession() {}
|
|
|
|
|
|
/**
|
|
* @param {Uint8Array} message
|
|
*/
|
|
WebKitMediaKeySession.prototype.update = function(message) {};
|
|
|
|
|
|
WebKitMediaKeySession.prototype.close = function() {};
|
|
|
|
|
|
/** @type {string} */
|
|
WebKitMediaKeySession.prototype.sessionId;
|
|
|
|
|
|
/** @type {WebKitMediaKeyError} */
|
|
WebKitMediaKeySession.prototype.error;
|
|
|
|
|
|
/** @override */
|
|
WebKitMediaKeySession.prototype.addEventListener =
|
|
function(type, listener, useCapture) {};
|
|
|
|
|
|
/** @override */
|
|
WebKitMediaKeySession.prototype.removeEventListener =
|
|
function(type, listener, useCapture) {};
|
|
|
|
|
|
/** @override */
|
|
WebKitMediaKeySession.prototype.dispatchEvent = function(evt) {};
|
|
|
|
|
|
/**
|
|
* @param {WebKitMediaKeys} mediaKeys
|
|
*/
|
|
HTMLMediaElement.prototype.webkitSetMediaKeys = function(mediaKeys) {};
|
|
|
|
|
|
/** @type {WebKitMediaKeys} */
|
|
HTMLMediaElement.prototype.webkitKeys;
|
|
|
|
|
|
/** @constructor */
|
|
function WebKitMediaKeyError() {}
|
|
|
|
|
|
/** @type {number} */
|
|
WebKitMediaKeyError.prototype.code;
|
|
|
|
|
|
/** @type {number} */
|
|
WebKitMediaKeyError.prototype.systemCode;
|
|
|
|
|
|
/** @type {number} */
|
|
WebKitMediaKeyError.MEDIA_KEYERR_UNKNOWN;
|
|
|
|
|
|
/** @type {number} */
|
|
WebKitMediaKeyError.MEDIA_KEYERR_CLIENT;
|
|
|
|
|
|
/** @type {number} */
|
|
WebKitMediaKeyError.MEDIA_KEYERR_SERVICE;
|
|
|
|
|
|
/** @type {number} */
|
|
WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT;
|
|
|
|
|
|
/** @type {number} */
|
|
WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE;
|
|
|
|
|
|
/** @type {number} */
|
|
WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN;
|