@glomex/integration-web-component 1.1414.1 → 1.1415.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 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"];
@@ -498,6 +511,14 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
498
511
  * Snapshots current video frame. Requires {@link crossorigin} to be set to `anonymous`.
499
512
  */
500
513
  getCurrentVideoFrame(): Promise<ImageBitmap>;
514
+ /**
515
+ * Returns the current playback time (in seconds) of the media.
516
+ */
517
+ get currentTime(): number;
518
+ /**
519
+ * Returns the current playback statistics.
520
+ */
521
+ get statistics(): PlayerStats | undefined;
501
522
  /**
502
523
  * Returns the current session ID.
503
524
  */
@@ -506,10 +527,6 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
506
527
  * Returns the current wall clock time (UNIX timestamp in seconds). Useful for livestreams.
507
528
  */
508
529
  get wallClockTime(): number;
509
- /**
510
- * Returns the current playback time (in seconds) of the media.
511
- */
512
- get currentTime(): number;
513
530
  /**
514
531
  * Seeks the media to the specified time, updating the current playback time.
515
532
  * @param time - The time (in seconds) to seek to.
@@ -583,7 +600,11 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
583
600
  */
584
601
  get content(): MediaItem | undefined;
585
602
  /**
586
- * Retrieves the current playlist content items.
603
+ * Retrieves the currently selected source.
604
+ */
605
+ get source(): ContentSource | undefined;
606
+ /**
607
+ * Retrieves the current playlist.
587
608
  */
588
609
  get playlist(): MediaItem[] | undefined;
589
610
  /**
@@ -772,6 +793,11 @@ export declare interface IntegrationElementEventMap {
772
793
  * @eventProperty
773
794
  */
774
795
  [IntegrationEvent.CONTENT_ENDED]: CustomEvent<void> | HTMLElementEventMap['ended'];
796
+ /**
797
+ * @inheritdoc IntegrationEvent.AD_LOADED
798
+ * @eventProperty
799
+ */
800
+ [IntegrationEvent.AD_LOADED]: CustomEvent<void>;
775
801
  /**
776
802
  * @inheritdoc IntegrationEvent.AD_IMPRESSION
777
803
  * @eventProperty
@@ -954,6 +980,12 @@ export declare enum IntegrationEvent {
954
980
  * @eventProperty
955
981
  */
956
982
  CONTENT_ENDED = "ended",
983
+ /**
984
+ * When an ad is loaded.
985
+ * See {@link IntegrationElement#currentAd} to get the loaded ad.
986
+ * @eventProperty
987
+ */
988
+ AD_LOADED = "adloaded",
957
989
  /**
958
990
  * When the first frame of the ad got played back.
959
991
  * See {@link IntegrationElement#currentAd} to get the current ad.
@@ -1510,6 +1542,14 @@ export declare interface MediaSourceJoyn {
1510
1542
  * Allowing to enforce stage environment
1511
1543
  */
1512
1544
  environment?: 'stg';
1545
+ /**
1546
+ * Distribution tenant name, could be JOYN, JOYN_AT, JOYN_CH
1547
+ */
1548
+ distributionTenant?: string;
1549
+ /**
1550
+ * User ID
1551
+ */
1552
+ userId?: string;
1513
1553
  /**
1514
1554
  * Shall the source be observed independent of business model?
1515
1555
  */
@@ -1556,6 +1596,17 @@ export declare enum PlaybackMode {
1556
1596
  EMBED = "embed"
1557
1597
  }
1558
1598
 
1599
+ declare interface PlayerStats {
1600
+ bitrate: number;
1601
+ latency: number;
1602
+ throughput: number;
1603
+ droppedFrames: number;
1604
+ width: number;
1605
+ height: number;
1606
+ bytes?: number;
1607
+ bandwidth?: number;
1608
+ }
1609
+
1559
1610
  export declare enum PresentationMode {
1560
1611
  HIDDEN = "hidden",
1561
1612
  INLINE = "inline",
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=S||(S={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(s=P||(P={})).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",(p=D||(D={})).NOT_FOUND="NotFound",p.NOT_AVAILABLE="NotAvailable",p.GEOBLOCKED="Geoblocked",p.YOUTH_PROTECTED="YouthProtected",p.TERMINATED="Terminated",p.GENERIC="Generic",(c=M||(M={})).HLS="application/vnd.apple.mpegurl",c.HLS_LEGACY="application/x-mpegURL",c.DASH="application/dash+xml",c.MP4="video/mp4",c.OGG="video/ogg",c.WEBM="video/webm",c.MP3="audio/mp3",c.AAC="audio/aac",c.WAV="audio/wav",c.OGG_AUDIO="audio/ogg",c.MPEG_AUDIO="audio/mpeg",c.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",c.JOYN="application/x-joyn-source",(A=g||(g={})).LIVE="live",A.VOD="vod",A.INTERACTIVE="interactive",A.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,p,c,A,d,O,R,m,C,L,u,S,P,D,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,P as KnownMarkerName,S as MarkerType,D 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};
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.1414.1",
3
+ "version": "1.1415.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.1414.1",
34
+ "@glomex/integration": "^1.1415.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": "e7627d36f0c82dda23371be160dfe84ff5f82044"
42
+ "gitHead": "9114ffedc4697e75dc1997da81e8c26122481d3d"
43
43
  }