@glomex/integration-web-component 1.1523.0 → 1.1524.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.
- package/dist/index.d.ts +206 -138
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -200,18 +200,6 @@ export declare interface Consent {
|
|
|
200
200
|
addtlConsent?: string;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
/**
|
|
204
|
-
* Selected source of the given content.
|
|
205
|
-
*/
|
|
206
|
-
export declare interface ContentSource {
|
|
207
|
-
id?: string;
|
|
208
|
-
mimetype: Mimetype;
|
|
209
|
-
src: string;
|
|
210
|
-
playbackMode: PlaybackMode;
|
|
211
|
-
entitlementToken?: string;
|
|
212
|
-
drm: boolean;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
203
|
export declare enum ContentStopReason {
|
|
216
204
|
CLEAR_PLAYLIST = "clearPlaylist",
|
|
217
205
|
SELECT_PLAYLIST_ITEM = "selectPlaylistItem",
|
|
@@ -265,6 +253,19 @@ export declare enum DeviceIdName {
|
|
|
265
253
|
WAID = "waid"
|
|
266
254
|
}
|
|
267
255
|
|
|
256
|
+
/**
|
|
257
|
+
* Standard EME key system identifiers for the DRM systems supported by the player.
|
|
258
|
+
*
|
|
259
|
+
* Set by the content service after DRM-support detection and source
|
|
260
|
+
* selection so that the video element only needs to know *which* DRM
|
|
261
|
+
* system is in use — without license URIs, tokens or certificates.
|
|
262
|
+
*/
|
|
263
|
+
export declare enum DrmSystem {
|
|
264
|
+
FAIRPLAY = "com.apple.fps",
|
|
265
|
+
WIDEVINE = "com.widevine.alpha",
|
|
266
|
+
PLAYREADY = "com.microsoft.playready"
|
|
267
|
+
}
|
|
268
|
+
|
|
268
269
|
declare interface Experiment {
|
|
269
270
|
name: string;
|
|
270
271
|
enabled: boolean;
|
|
@@ -647,8 +648,7 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
647
648
|
/**
|
|
648
649
|
* Seeks the media to the specified time, updating the current playback time.
|
|
649
650
|
*
|
|
650
|
-
*
|
|
651
|
-
* Alternatively, set {@link MediaItem.resumePosition} on the media item to have it applied automatically on load.
|
|
651
|
+
* To set an initial start time, use {@link MediaItem.resumePosition} on the media item.
|
|
652
652
|
*
|
|
653
653
|
* @param time - The time (in seconds) to seek to.
|
|
654
654
|
*/
|
|
@@ -739,7 +739,7 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
739
739
|
/**
|
|
740
740
|
* Retrieves the currently selected source.
|
|
741
741
|
*/
|
|
742
|
-
get source():
|
|
742
|
+
get source(): SourceSelected | undefined;
|
|
743
743
|
/**
|
|
744
744
|
* Retrieves the current playlist.
|
|
745
745
|
*/
|
|
@@ -909,13 +909,14 @@ export declare interface IntegrationElementEventMap {
|
|
|
909
909
|
*/
|
|
910
910
|
[IntegrationEvent.CONTENT_SELECT]: CustomEvent<{
|
|
911
911
|
sessionId: string;
|
|
912
|
-
source:
|
|
912
|
+
source: SourceSelected & {
|
|
913
|
+
/**
|
|
914
|
+
* Entitlement token for the source, if any.
|
|
915
|
+
* @deprecated For Joyn sources, read from `source.metadata.entitlementToken` instead.
|
|
916
|
+
*/
|
|
917
|
+
entitlementToken?: string;
|
|
918
|
+
};
|
|
913
919
|
}>;
|
|
914
|
-
/**
|
|
915
|
-
* @inheritdoc IntegrationEvent.CONTENT_LOADSTART
|
|
916
|
-
* @eventProperty
|
|
917
|
-
*/
|
|
918
|
-
[IntegrationEvent.CONTENT_LOADSTART]: CustomEvent<void>;
|
|
919
920
|
/**
|
|
920
921
|
* @inheritdoc IntegrationEvent.CONTENT_START
|
|
921
922
|
* @eventProperty
|
|
@@ -1146,13 +1147,6 @@ export declare enum IntegrationEvent {
|
|
|
1146
1147
|
* @eventProperty
|
|
1147
1148
|
*/
|
|
1148
1149
|
CONTENT_SELECT = "contentselect",
|
|
1149
|
-
/**
|
|
1150
|
-
* When the content source has started loading.
|
|
1151
|
-
* Fired before {@link IntegrationEvent.CONTENT_SELECT} once the media element's `loadstart` event occurs.
|
|
1152
|
-
* An initial {@link IntegrationElement#currentTime} can be assigned after this event.
|
|
1153
|
-
* @eventProperty
|
|
1154
|
-
*/
|
|
1155
|
-
CONTENT_LOADSTART = "loadstart",
|
|
1156
1150
|
/**
|
|
1157
1151
|
* When content started initially (e.g. before ad break).
|
|
1158
1152
|
* @eventProperty
|
|
@@ -1430,6 +1424,26 @@ export declare interface IntegrationProperties {
|
|
|
1430
1424
|
export declare class JoynMediaItemElement extends MediaItemElement {
|
|
1431
1425
|
}
|
|
1432
1426
|
|
|
1427
|
+
/** Source metadata produced by the Joyn media provider. */
|
|
1428
|
+
export declare interface JoynSourceMetadata extends SourceMetadataBase {
|
|
1429
|
+
/** Identifies this metadata as produced by the Joyn provider. */
|
|
1430
|
+
provider: 'joyn';
|
|
1431
|
+
/** Distribution tenant name (e.g. `"JOYN"`, `"JOYN_AT"`, `"JOYN_CH"`). May be absent when the entitlement token cannot be decoded. */
|
|
1432
|
+
distributionTenant?: string;
|
|
1433
|
+
/** Anonymous user identifier. May be absent when the entitlement token cannot be decoded. */
|
|
1434
|
+
anonymousId?: string;
|
|
1435
|
+
/** Authenticated user identifier. May be absent when the entitlement token cannot be decoded. */
|
|
1436
|
+
userId?: string;
|
|
1437
|
+
/** CDN delivery network identifier returned by the playlist service (e.g. `"akamai"`, `"amazon"`, `"fastly"`). */
|
|
1438
|
+
deliveryNetwork: string;
|
|
1439
|
+
/** DRM protection system used for the source (e.g. `"fairplay"`, `"widevine"`, `"playready"`). */
|
|
1440
|
+
protectionSystem: string;
|
|
1441
|
+
/** DRM encryption scheme used for the source (`"cenc"` or `"cbcs"`). */
|
|
1442
|
+
encryptionScheme: string;
|
|
1443
|
+
/** Entitlement token received from the Joyn entitlement service. */
|
|
1444
|
+
entitlementToken: string;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1433
1447
|
export declare enum KnownMarkerName {
|
|
1434
1448
|
PREROLL = "preroll",
|
|
1435
1449
|
MIDROLL = "midroll",
|
|
@@ -1533,7 +1547,7 @@ export declare interface MediaItem {
|
|
|
1533
1547
|
/**
|
|
1534
1548
|
* Sources of the media item.
|
|
1535
1549
|
*/
|
|
1536
|
-
sources?:
|
|
1550
|
+
sources?: Partial<SourceMediaItem>[];
|
|
1537
1551
|
/**
|
|
1538
1552
|
* Array of text tracks for subtitles, captions, etc.
|
|
1539
1553
|
* These tracks apply to the whole media item, not to individual sources.
|
|
@@ -1952,6 +1966,8 @@ export declare interface MediaItemReference {
|
|
|
1952
1966
|
* source to fetch the media item from.
|
|
1953
1967
|
*/
|
|
1954
1968
|
item?: MediaItem;
|
|
1969
|
+
/** Whether to observe stream termination independent of business model. */
|
|
1970
|
+
forceObserveTermination?: boolean;
|
|
1955
1971
|
}
|
|
1956
1972
|
|
|
1957
1973
|
/**
|
|
@@ -1967,7 +1983,10 @@ export declare interface MediaItemReference {
|
|
|
1967
1983
|
*/
|
|
1968
1984
|
export declare interface MediaItemResolved extends Omit<MediaItem, 'id' | 'sources' | 'title' | 'regionsAllowed' | 'aspectRatio' | 'minimumAge' | 'iabCategoryTaxonomy' | 'language'> {
|
|
1969
1985
|
id: NonNullable<MediaItem['id']>;
|
|
1970
|
-
sources:
|
|
1986
|
+
sources: (SourceMediaItem & {
|
|
1987
|
+
id: string;
|
|
1988
|
+
mimetype: Mimetype;
|
|
1989
|
+
})[];
|
|
1971
1990
|
title: NonNullable<MediaItem['title']>;
|
|
1972
1991
|
regionsAllowed: NonNullable<MediaItem['regionsAllowed']>;
|
|
1973
1992
|
/**
|
|
@@ -1994,14 +2013,13 @@ export declare interface MediaItemResolved extends Omit<MediaItem, 'id' | 'sourc
|
|
|
1994
2013
|
*/
|
|
1995
2014
|
provider: MediaItemProvider | `${MediaItemProvider}`;
|
|
1996
2015
|
/**
|
|
1997
|
-
* The original
|
|
1998
|
-
*
|
|
1999
|
-
*
|
|
2016
|
+
* The original {@link MediaItemReference} that produced this resolved item.
|
|
2017
|
+
* Preserved so that re-resolution (e.g. playlist-item updates) can pass it
|
|
2018
|
+
* back to the provider.
|
|
2000
2019
|
*
|
|
2001
|
-
* A temporary fix until we do the full resolving of Joyn content.
|
|
2002
2020
|
* @ignore
|
|
2003
2021
|
*/
|
|
2004
|
-
_referenceItem?:
|
|
2022
|
+
_referenceItem?: MediaItemReference;
|
|
2005
2023
|
}
|
|
2006
2024
|
|
|
2007
2025
|
/**
|
|
@@ -2080,111 +2098,12 @@ export declare enum MediaProviderErrorCode {
|
|
|
2080
2098
|
GENERIC = "Generic"
|
|
2081
2099
|
}
|
|
2082
2100
|
|
|
2083
|
-
|
|
2101
|
+
/**
|
|
2102
|
+
* @deprecated Use {@link SourceMediaItem} instead.
|
|
2103
|
+
*/
|
|
2104
|
+
declare type MediaSource_2 = SourceMediaItem;
|
|
2084
2105
|
export { MediaSource_2 as MediaSource }
|
|
2085
2106
|
|
|
2086
|
-
export declare interface MediaSourceBase {
|
|
2087
|
-
/**
|
|
2088
|
-
* Unique identifier of the media source.
|
|
2089
|
-
*
|
|
2090
|
-
* @defaultValue `V1StGXR8_Z5jdHi6B-myT` a generated identifier
|
|
2091
|
-
*/
|
|
2092
|
-
id?: string;
|
|
2093
|
-
/**
|
|
2094
|
-
* Mimetype of the media source.
|
|
2095
|
-
*
|
|
2096
|
-
* @defaultValue detected from file extension of given {@link src} or `undefined`
|
|
2097
|
-
*/
|
|
2098
|
-
mimetype?: Mimetype;
|
|
2099
|
-
/**
|
|
2100
|
-
* The source URL of this media source.
|
|
2101
|
-
*/
|
|
2102
|
-
src: string;
|
|
2103
|
-
/**
|
|
2104
|
-
* Until the media source is valid. Unix timestamp in milliseconds.
|
|
2105
|
-
*/
|
|
2106
|
-
validUntil?: number;
|
|
2107
|
-
/**
|
|
2108
|
-
* Content mode of the media source.
|
|
2109
|
-
*
|
|
2110
|
-
* @defaultValue `PlaybackMode.VOD`
|
|
2111
|
-
*/
|
|
2112
|
-
playbackMode?: PlaybackMode;
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
export declare interface MediaSourceDrm extends MediaSourceBase {
|
|
2116
|
-
/**
|
|
2117
|
-
* DRM provider header name. Only relevant in combination with tokens.
|
|
2118
|
-
*/
|
|
2119
|
-
drmProviderHeaderName?: string;
|
|
2120
|
-
/**
|
|
2121
|
-
* Fairplay license URI. Or `undefined` when {@link fairplayToken} in combination with {@link drmProviderHeaderName} is provided.
|
|
2122
|
-
*/
|
|
2123
|
-
fairplayLicenseUri?: string;
|
|
2124
|
-
/**
|
|
2125
|
-
* FairPlay certificate URI.
|
|
2126
|
-
*/
|
|
2127
|
-
fairplayCertificateUri?: string;
|
|
2128
|
-
/**
|
|
2129
|
-
* FairPlay token.
|
|
2130
|
-
*/
|
|
2131
|
-
fairplayToken?: string;
|
|
2132
|
-
/**
|
|
2133
|
-
* Widevine license URI. Or `undefined` when {@link widevineToken} in combination with {@link drmProviderHeaderName} is provided.
|
|
2134
|
-
*/
|
|
2135
|
-
widevineLicenseUri?: string;
|
|
2136
|
-
/**
|
|
2137
|
-
* Widevine token.
|
|
2138
|
-
*/
|
|
2139
|
-
widevineToken?: string;
|
|
2140
|
-
/**
|
|
2141
|
-
* PlayReady license URI. Or `undefined` when {@link playreadyToken} in combination with {@link drmProviderHeaderName} is provided.
|
|
2142
|
-
*/
|
|
2143
|
-
playreadyLicenseUri?: string;
|
|
2144
|
-
/**
|
|
2145
|
-
* PlayReady token.
|
|
2146
|
-
*/
|
|
2147
|
-
playreadyToken?: string;
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
export declare interface MediaSourceDynamicContent extends MediaSourceBase {
|
|
2151
|
-
mimetype: Mimetype.DYNAMIC_CONTENT;
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
|
-
export declare interface MediaSourceJoyn {
|
|
2155
|
-
/**
|
|
2156
|
-
* Media / asset identifier of joyn.
|
|
2157
|
-
*/
|
|
2158
|
-
id: string;
|
|
2159
|
-
mimetype: Mimetype.JOYN;
|
|
2160
|
-
/**
|
|
2161
|
-
* User token used for authentication.
|
|
2162
|
-
*/
|
|
2163
|
-
token: string;
|
|
2164
|
-
/** {@inheritDoc MediaSourceBase.playbackMode} */
|
|
2165
|
-
playbackMode?: PlaybackMode;
|
|
2166
|
-
/**
|
|
2167
|
-
* Allowing to enforce stage environment
|
|
2168
|
-
*/
|
|
2169
|
-
environment?: 'stg';
|
|
2170
|
-
/**
|
|
2171
|
-
* Distribution tenant name, could be JOYN, JOYN_AT, JOYN_CH
|
|
2172
|
-
*/
|
|
2173
|
-
distributionTenant?: string;
|
|
2174
|
-
/**
|
|
2175
|
-
* User ID
|
|
2176
|
-
*/
|
|
2177
|
-
userId?: string;
|
|
2178
|
-
/**
|
|
2179
|
-
* Shall the source be observed independent of business model?
|
|
2180
|
-
*/
|
|
2181
|
-
forceObserveTermination?: boolean;
|
|
2182
|
-
/**
|
|
2183
|
-
* @ignore
|
|
2184
|
-
*/
|
|
2185
|
-
validUntil?: number;
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
2107
|
/**
|
|
2189
2108
|
* Base interface for all media track types.
|
|
2190
2109
|
* Provides common properties shared by audio, video, and text tracks.
|
|
@@ -2494,6 +2413,155 @@ export declare interface SharedContextData {
|
|
|
2494
2413
|
};
|
|
2495
2414
|
}
|
|
2496
2415
|
|
|
2416
|
+
export declare type SourceMediaItem = SourceMediaItemBase | SourceMediaItemDrm | SourceMediaItemJoyn;
|
|
2417
|
+
|
|
2418
|
+
export declare interface SourceMediaItemBase {
|
|
2419
|
+
/**
|
|
2420
|
+
* Unique identifier of the media source.
|
|
2421
|
+
*
|
|
2422
|
+
* @defaultValue `V1StGXR8_Z5jdHi6B-myT` a generated identifier
|
|
2423
|
+
*/
|
|
2424
|
+
id?: string;
|
|
2425
|
+
/**
|
|
2426
|
+
* Mimetype of the media source.
|
|
2427
|
+
*
|
|
2428
|
+
* @defaultValue detected from file extension of given {@link src} or `undefined`
|
|
2429
|
+
*/
|
|
2430
|
+
mimetype?: Mimetype;
|
|
2431
|
+
/**
|
|
2432
|
+
* The source URL of this media source.
|
|
2433
|
+
*/
|
|
2434
|
+
src: string;
|
|
2435
|
+
/**
|
|
2436
|
+
* Until the media source is valid. Unix timestamp in milliseconds.
|
|
2437
|
+
*/
|
|
2438
|
+
validUntil?: number;
|
|
2439
|
+
/**
|
|
2440
|
+
* Content mode of the media source.
|
|
2441
|
+
*
|
|
2442
|
+
* @defaultValue `PlaybackMode.VOD`
|
|
2443
|
+
*/
|
|
2444
|
+
playbackMode?: PlaybackMode;
|
|
2445
|
+
/**
|
|
2446
|
+
* Duration in seconds. Only relevant for dynamic content.
|
|
2447
|
+
*/
|
|
2448
|
+
duration?: number;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
export declare interface SourceMediaItemDrm extends SourceMediaItemBase {
|
|
2452
|
+
/**
|
|
2453
|
+
* The DRM system this source requires.
|
|
2454
|
+
*
|
|
2455
|
+
* When set together with the generic fields (`licenseUrl`,
|
|
2456
|
+
* `certificateUrl`), identifies the single DRM system those fields
|
|
2457
|
+
* apply to. When using legacy per-system fields, can be omitted and
|
|
2458
|
+
* will be inferred during normalization.
|
|
2459
|
+
*/
|
|
2460
|
+
drmSystem?: DrmSystem;
|
|
2461
|
+
/**
|
|
2462
|
+
* DRM token to include in license requests for the selected DRM system.
|
|
2463
|
+
*/
|
|
2464
|
+
token?: string;
|
|
2465
|
+
/**
|
|
2466
|
+
* License server URL for the selected DRM system.
|
|
2467
|
+
* Preferred over the system-specific `fairplayLicenseUri` / `widevineLicenseUri` / `playreadyLicenseUri`.
|
|
2468
|
+
*/
|
|
2469
|
+
licenseUrl?: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* Certificate URL (relevant for FairPlay).
|
|
2472
|
+
* Preferred over `fairplayCertificateUri`.
|
|
2473
|
+
*/
|
|
2474
|
+
certificateUrl?: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* Fairplay license URI.
|
|
2477
|
+
* @deprecated Use {@link licenseUrl} with `drmSystem: DrmSystem.FAIRPLAY` instead.
|
|
2478
|
+
*/
|
|
2479
|
+
fairplayLicenseUri?: string;
|
|
2480
|
+
/**
|
|
2481
|
+
* FairPlay certificate URI.
|
|
2482
|
+
* @deprecated Use {@link certificateUrl} with `drmSystem: DrmSystem.FAIRPLAY` instead.
|
|
2483
|
+
*/
|
|
2484
|
+
fairplayCertificateUri?: string;
|
|
2485
|
+
/**
|
|
2486
|
+
* FairPlay token.
|
|
2487
|
+
* @deprecated Use `token` with `drmSystem: DrmSystem.FAIRPLAY` instead.
|
|
2488
|
+
*/
|
|
2489
|
+
fairplayToken?: string;
|
|
2490
|
+
/**
|
|
2491
|
+
* Widevine license URI.
|
|
2492
|
+
* @deprecated Use {@link licenseUrl} with `drmSystem: DrmSystem.WIDEVINE` instead.
|
|
2493
|
+
*/
|
|
2494
|
+
widevineLicenseUri?: string;
|
|
2495
|
+
/**
|
|
2496
|
+
* Widevine token.
|
|
2497
|
+
* @deprecated Use `token` with `drmSystem: DrmSystem.WIDEVINE` instead.
|
|
2498
|
+
*/
|
|
2499
|
+
widevineToken?: string;
|
|
2500
|
+
/**
|
|
2501
|
+
* PlayReady license URI.
|
|
2502
|
+
* @deprecated Use {@link licenseUrl} with `drmSystem: DrmSystem.PLAYREADY` instead.
|
|
2503
|
+
*/
|
|
2504
|
+
playreadyLicenseUri?: string;
|
|
2505
|
+
/**
|
|
2506
|
+
* PlayReady token.
|
|
2507
|
+
* @deprecated Use `token` with `drmSystem: DrmSystem.PLAYREADY` instead.
|
|
2508
|
+
*/
|
|
2509
|
+
playreadyToken?: string;
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
export declare interface SourceMediaItemJoyn {
|
|
2513
|
+
/**
|
|
2514
|
+
* Media / asset identifier of joyn.
|
|
2515
|
+
*/
|
|
2516
|
+
id: string;
|
|
2517
|
+
mimetype: Mimetype.JOYN;
|
|
2518
|
+
/**
|
|
2519
|
+
* User token used for authentication.
|
|
2520
|
+
*/
|
|
2521
|
+
token: string;
|
|
2522
|
+
/**
|
|
2523
|
+
* Allowing to enforce stage environment.
|
|
2524
|
+
* @deprecated Use {@link MediaItemReference.environment} instead.
|
|
2525
|
+
*/
|
|
2526
|
+
environment?: 'stg';
|
|
2527
|
+
/** {@inheritDoc SourceMediaItemBase.playbackMode} */
|
|
2528
|
+
playbackMode?: PlaybackMode;
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* Source metadata that may differ per provider.
|
|
2533
|
+
*
|
|
2534
|
+
* Available on {@link SourceSelected.metadata}. Narrow with
|
|
2535
|
+
* `metadata.provider === 'joyn'` to access {@link JoynSourceMetadata} fields.
|
|
2536
|
+
*/
|
|
2537
|
+
export declare type SourceMetadata = JoynSourceMetadata;
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* Base metadata for providers that don't have a dedicated interface.
|
|
2541
|
+
*/
|
|
2542
|
+
declare interface SourceMetadataBase {
|
|
2543
|
+
/** Identifies which provider produced this metadata. */
|
|
2544
|
+
provider: string;
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* Metadata of the source that was selected for playback.
|
|
2549
|
+
*/
|
|
2550
|
+
export declare interface SourceSelected {
|
|
2551
|
+
/** Unique identifier of the source. */
|
|
2552
|
+
id: string;
|
|
2553
|
+
/** MIME type of the media source (e.g. HLS, DASH, MP4). */
|
|
2554
|
+
mimetype: Mimetype;
|
|
2555
|
+
/** URL of the media source. */
|
|
2556
|
+
src: string;
|
|
2557
|
+
/** Playback mode indicating how the content should be played. */
|
|
2558
|
+
playbackMode?: PlaybackMode;
|
|
2559
|
+
/** DRM system used to protect the source, if any. */
|
|
2560
|
+
drmSystem?: DrmSystem;
|
|
2561
|
+
/** Provider-generated metadata for this source. */
|
|
2562
|
+
metadata?: SourceMetadata;
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2497
2565
|
export declare enum StartMethod {
|
|
2498
2566
|
/** Autoplay occured for above the fold content */
|
|
2499
2567
|
PRE_CLICK = "pre-click-to-play",
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e){
|
|
1
|
+
function e(e){return"provider"in e?e:{id:e.id||"",provider:function(e){for(let t of e??[])if(t.mimetype===Y.JOYN||(t.widevineLicenseUri||t.fairplayLicenseUri||t.playreadyLicenseUri||t.licenseUrl||"").includes("joyn.de"))return k.JOYN;for(let t of e??[])if("src"in t&&t.src?.includes("glomex"))return k.GLOMEX;return k.EXTERNAL}(e.sources),item:e}}(I=M||(M={})).DEFAULT="turbo-integration",I.SCRIPT="turbo-script",I.IFRAME="turbo-iframe",I.FULLPAGE="turbo-fullpage",I.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",I.AMP_IFRAME="turbo-amp-iframe",(T=g||(g={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",T.JOYN_MEDIA_ITEM="joyn-media-item",(d=U||(U={})).INTEGRATION_CONFIGS="application/integration-configs+json",d.INTEGRATION_CONFIGS_LEGACY="application/glomex-integration-configs+json",d.EXTERNAL_MEDIA_ITEM="application/external-media-item+json",d.EXTERNAL_MEDIA_ITEM_LEGACY="application/glomex-external-media-item+json";let t="turbo-player";(s=y||(y={})).NET_ID="netId",s.PPID="ppid",s.UTIQ_ID="utiqId",s.LIVERAMP_ID="liverampId",s.PAIR_ID="pairId",s.ATS_DIRECT="atsDirect",(N=G||(G={})).AAID="aaid",N.AFAI="afai",N.ASIA="asia",N.ASID="asid",N.TIFA="tifa",N.VAID="vaid",N.IDFA="idfa",N.IDFV="idfv",N.LGUDID="lgudid",N.MSAI="msai",N.OAID="oaid",N.PSNAI="psnai",N.RIDA="rida",N.VIDA="vida",N.WAID="waid",(_=f||(f={})).HIDDEN="hidden",_.INLINE="inline",_.DOCK="dock",_.LIGHTBOX="lightbox",_.LIGHTBOX_EXTERNAL="lightbox-external",_.FULLSCREEN="fullscreen",_.AMP_DOCK="amp-dock",(A=v||(v={})).READY="ready",A.INTEGRATION_ABORT="integrationabort",A.INTEGRATION_AD_AVAILABLE="integrationadavailable",A.INTEGRATION_PASSBACK="integrationpassback",A.USER_UPDATE_CONSENT="userupdateconsent",A.PLAYLIST_UPDATE="playlistupdate",A.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",A.CONTENT_SELECT="contentselect",A.CONTENT_START="contentstart",A.CONTENT_IMPRESSION="contentimpression",A.CONTENT_BUFFERING_START="contentbufferingstart",A.CONTENT_BUFFERING_END="contentbufferingend",A.CONTENT_STOP="contentstop",A.CONTENT_SUSPEND="contentsuspend",A.CONTENT_ERROR="contenterror",A.CONTENT_MARKER_REACHED="contentmarkerreached",A.CONTENT_TIME_UPDATE="timeupdate",A.CONTENT_SEEKING="seeking",A.CONTENT_SEEKED="seeked",A.CONTENT_PLAY="play",A.CONTENT_PAUSE="pause",A.CONTENT_VOLUME_CHANGE="volumechange",A.CONTENT_RATECHANGE="ratechange",A.CONTENT_ENDED="ended",A.AD_BREAK_REQUEST="adbreakrequest",A.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",A.AD_LOADED="adloaded",A.AD_IMPRESSION="adimpression",A.AD_BUFFERING_START="adbufferingstart",A.AD_BUFFERING_END="adbufferingend",A.AD_TIME_UPDATE="adtimeupdate",A.AD_VOLUME_CHANGE="advolumechange",A.AD_PAUSED="adpaused",A.AD_RESUMED="adresumed",A.AD_CLICK="adclick",A.AD_SKIPPED="adskipped",A.AD_COMPLETE="adcomplete",A.AD_ERROR="aderror",A.UI_INTERACTION="uiinteraction",(l=F||(F={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(c=b||(b={})).PREROLL="preroll",c.MIDROLL="midroll",c.POSTROLL="postroll",c.FIRST_QUARTILE="contentFirstQuartile",c.MIDPOINT="contentMidpoint",c.THIRD_QUARTILE="contentThirdQuartile",c.COMPLETE="contentComplete",c.STILL_INTERESTING="stillInteresting",c.REQUEST_RECOMMENDATIONS="requestRecommendations",(R=x||(x={})).NOT_FOUND="NotFound",R.FORBIDDEN="Forbidden",R.HIDDEN="Hidden",R.NO_CONTENT="NoContent",R.GENERIC="Generic",(p=h||(h={})).NOT_FOUND="NotFound",p.NOT_AVAILABLE="NotAvailable",p.GEOBLOCKED="Geoblocked",p.YOUTH_PROTECTED="YouthProtected",p.TERMINATED="Terminated",p.EXPIRED="Expired",p.LOGIN_REQUIRED="LoginRequired",p.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",p.VPN_DETECTED="VpnDetected",p.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",p.PIN_REQUIRED="PinRequired",p.INVALID_PIN="InvalidPin",p.GENERIC="Generic",(m=k||(k={})).GLOMEX="glomex",m.JOYN="joyn",m.EXTERNAL="external",(O=Y||(Y={})).HLS="application/vnd.apple.mpegurl",O.HLS_LEGACY="application/x-mpegURL",O.DASH="application/dash+xml",O.MP4="video/mp4",O.OGG="video/ogg",O.WEBM="video/webm",O.MP3="audio/mp3",O.AAC="audio/aac",O.WAV="audio/wav",O.OGG_AUDIO="audio/ogg",O.MPEG_AUDIO="audio/mpeg",O.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",O.JOYN="application/x-joyn-source",(D=V||(V={})).LIVE="live",D.VOD="vod",D.INTERACTIVE="interactive",D.EMBED="embed",(L=B||(B={})).FAIRPLAY="com.apple.fps",L.WIDEVINE="com.widevine.alpha",L.PLAYREADY="com.microsoft.playready",(C=H||(H={})).PREROLL="preroll",C.MIDROLL="midroll",C.POSTROLL="postroll",C.OVERLAY="overlay",(u=X||(X={})).LINEAR="linear",u.OVERLAY="overlay",u.CUTIN="cutin",u.PAUSE="pause",(P=K||(K={})).PRE_CLICK="pre-click-to-play",P.CLICK="click-to-play",P.AUTOPLAY_SCROLL="autoplay-scroll",P.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",P.CLICK_NEXT="click-to-play-next",P.CLICK_REPLAY="click-to-play-replay",P.AUTOPLAY_NEXT="autoplay-next",(S=w||(w={})).CLEAR_PLAYLIST="clearPlaylist",S.SELECT_PLAYLIST_ITEM="selectPlaylistItem",S.ENDED="ended",S.CONTENT_ERROR="contentError",S.API_STOP="apiStop",S.LIVESTREAM_STOP="livestreamStop",S.LIVESTREAM_NOT_STARTED="livestreamNotStarted",S.PAGE_HIDE="pageHide",S.BEFORE_UNLOAD="beforeUnload";let a="player.glomex.com",n=`https://${a}/integration/1/integration.js`;function o(e){return`https://${a}/variant/${e}/variant.css`}function E(){if(window.customElements.get(g.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${n}');`,e.type="module",(document.head||document.body).appendChild(e)}function i(e){if(document.querySelector(`link[href="${o(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=o(e),(document.head||document.body).appendChild(t)}async function r(){await customElements.whenDefined(g.INTEGRATION);let e=customElements.get(g.INTEGRATION);if(!e?.sharedContext)throw Error("sharedContext not available on glomex-integration element");return e.sharedContext}var I,T,d,s,N,_,A,l,c,R,p,m,O,D,L,C,u,P,S,M,g,U,y,G,f,v,F,b,x,h,k,Y,V,B,H,X,K,w,Q="turbo",j="glomex";export{H as AdBreakName,X as AdFormat,g as ComponentName,w as ContentStopReason,G as DeviceIdName,B as DrmSystem,t as EXTERNAL_PLAYER_NAME,v as IntegrationEvent,b as KnownMarkerName,F as MarkerType,h as MediaItemErrorCode,k as MediaItemProvider,x as MediaProviderErrorCode,Y as Mimetype,M as Origin,V as PlaybackMode,f as PresentationMode,U as ScriptType,K as StartMethod,y as UserIdName,o as getIntegrationCssUrl,r as getSharedContext,E as loadIntegrationComponent,i as loadIntegrationStyles,e as normalizeMediaItem,Q as INTERNAL_PREFIX,j as PUBLIC_PREFIX};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1524.0",
|
|
4
4
|
"description": "Web component and types to integrate the glomex player",
|
|
5
5
|
"documentation": "https://docs.glomex.com",
|
|
6
6
|
"homepage": "https://glomex.com",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@biomejs/biome": "catalog:",
|
|
35
|
-
"@glomex/integration": "1.
|
|
35
|
+
"@glomex/integration": "1.1524.0",
|
|
36
36
|
"@microsoft/api-extractor": "catalog:",
|
|
37
37
|
"@rslib/core": "catalog:",
|
|
38
38
|
"npm-run-all": "catalog:",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"license": "MIT",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ae6f566d67f5b6c9366ac4d71256665b8140f0bc"
|
|
46
46
|
}
|