@glomex/integration-web-component 1.1401.0 → 1.1404.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
@@ -14,6 +14,8 @@ export declare interface Ad {
14
14
  nonLinearHeight?: number;
15
15
  }
16
16
 
17
+ declare const ALLOWED_UI_ACTIONS: readonly ["play", "pause", "openEpg"];
18
+
17
19
  /**
18
20
  * An additional API script definition that should be executed for this media-item.
19
21
  *
@@ -818,6 +820,13 @@ export declare interface IntegrationElementEventMap {
818
820
  * @eventProperty
819
821
  */
820
822
  [IntegrationEvent.AD_COMPLETE]: CustomEvent<void>;
823
+ /**
824
+ * @inheritdoc IntegrationEvent.UI_INTERACTION
825
+ * @eventProperty
826
+ */
827
+ [IntegrationEvent.UI_INTERACTION]: CustomEvent<{
828
+ action: UiAction;
829
+ }>;
821
830
  }
822
831
 
823
832
  /**
@@ -994,7 +1003,12 @@ export declare enum IntegrationEvent {
994
1003
  * When the ad completed.
995
1004
  * @eventProperty
996
1005
  */
997
- AD_COMPLETE = "adcomplete"
1006
+ AD_COMPLETE = "adcomplete",
1007
+ /**
1008
+ * When the user interacted with the UI (e.g. play, pause, seek, etc.). The specific action is provided in the payload.
1009
+ * @eventProperty
1010
+ */
1011
+ UI_INTERACTION = "uiinteraction"
998
1012
  }
999
1013
 
1000
1014
  /**
@@ -1378,6 +1392,7 @@ export declare enum MediaItemErrorCode {
1378
1392
  NOT_AVAILABLE = "NotAvailable",
1379
1393
  GEOBLOCKED = "Geoblocked",
1380
1394
  YOUTH_PROTECTED = "YouthProtected",
1395
+ TERMINATED = "Terminated",
1381
1396
  GENERIC = "Generic"
1382
1397
  }
1383
1398
 
@@ -1468,6 +1483,10 @@ export declare interface MediaSourceJoyn {
1468
1483
  * Allowing to enforce stage environment
1469
1484
  */
1470
1485
  environment?: 'stg';
1486
+ /**
1487
+ * Shall the source be observed independent of business model?
1488
+ */
1489
+ forceObserveTermination?: boolean;
1471
1490
  }
1472
1491
 
