mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +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
55 lines
953 B
JavaScript
55 lines
953 B
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Externs for AudioTrack which are missing from the Closure
|
|
* compiler.
|
|
*
|
|
* @externs
|
|
*/
|
|
|
|
/** @constructor */
|
|
function AudioTrack() {}
|
|
|
|
/** @type {boolean} */
|
|
AudioTrack.prototype.enabled;
|
|
|
|
/** @type {string} */
|
|
AudioTrack.prototype.id;
|
|
|
|
/** @type {string} */
|
|
AudioTrack.prototype.kind;
|
|
|
|
/** @type {string} */
|
|
AudioTrack.prototype.label;
|
|
|
|
/** @type {string} */
|
|
AudioTrack.prototype.language;
|
|
|
|
/** @type {SourceBuffer} */
|
|
AudioTrack.prototype.sourceBuffer;
|
|
|
|
|
|
/**
|
|
* @extends {IArrayLike.<AudioTrack>}
|
|
* @extends {EventTarget}
|
|
* @interface
|
|
*/
|
|
class AudioTrackList {
|
|
/** @override */
|
|
addEventListener(type, listener, useCapture) {}
|
|
|
|
/** @override */
|
|
removeEventListener(type, listener, useCapture) {}
|
|
|
|
/** @override */
|
|
dispatchEvent(event) {}
|
|
}
|
|
|
|
|
|
/** @type {AudioTrackList} */
|
|
HTMLMediaElement.prototype.audioTracks;
|