mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-13 15:46:46 +03:00
ec4bc1ddeb
These changes are necessary for compatibility with Chromecast WebDriver Server v2. - Fix a bug in Karma's flat environment support (joeyparrish/karma@9875e98) - Add a test boot file to load CAF on Chromecast devices; required by Chromecast WebDriver Server v2's redirect mode (flat environment at that level) - Also load this cast-boot file in support.html - Rename/reorganize Cast-related externs, which were messy even before the addition of CAF - Remove proxy-cast-platform.js; no longer needed as we move to flatten the test environment - Ignore error events with "null" error; these appear on Linux Chromecasts, only since including CAF - Ignore error events that are actually strings; these appear on Linux Chromecasts, only since including CAF - Disable Fuchsia in the lab until autoplay issues can be resolved
194 lines
3.8 KiB
JavaScript
194 lines
3.8 KiB
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Externs for Media Tailor.
|
|
* @externs
|
|
*/
|
|
|
|
|
|
/** @const */
|
|
var mediaTailor = {};
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* manifestUrl: ?string,
|
|
* trackingUrl: ?string
|
|
* }}
|
|
*
|
|
* @property {?string} manifestUrl
|
|
* @property {?string} trackingUrl
|
|
* @exportDoc
|
|
*/
|
|
mediaTailor.SessionResponse;
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* avails: !Array.<mediaTailor.AdBreak>
|
|
* }}
|
|
*
|
|
* @property {!Array.<mediaTailor.AdBreak>} avails
|
|
* @exportDoc
|
|
*/
|
|
mediaTailor.TrackingResponse;
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* adBreakTrackingEvents: !Array.<mediaTailor.TrackingEvent>,
|
|
* ads: !Array.<mediaTailor.Ad>,
|
|
* durationInSeconds: number,
|
|
* nonLinearAdsList: !Array.<mediaTailor.Ad>,
|
|
* startTimeInSeconds: number
|
|
* }}
|
|
*
|
|
* @property {!Array.<mediaTailor.TrackingEvent>} adBreakTrackingEvents
|
|
* @property {!Array.<mediaTailor.Ad>} ads
|
|
* @property {number} durationInSeconds
|
|
* @property {!Array.<mediaTailor.Ad>} nonLinearAdsList
|
|
* @property {number} startTimeInSeconds
|
|
* @exportDoc
|
|
*/
|
|
mediaTailor.AdBreak;
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* adId: string,
|
|
* adParameters: string,
|
|
* adSystem: string,
|
|
* adTitle: string,
|
|
* creativeId: string,
|
|
* creativeSequence: string,
|
|
* durationInSeconds: number,
|
|
* skipOffset: ?number,
|
|
* startTimeInSeconds: number,
|
|
* nonLinearAdList: !Array.<mediaTailor.NonLinearAd>,
|
|
* trackingEvents: !Array.<mediaTailor.TrackingEvent>
|
|
* }}
|
|
*
|
|
* @property {string} adId
|
|
* @property {string} adParameters
|
|
* @property {string} adSystem
|
|
* @property {string} adTitle
|
|
* @property {string} creativeId
|
|
* @property {string} creativeSequence
|
|
* @property {number} durationInSeconds
|
|
* @property {?number} skipOffset
|
|
* @property {number} startTimeInSeconds
|
|
* @property {!Array.<mediaTailor.NonLinearAd>} nonLinearAdList
|
|
* @property {!Array.<mediaTailor.TrackingEvent>} trackingEvents
|
|
* @exportDoc
|
|
*/
|
|
mediaTailor.Ad;
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* adId: string,
|
|
* adParameters: string,
|
|
* adSystem: string,
|
|
* adTitle: string,
|
|
* creativeAdId: string,
|
|
* creativeId: string,
|
|
* creativeSequence: string,
|
|
* height: ?number,
|
|
* width: ?number,
|
|
* staticResource: string
|
|
* }}
|
|
*
|
|
* @property {string} adId
|
|
* @property {string} adParameters
|
|
* @property {string} adSystem
|
|
* @property {string} adTitle
|
|
* @property {string} creativeAdId
|
|
* @property {string} creativeId
|
|
* @property {string} creativeSequence
|
|
* @property {?number} height
|
|
* @property {?number} width
|
|
* @property {string} staticResource
|
|
* @exportDoc
|
|
*/
|
|
mediaTailor.NonLinearAd;
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* beaconUrls: !Array.<string>,
|
|
* eventType: string
|
|
* }}
|
|
*
|
|
* @property {!Array.<string>} beaconUrls
|
|
* @property {string} eventType
|
|
* @exportDoc
|
|
*/
|
|
mediaTailor.TrackingEvent;
|
|
|
|
|
|
/** @const */
|
|
var mediaTailorExternalResource = {};
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* apps: !Array.<mediaTailorExternalResource.App>
|
|
* }}
|
|
*
|
|
* @property {!Array.<mediaTailorExternalResource.App>} apps
|
|
* @exportDoc
|
|
*/
|
|
mediaTailorExternalResource.Response;
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* placeholder: mediaTailorExternalResource.AppPlaceholder,
|
|
* data: mediaTailorExternalResource.AppData
|
|
* }}
|
|
*
|
|
* @property {mediaTailorExternalResource.AppPlaceholder} placeholder
|
|
* @property {mediaTailorExternalResource.AppData} data
|
|
* @exportDoc
|
|
*/
|
|
mediaTailorExternalResource.App;
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* left: number,
|
|
* top: number
|
|
* }}
|
|
*
|
|
* @property {number} left
|
|
* @property {number} top
|
|
* @exportDoc
|
|
*/
|
|
mediaTailorExternalResource.AppPlaceholder;
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* source: !Array.<mediaTailorExternalResource.AppDataSource>
|
|
* }}
|
|
*
|
|
* @property {!Array.<mediaTailorExternalResource.AppDataSource>} source
|
|
* @exportDoc
|
|
*/
|
|
mediaTailorExternalResource.AppData;
|
|
|
|
|
|
/**
|
|
* @typedef {{
|
|
* url: string
|
|
* }}
|
|
*
|
|
* @property {string} url
|
|
* @exportDoc
|
|
*/
|
|
mediaTailorExternalResource.AppDataSource;
|