mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
f539147d48
This fixes all the license headers in the main library, which corrects the appearance of the main license in the compiled output. It seems that the `!` in the header forces the compiler to keep it in the output. I believe older compiler releases did this purely based on `@license`. Issue #2638 Change-Id: I7f0e918caad10c9af689c9d07672b7fe9be7b2f3
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.provide('shaka.routing.Payload');
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* mediaElement: HTMLMediaElement,
|
|
* mimeType: ?string,
|
|
* startTime: ?number,
|
|
* startTimeOfLoad: number,
|
|
* uri: ?string
|
|
* }}
|
|
*
|
|
* @description
|
|
* The payload is the information to "deliver" to our destination. When
|
|
* moving from node-to-node, the payload may be modified.
|
|
*
|
|
* @property {HTMLMediaElement} mediaElement
|
|
* The media element that we are or will be using.
|
|
*
|
|
* @property {?string} mimeType
|
|
* The mime type of the content that we will parse. This will be used when
|
|
* picking which parser to use.
|
|
*
|
|
* @property {?number} startTime
|
|
* The time (in seconds) where playback should start. When |null| we will
|
|
* use the content's default start time (0 for VOD and live edge for LIVE).
|
|
*
|
|
* @property {number} startTimeOfLoad
|
|
* The time (in seconds) of when a load request is created. This is used to
|
|
* track the latency between when the call to |Player.load| and the start
|
|
* of playback. When the payload is not for a load request, this should be
|
|
* NaN.
|
|
*
|
|
* @property {?string} uri
|
|
* The address of the content that will be loaded.
|
|
*/
|
|
shaka.routing.Payload;
|