mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
fd0449d8f7
This re-enables the following style rules: - "block-spacing" - "brace-style" - "comma-dangle" - "comma-spacing" - "new-cap" - "no-multi-spaces" - "no-multiple-empty-lines" - "one-var" - "padded-blocks" - "prefer-rest-params" Change-Id: I15d616e8d5b88b273ded6128b4f9ad86bdb26bd1
145 lines
2.5 KiB
JavaScript
145 lines
2.5 KiB
JavaScript
/**
|
|
* @license
|
|
* Copyright 2016 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 Externs for prefixed EME v0.1b.
|
|
* @externs
|
|
*/
|
|
|
|
|
|
/**
|
|
* @param {string} keySystem
|
|
* @param {Uint8Array} key
|
|
* @param {Uint8Array} keyId
|
|
* @param {string} sessionId
|
|
*/
|
|
HTMLMediaElement.prototype.webkitAddKey =
|
|
function(keySystem, key, keyId, sessionId) {};
|
|
|
|
|
|
/**
|
|
* @param {string} keySystem
|
|
* @param {string} sessionId
|
|
*/
|
|
HTMLMediaElement.prototype.webkitCancelKeyRequest =
|
|
function(keySystem, sessionId) {};
|
|
|
|
|
|
/**
|
|
* @param {string} keySystem
|
|
* @param {!Uint8Array} initData
|
|
*/
|
|
HTMLMediaElement.prototype.webkitGenerateKeyRequest =
|
|
function(keySystem, initData) {};
|
|
|
|
|
|
/**
|
|
* An unprefixed variant of the webkit-prefixed API from EME v0.1b.
|
|
* @param {string} keySystem
|
|
* @param {!Uint8Array} initData
|
|
*/
|
|
HTMLMediaElement.prototype.generateKeyRequest =
|
|
function(keySystem, initData) {};
|
|
|
|
|
|
/**
|
|
* @param {string} mimeType
|
|
* @param {string=} keySystem
|
|
* @return {string} '', 'maybe', or 'probably'
|
|
* @override the standard one-argument version
|
|
*/
|
|
HTMLVideoElement.prototype.canPlayType =
|
|
function(mimeType, keySystem) {};
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @param {string} type
|
|
* @param {Object=} eventInitDict
|
|
* @extends {Event}
|
|
*/
|
|
function MediaKeyEvent(type, eventInitDict) {}
|
|
|
|
|
|
/**
|
|
* @type {string}
|
|
* @const
|
|
*/
|
|
MediaKeyEvent.prototype.keySystem;
|
|
|
|
|
|
/**
|
|
* @type {string}
|
|
* @const
|
|
*/
|
|
MediaKeyEvent.prototype.sessionId;
|
|
|
|
|
|
/**
|
|
* @type {Uint8Array}
|
|
* @const
|
|
*/
|
|
MediaKeyEvent.prototype.initData;
|
|
|
|
|
|
/**
|
|
* @type {Uint8Array}
|
|
* @const
|
|
*/
|
|
MediaKeyEvent.prototype.message;
|
|
|
|
|
|
/**
|
|
* @type {string}
|
|
* @const
|
|
*/
|
|
MediaKeyEvent.prototype.defaultURL;
|
|
|
|
|
|
/**
|
|
* @type {MediaKeyError}
|
|
* @const
|
|
*/
|
|
MediaKeyEvent.prototype.errorCode;
|
|
|
|
|
|
/**
|
|
* @type {number}
|
|
* @const
|
|
*/
|
|
MediaKeyEvent.prototype.systemCode;
|
|
|
|
|
|
/**
|
|
* @type {!HTMLMediaElement}
|
|
* @const
|
|
*/
|
|
MediaKeyEvent.prototype.target;
|
|
|
|
|
|
/** @constructor */
|
|
function MediaKeyError() {}
|
|
|
|
|
|
/** @type {number} */
|
|
MediaKeyError.prototype.code;
|
|
|
|
|
|
/** @type {number} */
|
|
MediaKeyError.prototype.systemCode;
|
|
|