@theoplayer/theoads 7.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,278 @@
1
+ /**
2
+ * THEOplayer
3
+ * https://www.theoplayer.com
4
+ *
5
+ * Version: 7.10.0
6
+ */
7
+ import { ChromelessPlayer, UIPlayerConfiguration, videojs, PresentationMode, UIRelatedContent } from './THEOplayer.common';
8
+ export { ABRConfiguration, ABRMetadata, ABRStrategy, ABRStrategyConfiguration, ABRStrategyType, AES128KeySystemConfiguration, AccessibilityRole, Ad, AdBreak, AdBreakEvent, AdBreakInit, AdBufferingEvent, AdDescription, AdEvent, AdInit, AdIntegrationKind, AdMetadataEvent, AdPreloadType, AdReadyState, AdSkipEvent, AdSource, AdSourceType, AdType, AddCachingTaskEvent, AddTrackEvent, AddViewEvent, Ads, AdsConfiguration, AdsEventMap, AgamaAnalyticsIntegrationID, AgamaConfiguration, AgamaLogLevelType, AgamaPlayerConfiguration, AgamaServiceName, AgamaSourceConfiguration, AgamaStreamType, AirPlay, Analytics, AnalyticsDescription, AnalyticsIntegrationID, AudioQuality, AxinomDRMConfiguration, AxinomIntegrationID, AzureDRMConfiguration, AzureIntegrationID, Base64Util, BaseSource, Boundary, BoundaryC3, BoundaryC7, BoundaryHalftime, BoundaryInfo, BufferSource, BufferedSegments, Cache, CacheEventMap, CacheStatus, CacheTaskStatus, CachingTask, CachingTaskEventMap, CachingTaskLicense, CachingTaskList, CachingTaskListEventMap, CachingTaskParameters, CanPlayEvent, CanPlayThroughEvent, Canvas, Cast, CastConfiguration, CastEventMap, CastState, CastStateChangeEvent, CertificateRequest, CertificateResponse, Chromecast, ChromecastConfiguration, ChromecastConnectionCallback, ChromecastError, ChromecastErrorCode, ChromecastErrorEvent, ChromecastEventMap, ChromecastMetadataDescription, ChromecastMetadataImage, ChromecastMetadataType, ClearkeyDecryptionKey, ClearkeyKeySystemConfiguration, Clip, ClipEventMap, ComcastDRMConfiguration, ComcastIntegrationID, CommonUtils, CompanionAd, ConaxDRMConfiguration, ConaxIntegrationID, ContentProtectionError, ContentProtectionErrorCode, ContentProtectionErrorEvent, ContentProtectionIntegration, ContentProtectionIntegrationFactory, ContentProtectionRequest, ContentProtectionRequestSubType, ContentProtectionResponse, Conviva, ConvivaAnalyticsIntegrationID, ConvivaConfiguration, ConvivaContentMetadata, CrossOriginSetting, CsaiAdDescription, CurrentSourceChangeEvent, CustomAdIntegrationKind, DAIAvailabilityType, DRMConfiguration, DRMTodayDRMConfiguration, DRMTodayIntegrationID, DashPlaybackConfiguration, DateRangeCue, DeliveryType, DeviceBasedTitaniumDRMConfiguration, DimensionChangeEvent, DirectionChangeEvent, DurationChangeEvent, EdgeStyle, EmptiedEvent, EmsgCue, EncryptedEvent, EndedEvent, EnterBadNetworkModeEvent, ErrorCategory, ErrorCode, ErrorEvent, Event, EventDispatcher, EventListener, EventMap, EventStreamCue, EventedList, ExitBadNetworkModeEvent, ExpressPlayDRMConfiguration, ExpressPlayIntegrationID, EzdrmDRMConfiguration, EzdrmIntegrationID, FairPlayKeySystemConfiguration, FreeWheelAdDescription, FreeWheelAdUnitType, FreeWheelCue, FullscreenOptions, Geo, GlobalCast, GlobalChromecast, GoogleDAI, GoogleDAIConfiguration, GoogleDAILiveConfiguration, GoogleDAISSAIIntegrationID, GoogleDAITypedSource, GoogleDAIVodConfiguration, GoogleImaAd, GoogleImaConfiguration, HTTPHeaders, HespApi, HespApiEventMap, HespLatencyConfiguration, HespMediaType, HespSourceConfiguration, HespTypedSource, HlsDiscontinuityAlignment, HlsPlaybackConfiguration, ID3AttachedPicture, ID3BaseFrame, ID3Comments, ID3CommercialFrame, ID3Cue, ID3Frame, ID3GenericEncapsulatedObject, ID3InvolvedPeopleList, ID3PositionSynchronisationFrame, ID3PrivateFrame, ID3SynchronizedLyricsText, ID3TermsOfUse, ID3Text, ID3UniqueFileIdentifier, ID3Unknown, ID3UnsynchronisedLyricsTextTranscription, ID3UrlLink, ID3UserDefinedText, ID3UserDefinedUrlLink, ID3Yospace, IMAAdDescription, Imagine, ImagineEventMap, ImagineSSAIIntegrationID, ImagineServerSideAdInsertionConfiguration, ImagineTrackingEvent, ImagineTypedSource, IntentToFallbackEvent, InterceptableRequest, InterceptableResponse, IrdetoDRMConfiguration, IrdetoIntegrationID, JoinStrategy, KeyOSDRMConfiguration, KeyOSFairplayKeySystemConfiguration, KeyOSIntegrationID, KeyOSKeySystemConfiguration, KeySystemConfiguration, KeySystemId, Latencies, LatencyConfiguration, LatencyManager, LayoutChangeEvent, LicenseRequest, LicenseResponse, LicenseType, LinearAd, List, LoadedDataEvent, LoadedMetadataEvent, MaybeAsync, MeasurableNetworkEstimator, MediaError, MediaErrorCode, MediaFile, MediaMelonConfiguration, MediaTailorSource, MediaTrack, MediaTrackEventMap, MediaTrackList, MediaType, MetadataDescription, Metrics, MoatAnalyticsIntegrationID, MoatConfiguration, MultiViewPlayer, MultiViewPlayerEventMap, MultiViewPlayerLayout, MutedAutoplayConfiguration, Network, NetworkEstimator, NetworkEstimatorController, NetworkEventMap, NetworkInterceptorController, NodeStyleVoidCallback, NonLinearAd, PauseEvent, PiPConfiguration, PiPPosition, PlayEvent, PlayReadyKeySystemConfiguration, PlayerConfiguration, PlayerEventMap, PlayerList, PlayingEvent, PreloadType, Presentation, PresentationEventMap, PresentationModeChangeEvent, ProgressEvent, PublicationLoadStartEvent, PublicationLoadedEvent, PublicationOfflineEvent, Quality, QualityEvent, QualityEventMap, QualityList, RateChangeEvent, ReadyStateChangeEvent, RelatedChangeEvent, RelatedContent, RelatedContentEventMap, RelatedContentSource, RelatedHideEvent, RelatedShowEvent, RemoveCachingTaskEvent, RemoveTrackEvent, RemoveViewEvent, Representation, RepresentationChangeEvent, Request, RequestBody, RequestInit, RequestInterceptor, RequestLike, RequestMeasurer, RequestMethod, RequestSubType, RequestType, ResponseBody, ResponseInit, ResponseInterceptor, ResponseLike, ResponseType, RetryConfiguration, SSAIIntegrationId, SeamlessPeriodSwitchStrategy, SeamlessSwitchStrategy, SeekedEvent, SeekingEvent, ServerSideAdInsertionConfiguration, ServerSideAdIntegrationController, ServerSideAdIntegrationFactory, ServerSideAdIntegrationHandler, SkippedAdStrategy, SmartSightConfiguration, SmartSightIntegrationID, Source, SourceAbrConfiguration, SourceChangeEvent, SourceConfiguration, SourceDescription, SourceIntegrationId, SourceLatencyConfiguration, Sources, SpotXAdDescription, SpotxData, SpotxQueryParameter, StateChangeEvent, StereoChangeEvent, StreamOneAnalyticsIntegrationID, StreamOneConfiguration, StreamType, StringKeyOf, StylePropertyRecord, THEOplayerAdDescription, THEOplayerError, TTMLCue, TargetQualityChangedEvent, TextTrack, TextTrackAddCueEvent, TextTrackCue, TextTrackCueChangeEvent, TextTrackCueEnterEvent, TextTrackCueEventMap, TextTrackCueExitEvent, TextTrackCueList, TextTrackCueUpdateEvent, TextTrackDescription, TextTrackEnterCueEvent, TextTrackError, TextTrackErrorCode, TextTrackErrorEvent, TextTrackEventMap, TextTrackExitCueEvent, TextTrackReadyState, TextTrackReadyStateChangeEvent, TextTrackRemoveCueEvent, TextTrackStyle, TextTrackStyleEventMap, TextTrackType, TextTrackTypeChangeEvent, TextTrackUpdateCueEvent, TextTracksList, TheoAdDescription, TheoAdsLayoutOverride, TheoLiveApi, TheoLiveApiEventMap, TheoLiveConfiguration, TheoLivePublication, TheoLiveSource, ThumbnailResolution, TimeRanges, TimeUpdateEvent, TitaniumDRMConfiguration, TitaniumIntegrationID, TokenBasedTitaniumDRMConfiguration, Track, TrackChangeEvent, TrackEventMap, TrackList, TrackListEventMap, TrackUpdateEvent, TypedSource, UIConfiguration, UILanguage, UIRelatedContentEventMap, UniversalAdId, UpdateQualityEvent, UplynkDRMConfiguration, UplynkIntegrationID, UserActions, VPAIDMode, VR, VRConfiguration, VRDirection, VREventMap, VRPanoramaMode, VRPlayerConfiguration, VRState, VRStereoMode, VTTAlignSetting, VTTDirectionSetting, VTTLine, VTTLineAlignSetting, VTTPosition, VTTPositionAlignSetting, VTTScrollSetting, VendorCast, VendorCastEventMap, VerimatrixDRMConfiguration, VerimatrixIntegrationID, VerizonMedia, VerizonMediaAd, VerizonMediaAdBeginEvent, VerizonMediaAdBreak, VerizonMediaAdBreakBeginEvent, VerizonMediaAdBreakEndEvent, VerizonMediaAdBreakEventMap, VerizonMediaAdBreakList, VerizonMediaAdBreakListEventMap, VerizonMediaAdBreakSkipEvent, VerizonMediaAdCompleteEvent, VerizonMediaAdEndEvent, VerizonMediaAdEventMap, VerizonMediaAdFirstQuartileEvent, VerizonMediaAdList, VerizonMediaAdListEventMap, VerizonMediaAdMidpointEvent, VerizonMediaAdThirdQuartileEvent, VerizonMediaAddAdBreakEvent, VerizonMediaAddAssetEvent, VerizonMediaAds, VerizonMediaAsset, VerizonMediaAssetEventMap, VerizonMediaAssetId, VerizonMediaAssetInfoResponse, VerizonMediaAssetInfoResponseEvent, VerizonMediaAssetList, VerizonMediaAssetMovieRating, VerizonMediaAssetTvRating, VerizonMediaAssetType, VerizonMediaConfiguration, VerizonMediaEventMap, VerizonMediaExternalId, VerizonMediaPingConfiguration, VerizonMediaPingErrorEvent, VerizonMediaPingResponse, VerizonMediaPingResponseEvent, VerizonMediaPreplayBaseResponse, VerizonMediaPreplayLiveResponse, VerizonMediaPreplayResponse, VerizonMediaPreplayResponseEvent, VerizonMediaPreplayResponseType, VerizonMediaPreplayVodResponse, VerizonMediaRemoveAdBreakEvent, VerizonMediaRemoveAdEvent, VerizonMediaRemoveAssetEvent, VerizonMediaResponseDrm, VerizonMediaResponseLiveAd, VerizonMediaResponseLiveAdBreak, VerizonMediaResponseLiveAds, VerizonMediaResponseVodAd, VerizonMediaResponseVodAdBreak, VerizonMediaResponseVodAdBreakOffset, VerizonMediaResponseVodAdPlaceholder, VerizonMediaResponseVodAds, VerizonMediaSource, VerizonMediaUiConfiguration, VerizonMediaUpdateAdBreakEvent, VideoFrameCallbackMetadata, VideoFrameRequestCallback, VideoQuality, View, ViewChangeEvent, ViewPositionChangeEvent, VimondDRMConfiguration, VimondIntegrationID, Visibility, VisibilityObserver, VisibilityObserverCallback, VoidPromiseCallback, VolumeChangeEvent, VudrmDRMConfiguration, VudrmIntegrationID, WaitUntilCallback, WaitingEvent, WebAudio, WebVTTCue, WebVTTRegion, WidevineKeySystemConfiguration, XstreamDRMConfiguration, XstreamIntegrationID, Yospace, YospaceCallbackObject, YospaceEventMap, YospaceId, YospaceSSAIIntegrationID, YospaceServerSideAdInsertionConfiguration, YospaceStreamType, YospaceTypedSource, YouboraAnalyticsIntegrationID, YouboraOptions, cache, cast, features, playerSuiteVersion, players, registerContentProtectionIntegration, utils, version } from './THEOplayer.common';
9
+
10
+ /**
11
+ * The social sharing API which can supplement the UI with a social sharing panel.
12
+ *
13
+ * @remarks
14
+ * <br/> - Available since v2.14.5.
15
+ *
16
+ * @category UI
17
+ * @public
18
+ */
19
+ interface SocialSharing {
20
+ /**
21
+ * Whether the social sharing panel is showing.
22
+ */
23
+ showing: boolean;
24
+ /**
25
+ * List of social sharing items which can be shown.
26
+ */
27
+ items: SocialSharingItem[];
28
+ /**
29
+ * The URL that will be shared.
30
+ */
31
+ url: string;
32
+ /**
33
+ * Show the social sharing panel.
34
+ */
35
+ show(): void;
36
+ /**
37
+ * Hide the social sharing panel.
38
+ */
39
+ hide(): void;
40
+ }
41
+ /**
42
+ * Represents a social media to which the player can share content.
43
+ *
44
+ * @remarks
45
+ * <br/> - Available since v2.14.5.
46
+ *
47
+ * @category UI
48
+ * @public
49
+ */
50
+ interface SocialSharingItem {
51
+ /**
52
+ * The icon which is displayed as a clickable sharing option.
53
+ *
54
+ * @remarks
55
+ * <br/> - It cannot be combined with {@link SocialSharingItem.text}.
56
+ */
57
+ icon?: string;
58
+ /**
59
+ * The label of the clickable sharing option.
60
+ *
61
+ * @remarks
62
+ * <br/> - For example, to add the title.
63
+ */
64
+ label?: string;
65
+ /**
66
+ * The URL that will be shared.
67
+ *
68
+ * @remarks
69
+ * <br/> - Overrides {@link SocialSharing.url}.
70
+ * <br/> - This can also be a string with the `<URL>` token. The token will be replaced by {@link SocialSharing.url}.
71
+ * <br/> - It can not be combined with {@link SocialSharingItem.text}.
72
+ *
73
+ * @defaultValue {@link SocialSharing.url} if present, else `location.href`.
74
+ */
75
+ src: string;
76
+ /**
77
+ * The text which is displayed as a clickable sharing option.
78
+ *
79
+ * @remarks
80
+ * <br/> - For example, to add embed codes.
81
+ * <br/> - It cannot be combined with {@link SocialSharingItem.icon} or {@link SocialSharingItem.src}.
82
+ */
83
+ text?: string;
84
+ }
85
+
86
+ /**
87
+ * The up next API.
88
+ *
89
+ * @remarks
90
+ * <br/> - Available since v2.15.0.
91
+ *
92
+ * @category UI
93
+ * @public
94
+ */
95
+ interface UpNextManager {
96
+ /**
97
+ * The up next source.
98
+ */
99
+ source: UpNextSource | undefined;
100
+ /**
101
+ * The up next bar UI component.
102
+ * The bar property can be used to get or set an UpNextBar that contains information on the up next bar that
103
+ * will be shown, such as the offset from which the up next bar will be displayed.
104
+ */
105
+ bar: UpNextBar;
106
+ /**
107
+ * The up next panel UI component.
108
+ *
109
+ * The panel property can be used to get or set an UpNextPanel that contains information on the up next panel that
110
+ * will be shown at the end of the video, such as the duration of the countdown.
111
+ */
112
+ panel: UpNextPanel;
113
+ /**
114
+ * Transition to the page of the {@link UpNextManager.source}.
115
+ */
116
+ next(): void;
117
+ }
118
+ /**
119
+ * Describes an up next source.
120
+ *
121
+ * @remarks
122
+ * <br/> - Available since v2.15.
123
+ *
124
+ * @category UI
125
+ * @public
126
+ */
127
+ interface UpNextSource {
128
+ /**
129
+ * The URL to the thumbnail of the source.
130
+ */
131
+ image: string;
132
+ /**
133
+ * The title of the source.
134
+ */
135
+ title?: string;
136
+ /**
137
+ * The URL of the source.
138
+ */
139
+ link: string;
140
+ /**
141
+ * The duration of the source.
142
+ */
143
+ duration?: string;
144
+ }
145
+ /**
146
+ * A bar which displays the up next source.
147
+ *
148
+ * @remarks
149
+ * <br/> - The bar should be shown briefly before the current content ends.
150
+ * <br/> - The bar covers a small part of the player.
151
+ * <br/> - Available since v2.15.
152
+ *
153
+ * @category UI
154
+ * @public
155
+ */
156
+ interface UpNextBar {
157
+ /**
158
+ * Whether the bar is showing.
159
+ */
160
+ showing: boolean;
161
+ /**
162
+ * The offset, from the end of the video, after which the bar is shown.
163
+ *
164
+ * @remarks
165
+ * Possible formats:
166
+ * <br/> - A number or "number" for the offset in seconds.
167
+ * <br/> - Percentage string (XX%) for a proportion of the duration.
168
+ *
169
+ * @defaultValue `10`
170
+ */
171
+ offset?: string | number;
172
+ /**
173
+ * Show the bar.
174
+ */
175
+ show(): void;
176
+ /**
177
+ * Hide the bar.
178
+ */
179
+ hide(): void;
180
+ }
181
+ /**
182
+ * A panel which displays the up next source.
183
+ *
184
+ * @remarks
185
+ * <br/> - The panel should be shown after the current source has ended.
186
+ * <br/> - The panel covers the entire player.
187
+ * <br/> - Available since v2.15.
188
+ *
189
+ * @category UI
190
+ * @public
191
+ */
192
+ interface UpNextPanel {
193
+ /**
194
+ * Whether the panel is showing.
195
+ */
196
+ showing: boolean;
197
+ /**
198
+ * The countdown after which the up next source is started.
199
+ *
200
+ * @remarks
201
+ * <br/> - Countdown starts from the moment the panel is shown.
202
+ *
203
+ * Possible formats:
204
+ * <br/> - number or "number": the countdown will be number seconds.
205
+ * <br/> - Infinity: no countdown will happen, only the play button will appear to go to the video that is up next.
206
+ *
207
+ * @defaultValue `10`
208
+ */
209
+ countdownDuration?: string | number;
210
+ /**
211
+ * Whether the panel should be shown after the current source has ended.
212
+ *
213
+ * @defaultValue `true`
214
+ */
215
+ showUpNextPanel?: boolean;
216
+ /**
217
+ * Show the panel.
218
+ */
219
+ show(): void;
220
+ /**
221
+ * Hide the panel.
222
+ */
223
+ hide(): void;
224
+ }
225
+
226
+ /**
227
+ * The player API extended with UI functionality.
228
+ *
229
+ * @remarks
230
+ * <br/> - Only available with the feature `'ui'`.
231
+ *
232
+ * @category API
233
+ * @category Player
234
+ * @public
235
+ */
236
+ declare class Player extends ChromelessPlayer {
237
+ constructor(element: HTMLElement, configuration?: UIPlayerConfiguration);
238
+ /**
239
+ * Whether the player controls are visible.
240
+ */
241
+ controls: boolean;
242
+ /**
243
+ * The Video.js player on which the UI is built.
244
+ */
245
+ readonly ui: videojs.Player;
246
+ /**
247
+ * The presentation mode of the player.
248
+ *
249
+ * @deprecated Superseded by {@link Presentation.currentMode} and {@link Presentation.requestMode}.
250
+ *
251
+ * @defaultValue `'inline'`
252
+ */
253
+ presentationMode?: PresentationMode;
254
+ /**
255
+ * The related content UI API.
256
+ *
257
+ * @remarks
258
+ * <br/> - Only available with the feature `'relatedcontent'`.
259
+ */
260
+ readonly related?: UIRelatedContent;
261
+ /**
262
+ * The social sharing UI API.
263
+ *
264
+ * @remarks
265
+ * <br/> - Only available with the feature `'social'`.
266
+ */
267
+ readonly social?: SocialSharing;
268
+ /**
269
+ * The up next UI API.
270
+ *
271
+ * @remarks
272
+ * <br/> - Only available with the feature `'upnext'`.
273
+ */
274
+ readonly upnext?: UpNextManager;
275
+ }
276
+
277
+ export { ChromelessPlayer, Player, PresentationMode, SocialSharing, SocialSharingItem, UIPlayerConfiguration, UIRelatedContent, UpNextBar, UpNextManager, UpNextPanel, UpNextSource, videojs };
278
+ export as namespace THEOplayer;