Files
shaka-player/externs/webkitmediakeys.js
T
Joey Parrish 7e6a0f38ff fix: Correct license headers in misc. files
This corrects/normalizes license headers in misc. files, such as
config files, docs, build tools, tests, and externs.  This does not
affect the compiled output, and is only done for consistency.

Issue #2638

Change-Id: I9d8da2de55243b08d7df2b743aac73c6f15e858a
2020-06-09 16:13:56 -07:00

119 lines
2.1 KiB
JavaScript

/*! @license
* Shaka Player
* 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;