mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-19 16:47:01 +03:00
bc45564721
Player.load and Storage.store used to accept the manifest parser factory directly. But now they should only accept the MIME type string. This removes the deprecated functionality in preparation for v2.6. Change-Id: I1b4c5a4a9f0b6edbea909d18111ddc87a39da331
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
/** @license
|
|
* 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
|
|
* |null|.
|
|
*
|
|
* @property {?string} uri
|
|
* The address of the content that will be loaded.
|
|
*/
|
|
shaka.routing.Payload;
|