1473
1492
  export declare enum Mimetype {
@@ -1566,6 +1585,8 @@ declare interface TextTrack_2 {
1566
1585
  default?: boolean;
1567
1586
  }
1568
1587
 
1588
+ export declare type UiAction = (typeof ALLOWED_UI_ACTIONS)[number];
1589
+
1569
1590
  export { }
1570
1591
 
1571
1592
  declare global {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var e,t,n,o,a,E,i,T,r,N,l,_,c,s,I,p,d,A,O,m,C,R,L,u;(c=e||(e={})).DEFAULT="turbo-integration",c.SCRIPT="turbo-script",c.IFRAME="turbo-iframe",c.FULLPAGE="turbo-fullpage",c.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",c.AMP_IFRAME="turbo-amp-iframe",(s=t||(t={})).INTEGRATION="glomex-integration",s.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",s.GLOMEX_MEDIA_ITEM="glomex-media-item",(I=n||(n={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",I.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json",(p=o||(o={})).HIDDEN="hidden",p.INLINE="inline",p.DOCK="dock",p.LIGHTBOX="lightbox",p.LIGHTBOX_EXTERNAL="lightbox-external",p.FULLSCREEN="fullscreen",p.AMP_DOCK="amp-dock",(d=a||(a={})).READY="ready",d.INTEGRATION_ABORT="integrationabort",d.INTEGRATION_AD_AVAILABLE="integrationadavailable",d.INTEGRATION_PASSBACK="integrationpassback",d.USER_UPDATE_CONSENT="userupdateconsent",d.PLAYLIST_UPDATE="playlistupdate",d.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",d.CONTENT_SELECT="contentselect",d.CONTENT_START="contentstart",d.CONTENT_IMPRESSION="contentimpression",d.CONTENT_BUFFERING_START="contentbufferingstart",d.CONTENT_BUFFERING_END="contentbufferingend",d.CONTENT_STOP="contentstop",d.CONTENT_ERROR="contenterror",d.CONTENT_MARKER_REACHED="contentmarkerreached",d.CONTENT_TIME_UPDATE="timeupdate",d.CONTENT_SEEKING="seeking",d.CONTENT_SEEKED="seeked",d.CONTENT_PLAY="play",d.CONTENT_PAUSE="pause",d.CONTENT_VOLUME_CHANGE="volumechange",d.CONTENT_ENDED="ended",d.AD_IMPRESSION="adimpression",d.AD_BUFFERING_START="adbufferingstart",d.AD_BUFFERING_END="adbufferingend",d.AD_TIME_UPDATE="adtimeupdate",d.AD_VOLUME_CHANGE="advolumechange",d.AD_PAUSED="adpaused",d.AD_RESUMED="adresumed",d.AD_CLICK="adclick",d.AD_SKIPPED="adskipped",d.AD_COMPLETE="adcomplete",(A=E||(E={})).TIME_IN_SECONDS="time",A.PERCENT="percent",A.TIME_IN_SECONDS_RECURRING="timeRecurring",(O=i||(i={})).PREROLL="preroll",O.MIDROLL="midroll",O.POSTROLL="postroll",O.FIRST_QUARTILE="contentFirstQuartile",O.MIDPOINT="contentMidpoint",O.THIRD_QUARTILE="contentThirdQuartile",O.COMPLETE="contentComplete",O.STILL_INTERESTING="stillInteresting",O.REQUEST_RECOMMENDATIONS="requestRecommendations",(m=T||(T={})).NOT_FOUND="NotFound",m.NOT_AVAILABLE="NotAvailable",m.GEOBLOCKED="Geoblocked",m.YOUTH_PROTECTED="YouthProtected",m.GENERIC="Generic",(C=r||(r={})).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",(R=N||(N={})).LIVE="live",R.VOD="vod",R.INTERACTIVE="interactive",R.EMBED="embed",(L=l||(l={})).PRE_CLICK="pre-click-to-play",L.CLICK="click-to-play",L.AUTOPLAY_SCROLL="autoplay-scroll",L.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",L.CLICK_NEXT="click-to-play-next",L.CLICK_REPLAY="click-to-play-replay",L.AUTOPLAY_NEXT="autoplay-next",(u=_||(_={})).CLEAR_PLAYLIST="clearPlaylist",u.SELECT_PLAYLIST_ITEM="selectPlaylistItem",u.ENDED="ended",u.CONTENT_ERROR="contentError",u.API_STOP="apiStop",u.LIVESTREAM_STOP="livestreamStop",u.PAGE_HIDE="pageHide";let S="player.glomex.com",D=`https://${S}/integration/1/integration.js`;function M(e){return`https://${S}/variant/${e}/variant.css`}function P(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${D}');`,e.type="module",(document.head||document.body).appendChild(e)}function g(e){if(document.querySelector(`link[href="${M(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=M(e),(document.head||document.body).appendChild(t)}export{t as ComponentName,_ as ContentStopReason,a as IntegrationEvent,i as KnownMarkerName,E as MarkerType,T as MediaItemErrorCode,r as Mimetype,N as PlaybackMode,o as PresentationMode,n as ScriptType,M as getIntegrationCssUrl,P as loadIntegrationComponent,g as loadIntegrationStyles};
1
+ var e,t,n,a,o,E,i,T,r,N,_,l,I,c,s,A,d,p,O,m,R,C,L,u;(I=e||(e={})).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",(c=t||(t={})).INTEGRATION="glomex-integration",c.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",c.GLOMEX_MEDIA_ITEM="glomex-media-item",(s=n||(n={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",s.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json",(A=a||(a={})).HIDDEN="hidden",A.INLINE="inline",A.DOCK="dock",A.LIGHTBOX="lightbox",A.LIGHTBOX_EXTERNAL="lightbox-external",A.FULLSCREEN="fullscreen",A.AMP_DOCK="amp-dock",(d=o||(o={})).READY="ready",d.INTEGRATION_ABORT="integrationabort",d.INTEGRATION_AD_AVAILABLE="integrationadavailable",d.INTEGRATION_PASSBACK="integrationpassback",d.USER_UPDATE_CONSENT="userupdateconsent",d.PLAYLIST_UPDATE="playlistupdate",d.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",d.CONTENT_SELECT="contentselect",d.CONTENT_START="contentstart",d.CONTENT_IMPRESSION="contentimpression",d.CONTENT_BUFFERING_START="contentbufferingstart",d.CONTENT_BUFFERING_END="contentbufferingend",d.CONTENT_STOP="contentstop",d.CONTENT_ERROR="contenterror",d.CONTENT_MARKER_REACHED="contentmarkerreached",d.CONTENT_TIME_UPDATE="timeupdate",d.CONTENT_SEEKING="seeking",d.CONTENT_SEEKED="seeked",d.CONTENT_PLAY="play",d.CONTENT_PAUSE="pause",d.CONTENT_VOLUME_CHANGE="volumechange",d.CONTENT_ENDED="ended",d.AD_IMPRESSION="adimpression",d.AD_BUFFERING_START="adbufferingstart",d.AD_BUFFERING_END="adbufferingend",d.AD_TIME_UPDATE="adtimeupdate",d.AD_VOLUME_CHANGE="advolumechange",d.AD_PAUSED="adpaused",d.AD_RESUMED="adresumed",d.AD_CLICK="adclick",d.AD_SKIPPED="adskipped",d.AD_COMPLETE="adcomplete",d.UI_INTERACTION="uiinteraction",(p=E||(E={})).TIME_IN_SECONDS="time",p.PERCENT="percent",p.TIME_IN_SECONDS_RECURRING="timeRecurring",(O=i||(i={})).PREROLL="preroll",O.MIDROLL="midroll",O.POSTROLL="postroll",O.FIRST_QUARTILE="contentFirstQuartile",O.MIDPOINT="contentMidpoint",O.THIRD_QUARTILE="contentThirdQuartile",O.COMPLETE="contentComplete",O.STILL_INTERESTING="stillInteresting",O.REQUEST_RECOMMENDATIONS="requestRecommendations",(m=T||(T={})).NOT_FOUND="NotFound",m.NOT_AVAILABLE="NotAvailable",m.GEOBLOCKED="Geoblocked",m.YOUTH_PROTECTED="YouthProtected",m.TERMINATED="Terminated",m.GENERIC="Generic",(R=r||(r={})).HLS="application/vnd.apple.mpegurl",R.HLS_LEGACY="application/x-mpegURL",R.DASH="application/dash+xml",R.MP4="video/mp4",R.OGG="video/ogg",R.WEBM="video/webm",R.MP3="audio/mp3",R.AAC="audio/aac",R.WAV="audio/wav",R.OGG_AUDIO="audio/ogg",R.MPEG_AUDIO="audio/mpeg",R.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",R.JOYN="application/x-joyn-source",(C=N||(N={})).LIVE="live",C.VOD="vod",C.INTERACTIVE="interactive",C.EMBED="embed",(L=_||(_={})).PRE_CLICK="pre-click-to-play",L.CLICK="click-to-play",L.AUTOPLAY_SCROLL="autoplay-scroll",L.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",L.CLICK_NEXT="click-to-play-next",L.CLICK_REPLAY="click-to-play-replay",L.AUTOPLAY_NEXT="autoplay-next",(u=l||(l={})).CLEAR_PLAYLIST="clearPlaylist",u.SELECT_PLAYLIST_ITEM="selectPlaylistItem",u.ENDED="ended",u.CONTENT_ERROR="contentError",u.API_STOP="apiStop",u.LIVESTREAM_STOP="livestreamStop",u.PAGE_HIDE="pageHide";let D="player.glomex.com",S=`https://${D}/integration/1/integration.js`;function M(e){return`https://${D}/variant/${e}/variant.css`}function P(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${S}');`,e.type="module",(document.head||document.body).appendChild(e)}function g(e){if(document.querySelector(`link[href="${M(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=M(e),(document.head||document.body).appendChild(t)}export{t as ComponentName,l as ContentStopReason,o as IntegrationEvent,i as KnownMarkerName,E as MarkerType,T as MediaItemErrorCode,r as Mimetype,N as PlaybackMode,a as PresentationMode,n as ScriptType,M as getIntegrationCssUrl,P as loadIntegrationComponent,g as loadIntegrationStyles};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1401.0",
3
+ "version": "1.1404.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",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@biomejs/biome": "^1.9.4",
33
- "@glomex/integration": "^1.1401.0",
33
+ "@glomex/integration": "^1.1404.0",
34
34
  "@microsoft/api-extractor": "^7.52.10",
35
35
  "@rslib/core": "^0.11.2",
36
36
  "typescript": "^5.8.3"
@@ -39,5 +39,5 @@
39
39
  "access": "public"
40
40
  },
41
41
  "license": "MIT",
42
- "gitHead": "b883b963c989bc632c6c4dc4b70f12d4dfbebd9f"
42
+ "gitHead": "4946e0259a68658d5a19536fa43d3437bc28c69f"
43
43
  }