mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-18 16:36:56 +03:00
7e6a0f38ff
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
71 lines
1.3 KiB
JavaScript
71 lines
1.3 KiB
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
|
|
/**
|
|
* @externs
|
|
*/
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* hasAppRestrictions: boolean,
|
|
* missingKeys: !Array.<string>,
|
|
* restrictedKeyStatuses: !Array.<string>
|
|
* }}
|
|
*
|
|
* @property {boolean} hasAppRestrictions
|
|
* Whether there are streams that are restricted due to app-provided
|
|
* restrictions.
|
|
* @property {!Array.<string>} missingKeys
|
|
* The key IDs that were missing.
|
|
* @property {!Array.<string>} restrictedKeyStatuses
|
|
* The restricted EME key statuses that the streams had. For example,
|
|
* 'output-restricted' would mean streams couldn't play due to restrictions
|
|
* on the output device (e.g. HDCP).
|
|
* @exportDoc
|
|
*/
|
|
shaka.extern.RestrictionInfo;
|
|
|
|
|
|
/**
|
|
* @interface
|
|
* @exportDoc
|
|
*/
|
|
shaka.extern.Error = class {
|
|
constructor() {
|
|
/**
|
|
* @type {shaka.util.Error.Severity}
|
|
* @exportDoc
|
|
*/
|
|
this.severity;
|
|
|
|
/**
|
|
* @const {shaka.util.Error.Category}
|
|
* @exportDoc
|
|
*/
|
|
this.category;
|
|
|
|
/**
|
|
* @const {shaka.util.Error.Code}
|
|
* @exportDoc
|
|
*/
|
|
this.code;
|
|
|
|
/**
|
|
* @const {!Array.<*>}
|
|
* @exportDoc
|
|
*/
|
|
this.data;
|
|
|
|
/**
|
|
* @type {boolean}
|
|
* @exportDoc
|
|
*/
|
|
this.handled;
|
|
}
|
|
};
|