@glomex/integration-web-component 1.1414.2 → 1.1417.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 +72 -6
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,21 @@ export declare interface Ad {
|
|
|
10
10
|
breakName: string;
|
|
11
11
|
mimetype: string;
|
|
12
12
|
totalAds: number;
|
|
13
|
+
adUrl?: string;
|
|
13
14
|
nonLinearWidth?: number;
|
|
14
15
|
nonLinearHeight?: number;
|
|
16
|
+
title?: string;
|
|
17
|
+
advertiserName?: string;
|
|
18
|
+
width?: number;
|
|
19
|
+
height?: number;
|
|
20
|
+
adSystem?: string;
|
|
21
|
+
universalAdIds?: {
|
|
22
|
+
id: string;
|
|
23
|
+
registry: string;
|
|
24
|
+
}[];
|
|
25
|
+
creativeId?: string;
|
|
26
|
+
skippable: boolean;
|
|
27
|
+
clickThroughUrl?: string;
|
|
15
28
|
}
|
|
16
29
|
|
|
17
30
|
export declare const ALLOWED_UI_ACTIONS: readonly ["play", "pause", "openEpg"];
|
|
@@ -123,7 +136,7 @@ export declare interface Consent {
|
|
|
123
136
|
* Selected source of the given content.
|
|
124
137
|
*/
|
|
125
138
|
export declare interface ContentSource {
|
|
126
|
-
id
|
|
139
|
+
id?: string;
|
|
127
140
|
mimetype: Mimetype;
|
|
128
141
|
src: string;
|
|
129
142
|
playbackMode: PlaybackMode;
|
|
@@ -159,6 +172,16 @@ declare interface ExperimentVariant {
|
|
|
159
172
|
contentOverride: Record<string, unknown>;
|
|
160
173
|
}
|
|
161
174
|
|
|
175
|
+
export declare interface ExtendedVideoPlaybackQuality extends VideoPlaybackQuality {
|
|
176
|
+
bitrate: number;
|
|
177
|
+
liveLatency: number;
|
|
178
|
+
throughput: number;
|
|
179
|
+
bytes: number;
|
|
180
|
+
bandwidth: number;
|
|
181
|
+
width: number;
|
|
182
|
+
height: number;
|
|
183
|
+
}
|
|
184
|
+
|
|
162
185
|
export declare const EXTERNAL_PLAYER_NAME = "turbo-player";
|
|
163
186
|
|
|
164
187
|
/**
|
|
@@ -294,6 +317,10 @@ export declare interface ExtraContext {
|
|
|
294
317
|
* The version of the app. When it is a website, fill in the deployed version of the website.
|
|
295
318
|
*/
|
|
296
319
|
appVersion?: string;
|
|
320
|
+
/**
|
|
321
|
+
* The name of the app. When it is a website, fill in the name of the project.
|
|
322
|
+
*/
|
|
323
|
+
appName?: string;
|
|
297
324
|
userIds?: ExtraContextUserId[];
|
|
298
325
|
/**
|
|
299
326
|
* The bundle id of the app. Only required for iOS apps.
|
|
@@ -498,6 +525,26 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
498
525
|
* Snapshots current video frame. Requires {@link crossorigin} to be set to `anonymous`.
|
|
499
526
|
*/
|
|
500
527
|
getCurrentVideoFrame(): Promise<ImageBitmap>;
|
|
528
|
+
/**
|
|
529
|
+
* Returns the current playback time (in seconds) of the media.
|
|
530
|
+
*/
|
|
531
|
+
get currentTime(): number;
|
|
532
|
+
/**
|
|
533
|
+
* Returns the current extended playback quality.
|
|
534
|
+
*/
|
|
535
|
+
getVideoPlaybackQuality(): {
|
|
536
|
+
droppedVideoFrames: number;
|
|
537
|
+
totalVideoFrames: number;
|
|
538
|
+
creationTime: number;
|
|
539
|
+
corruptedVideoFrames: number;
|
|
540
|
+
bitrate: number;
|
|
541
|
+
liveLatency: number;
|
|
542
|
+
throughput: number;
|
|
543
|
+
bytes: number;
|
|
544
|
+
bandwidth: number;
|
|
545
|
+
width: number;
|
|
546
|
+
height: number;
|
|
547
|
+
} | undefined;
|
|
501
548
|
/**
|
|
502
549
|
* Returns the current session ID.
|
|
503
550
|
*/
|
|
@@ -506,10 +553,6 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
506
553
|
* Returns the current wall clock time (UNIX timestamp in seconds). Useful for livestreams.
|
|
507
554
|
*/
|
|
508
555
|
get wallClockTime(): number;
|
|
509
|
-
/**
|
|
510
|
-
* Returns the current playback time (in seconds) of the media.
|
|
511
|
-
*/
|
|
512
|
-
get currentTime(): number;
|
|
513
556
|
/**
|
|
514
557
|
* Seeks the media to the specified time, updating the current playback time.
|
|
515
558
|
* @param time - The time (in seconds) to seek to.
|
|
@@ -583,7 +626,11 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
583
626
|
*/
|
|
584
627
|
get content(): MediaItem | undefined;
|
|
585
628
|
/**
|
|
586
|
-
* Retrieves the
|
|
629
|
+
* Retrieves the currently selected source.
|
|
630
|
+
*/
|
|
631
|
+
get source(): ContentSource | undefined;
|
|
632
|
+
/**
|
|
633
|
+
* Retrieves the current playlist.
|
|
587
634
|
*/
|
|
588
635
|
get playlist(): MediaItem[] | undefined;
|
|
589
636
|
/**
|
|
@@ -772,6 +819,11 @@ export declare interface IntegrationElementEventMap {
|
|
|
772
819
|
* @eventProperty
|
|
773
820
|
*/
|
|
774
821
|
[IntegrationEvent.CONTENT_ENDED]: CustomEvent<void> | HTMLElementEventMap['ended'];
|
|
822
|
+
/**
|
|
823
|
+
* @inheritdoc IntegrationEvent.AD_LOADED
|
|
824
|
+
* @eventProperty
|
|
825
|
+
*/
|
|
826
|
+
[IntegrationEvent.AD_LOADED]: CustomEvent<void>;
|
|
775
827
|
/**
|
|
776
828
|
* @inheritdoc IntegrationEvent.AD_IMPRESSION
|
|
777
829
|
* @eventProperty
|
|
@@ -954,6 +1006,12 @@ export declare enum IntegrationEvent {
|
|
|
954
1006
|
* @eventProperty
|
|
955
1007
|
*/
|
|
956
1008
|
CONTENT_ENDED = "ended",
|
|
1009
|
+
/**
|
|
1010
|
+
* When an ad is loaded.
|
|
1011
|
+
* See {@link IntegrationElement#currentAd} to get the loaded ad.
|
|
1012
|
+
* @eventProperty
|
|
1013
|
+
*/
|
|
1014
|
+
AD_LOADED = "adloaded",
|
|
957
1015
|
/**
|
|
958
1016
|
* When the first frame of the ad got played back.
|
|
959
1017
|
* See {@link IntegrationElement#currentAd} to get the current ad.
|
|
@@ -1510,6 +1568,14 @@ export declare interface MediaSourceJoyn {
|
|
|
1510
1568
|
* Allowing to enforce stage environment
|
|
1511
1569
|
*/
|
|
1512
1570
|
environment?: 'stg';
|
|
1571
|
+
/**
|
|
1572
|
+
* Distribution tenant name, could be JOYN, JOYN_AT, JOYN_CH
|
|
1573
|
+
*/
|
|
1574
|
+
distributionTenant?: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* User ID
|
|
1577
|
+
*/
|
|
1578
|
+
userId?: string;
|
|
1513
1579
|
/**
|
|
1514
1580
|
* Shall the source be observed independent of business model?
|
|
1515
1581
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(r=R||(R={})).DEFAULT="turbo-integration",r.SCRIPT="turbo-script",r.IFRAME="turbo-iframe",r.FULLPAGE="turbo-fullpage",r.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",r.AMP_IFRAME="turbo-amp-iframe",(T=m||(m={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",(_=C||(C={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",_.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json";let e="turbo-player";(N=L||(L={})).HIDDEN="hidden",N.INLINE="inline",N.DOCK="dock",N.LIGHTBOX="lightbox",N.LIGHTBOX_EXTERNAL="lightbox-external",N.FULLSCREEN="fullscreen",N.AMP_DOCK="amp-dock",(I=u||(u={})).READY="ready",I.INTEGRATION_ABORT="integrationabort",I.INTEGRATION_AD_AVAILABLE="integrationadavailable",I.INTEGRATION_PASSBACK="integrationpassback",I.USER_UPDATE_CONSENT="userupdateconsent",I.PLAYLIST_UPDATE="playlistupdate",I.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",I.CONTENT_SELECT="contentselect",I.CONTENT_START="contentstart",I.CONTENT_IMPRESSION="contentimpression",I.CONTENT_BUFFERING_START="contentbufferingstart",I.CONTENT_BUFFERING_END="contentbufferingend",I.CONTENT_STOP="contentstop",I.CONTENT_ERROR="contenterror",I.CONTENT_MARKER_REACHED="contentmarkerreached",I.CONTENT_TIME_UPDATE="timeupdate",I.CONTENT_SEEKING="seeking",I.CONTENT_SEEKED="seeked",I.CONTENT_PLAY="play",I.CONTENT_PAUSE="pause",I.CONTENT_VOLUME_CHANGE="volumechange",I.CONTENT_ENDED="ended",I.AD_IMPRESSION="adimpression",I.AD_BUFFERING_START="adbufferingstart",I.AD_BUFFERING_END="adbufferingend",I.AD_TIME_UPDATE="adtimeupdate",I.AD_VOLUME_CHANGE="advolumechange",I.AD_PAUSED="adpaused",I.AD_RESUMED="adresumed",I.AD_CLICK="adclick",I.AD_SKIPPED="adskipped",I.AD_COMPLETE="adcomplete",I.UI_INTERACTION="uiinteraction",(l=
|
|
1
|
+
(r=R||(R={})).DEFAULT="turbo-integration",r.SCRIPT="turbo-script",r.IFRAME="turbo-iframe",r.FULLPAGE="turbo-fullpage",r.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",r.AMP_IFRAME="turbo-amp-iframe",(T=m||(m={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",(_=C||(C={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",_.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json";let e="turbo-player";(N=L||(L={})).HIDDEN="hidden",N.INLINE="inline",N.DOCK="dock",N.LIGHTBOX="lightbox",N.LIGHTBOX_EXTERNAL="lightbox-external",N.FULLSCREEN="fullscreen",N.AMP_DOCK="amp-dock",(I=u||(u={})).READY="ready",I.INTEGRATION_ABORT="integrationabort",I.INTEGRATION_AD_AVAILABLE="integrationadavailable",I.INTEGRATION_PASSBACK="integrationpassback",I.USER_UPDATE_CONSENT="userupdateconsent",I.PLAYLIST_UPDATE="playlistupdate",I.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",I.CONTENT_SELECT="contentselect",I.CONTENT_START="contentstart",I.CONTENT_IMPRESSION="contentimpression",I.CONTENT_BUFFERING_START="contentbufferingstart",I.CONTENT_BUFFERING_END="contentbufferingend",I.CONTENT_STOP="contentstop",I.CONTENT_ERROR="contenterror",I.CONTENT_MARKER_REACHED="contentmarkerreached",I.CONTENT_TIME_UPDATE="timeupdate",I.CONTENT_SEEKING="seeking",I.CONTENT_SEEKED="seeked",I.CONTENT_PLAY="play",I.CONTENT_PAUSE="pause",I.CONTENT_VOLUME_CHANGE="volumechange",I.CONTENT_ENDED="ended",I.AD_LOADED="adloaded",I.AD_IMPRESSION="adimpression",I.AD_BUFFERING_START="adbufferingstart",I.AD_BUFFERING_END="adbufferingend",I.AD_TIME_UPDATE="adtimeupdate",I.AD_VOLUME_CHANGE="advolumechange",I.AD_PAUSED="adpaused",I.AD_RESUMED="adresumed",I.AD_CLICK="adclick",I.AD_SKIPPED="adskipped",I.AD_COMPLETE="adcomplete",I.UI_INTERACTION="uiinteraction",(l=D||(D={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(s=S||(S={})).PREROLL="preroll",s.MIDROLL="midroll",s.POSTROLL="postroll",s.FIRST_QUARTILE="contentFirstQuartile",s.MIDPOINT="contentMidpoint",s.THIRD_QUARTILE="contentThirdQuartile",s.COMPLETE="contentComplete",s.STILL_INTERESTING="stillInteresting",s.REQUEST_RECOMMENDATIONS="requestRecommendations",(A=P||(P={})).NOT_FOUND="NotFound",A.NOT_AVAILABLE="NotAvailable",A.GEOBLOCKED="Geoblocked",A.YOUTH_PROTECTED="YouthProtected",A.TERMINATED="Terminated",A.GENERIC="Generic",(p=M||(M={})).HLS="application/vnd.apple.mpegurl",p.HLS_LEGACY="application/x-mpegURL",p.DASH="application/dash+xml",p.MP4="video/mp4",p.OGG="video/ogg",p.WEBM="video/webm",p.MP3="audio/mp3",p.AAC="audio/aac",p.WAV="audio/wav",p.OGG_AUDIO="audio/ogg",p.MPEG_AUDIO="audio/mpeg",p.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",p.JOYN="application/x-joyn-source",(c=g||(g={})).LIVE="live",c.VOD="vod",c.INTERACTIVE="interactive",c.EMBED="embed",(d=U||(U={})).PRE_CLICK="pre-click-to-play",d.CLICK="click-to-play",d.AUTOPLAY_SCROLL="autoplay-scroll",d.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",d.CLICK_NEXT="click-to-play-next",d.CLICK_REPLAY="click-to-play-replay",d.AUTOPLAY_NEXT="autoplay-next",(O=y||(y={})).CLEAR_PLAYLIST="clearPlaylist",O.SELECT_PLAYLIST_ITEM="selectPlaylistItem",O.ENDED="ended",O.CONTENT_ERROR="contentError",O.API_STOP="apiStop",O.LIVESTREAM_STOP="livestreamStop",O.PAGE_HIDE="pageHide";let t=["play","pause","openEpg"],n="player.glomex.com",a=`https://${n}/integration/1/integration.js`;function o(e){return`https://${n}/variant/${e}/variant.css`}function E(){if(window.customElements.get(m.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${a}');`,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)}var r,T,_,N,I,l,s,A,p,c,d,O,R,m,C,L,u,D,S,P,M,g,U,y,G="turbo",b="glomex";export{t as ALLOWED_UI_ACTIONS,m as ComponentName,y as ContentStopReason,e as EXTERNAL_PLAYER_NAME,u as IntegrationEvent,S as KnownMarkerName,D as MarkerType,P as MediaItemErrorCode,M as Mimetype,R as Origin,g as PlaybackMode,L as PresentationMode,C as ScriptType,U as StartMethod,o as getIntegrationCssUrl,E as loadIntegrationComponent,i as loadIntegrationStyles,G as INTERNAL_PREFIX,b 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.1417.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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"watch": "npm-run-all --parallel \"build:* -- --watch\""
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@glomex/integration": "^1.
|
|
34
|
+
"@glomex/integration": "^1.1417.0",
|
|
35
35
|
"@microsoft/api-extractor": "^7.52.13",
|
|
36
36
|
"@rslib/core": "^0.13.3"
|
|
37
37
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0d2cbc8aff882171f6cc6eca5aea5ea44b369d8f"
|
|
43
43
|
}
|