@glomex/integration-web-component 1.1302.1 → 1.1305.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/build/index.d.ts CHANGED
@@ -127,17 +127,17 @@ export declare class ExternalMediaItemElement extends HTMLElement implements Med
127
127
  */
128
128
  id: string;
129
129
  /**
130
- * {@inheritDoc MediaSource#src}
130
+ * {@inheritDoc MediaSourceBase#src}
131
131
  */
132
132
  src: string;
133
133
  /**
134
- * {@inheritDoc MediaSource#mimetype}
134
+ * {@inheritDoc MediaSourceBase#mimetype}
135
135
  */
136
136
  mimetype?: MediaSource_2['mimetype'];
137
137
  /**
138
- * {@inheritDoc MediaItem#type}
138
+ * {@inheritDoc MediaSourceBase#playbackMode}
139
139
  */
140
- type?: MediaItem['type'];
140
+ playbackMode?: MediaSourceBase['playbackMode'];
141
141
  /**
142
142
  * {@inheritDoc MediaItem#duration}
143
143
  */
@@ -261,7 +261,7 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
261
261
  #private;
262
262
  static MarkerType: typeof MarkerType;
263
263
  static KnownMarkerName: typeof KnownMarkerName;
264
- static StreamType: typeof StreamType;
264
+ static PlaybackMode: typeof PlaybackMode;
265
265
  static Mimetype: typeof Mimetype;
266
266
  static PresentationMode: typeof PresentationMode;
267
267
  static IntegrationEvent: typeof IntegrationEvent;
@@ -855,7 +855,10 @@ export declare enum MediaItemErrorCode {
855
855
  YOUTH_PROTECTED = "YouthProtected"
856
856
  }
857
857
 
858
- declare interface MediaSource_2 {
858
+ declare type MediaSource_2 = MediaSourceBase | MediaSourceDrm | MediaSourceJoyn | MediaSourceDynamicContent;
859
+ export { MediaSource_2 as MediaSource }
860
+
861
+ declare interface MediaSourceBase {
859
862
  /**
860
863
  * Unique identifier of the media source.
861
864
  *
@@ -876,6 +879,15 @@ declare interface MediaSource_2 {
876
879
  * Until the media source is valid. Unix timestamp in milliseconds.
877
880
  */
878
881
  validUntil?: number;
882
+ /**
883
+ * Content mode of the media source.
884
+ *
885
+ * @defaultValue `PlaybackMode.VOD`
886
+ */
887
+ playbackMode?: PlaybackMode;
888
+ }
889
+
890
+ declare interface MediaSourceDrm extends MediaSourceBase {
879
891
  /**
880
892
  * DRM provider header name. Only relevant in combination with tokens.
881
893
  */
@@ -909,7 +921,28 @@ declare interface MediaSource_2 {
909
921
  */
910
922
  playreadyToken?: string;
911
923
  }
912
- export { MediaSource_2 as MediaSource }
924
+
925
+ declare interface MediaSourceDynamicContent extends MediaSourceBase {
926
+ mimetype: Mimetype.DYNAMIC_CONTENT;
927
+ }
928
+
929
+ declare interface MediaSourceJoyn {
930
+ /**
931
+ * Content / video identifier of joyn.
932
+ */
933
+ id: string;
934
+ mimetype: Mimetype.JOYN;
935
+ /**
936
+ * User token used for authentication.
937
+ */
938
+ token: string;
939
+ /** {@inheritDoc MediaSourceBase.playbackMode} */
940
+ playbackMode?: PlaybackMode;
941
+ /**
942
+ * Allowing to enforce stage environment
943
+ */
944
+ environment?: 'stg';
945
+ }
913
946
 
914
947
  export declare enum Mimetype {
915
948
  HLS = "application/vnd.apple.mpegurl",
@@ -923,7 +956,8 @@ export declare enum Mimetype {
923
956
  WAV = "audio/wav",
924
957
  OGG_AUDIO = "audio/ogg",
925
958
  MPEG_AUDIO = "audio/mpeg",
926
- DYNAMIC_CONTENT = "application/x-turbo-dynamic-content"
959
+ DYNAMIC_CONTENT = "application/x-turbo-dynamic-content",
960
+ JOYN = "application/x-joyn-source"
927
961
  }
928
962
 
929
963
  export declare interface MinimalMediaItem {
@@ -951,12 +985,6 @@ export declare interface MinimalMediaItem {
951
985
  * Description of the media item.
952
986
  */
953
987
  description?: string;
954
- /**
955
- * Stream type of the media item.
956
- *
957
- * @defaultValue `StreamType.VOD`
958
- */
959
- type?: StreamType;
960
988
  /**
961
989
  * Language of the media item. 2-letter ISO language code.
962
990
  *
@@ -1022,6 +1050,13 @@ export declare interface Page {
1022
1050
  referrer: string;
1023
1051
  }
1024
1052
 
1053
+ export declare enum PlaybackMode {
1054
+ LIVE = "live",
1055
+ VOD = "vod",
1056
+ INTERACTIVE = "interactive",
1057
+ EMBED = "embed"
1058
+ }
1059
+
1025
1060
  export declare enum PresentationMode {
1026
1061
  HIDDEN = "hidden",
1027
1062
  INLINE = "inline",
@@ -1038,14 +1073,6 @@ export declare enum ScriptType {
1038
1073
  EXTERNAL_MEDIA_ITEM = "application/glomex-external-media-item+json"
1039
1074
  }
1040
1075
 
1041
- export declare enum StreamType {
1042
- LIVE = "live",
1043
- VOD = "vod",
1044
- LIVE_DRM = "live-drm",
1045
- VOD_DRM = "vod-drm",
1046
- DYNAMIC_CONTENT = "dynamic-content"
1047
- }
1048
-
1049
1076
  export { }
1050
1077
 
1051
1078
  declare global {
package/build/index.js CHANGED
@@ -1 +1 @@
1
- var e,t,n,o,a,E,i,r,T,d,N,_,s,m,p,I,l,c,A,O;(N=e||(e={})).DEFAULT="turbo-integration",N.SCRIPT="turbo-script",N.IFRAME="turbo-iframe",N.FULLPAGE="turbo-fullpage",N.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",N.AMP_IFRAME="turbo-amp-iframe",(_=t||(t={})).INTEGRATION="glomex-integration",_.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",_.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",(m=o||(o={})).HIDDEN="hidden",m.INLINE="inline",m.DOCK="dock",m.LIGHTBOX="lightbox",m.FULLSCREEN="fullscreen",m.AMP_DOCK="amp-dock",(p=a||(a={})).READY="ready",p.INTEGRATION_ABORT="integrationabort",p.INTEGRATION_AD_AVAILABLE="integrationadavailable",p.INTEGRATION_PASSBACK="integrationpassback",p.USER_UPDATE_CONSENT="userupdateconsent",p.PLAYLIST_UPDATE="playlistupdate",p.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",p.CONTENT_START="contentstart",p.CONTENT_IMPRESSION="contentimpression",p.CONTENT_STOP="contentstop",p.CONTENT_ERROR="contenterror",p.CONTENT_MARKER_REACHED="contentmarkerreached",p.CONTENT_TIME_UPDATE="timeupdate",p.CONTENT_SEEKING="seeking",p.CONTENT_SEEKED="seeked",p.CONTENT_PLAY="play",p.CONTENT_PAUSE="pause",p.CONTENT_VOLUME_CHANGE="volumechange",p.CONTENT_ENDED="ended",p.AD_IMPRESSION="adimpression",p.AD_TIME_UPDATE="adtimeupdate",p.AD_VOLUME_CHANGE="advolumechange",p.AD_PAUSED="adpaused",p.AD_RESUMED="adresumed",p.AD_CLICK="adclick",p.AD_SKIPPED="adskipped",p.AD_COMPLETE="adcomplete",(I=E||(E={})).TIME_IN_SECONDS="time",I.PERCENT="percent",I.TIME_IN_SECONDS_RECURRING="timeRecurring",(l=i||(i={})).PREROLL="preroll",l.MIDROLL="midroll",l.POSTROLL="postroll",l.FIRST_QUARTILE="contentFirstQuartile",l.MIDPOINT="contentMidpoint",l.THIRD_QUARTILE="contentThirdQuartile",l.COMPLETE="contentComplete",l.STILL_INTERESTING="stillInteresting",(c=r||(r={})).NOT_FOUND="NotFound",c.NOT_AVAILABLE="NotAvailable",c.GEOBLOCKED="Geoblocked",c.YOUTH_PROTECTED="YouthProtected",(A=T||(T={})).HLS="application/vnd.apple.mpegurl",A.HLS_LEGACY="application/x-mpegURL",A.DASH="application/dash+xml",A.MP4="video/mp4",A.OGG="video/ogg",A.WEBM="video/webm",A.MP3="audio/mp3",A.AAC="audio/aac",A.WAV="audio/wav",A.OGG_AUDIO="audio/ogg",A.MPEG_AUDIO="audio/mpeg",A.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",(O=d||(d={})).LIVE="live",O.VOD="vod",O.LIVE_DRM="live-drm",O.VOD_DRM="vod-drm",O.DYNAMIC_CONTENT="dynamic-content";let D="player.glomex.com",C=`https://${D}/integration/1/integration.js`;function M(e){return`https://${D}/variant/${e}/variant.css`}function u(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${C}');`,e.type="module",(document.head||document.body).appendChild(e)}function R(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,a as IntegrationEvent,i as KnownMarkerName,E as MarkerType,r as MediaItemErrorCode,T as Mimetype,o as PresentationMode,n as ScriptType,d as StreamType,M as getIntegrationCssUrl,u as loadIntegrationComponent,R as loadIntegrationStyles};
1
+ var e,t,n,o,a,E,i,r,T,d,N,s,l,p,I,_,c,m,A,O;(N=e||(e={})).DEFAULT="turbo-integration",N.SCRIPT="turbo-script",N.IFRAME="turbo-iframe",N.FULLPAGE="turbo-fullpage",N.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",N.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",(l=n||(n={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",l.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json",(p=o||(o={})).HIDDEN="hidden",p.INLINE="inline",p.DOCK="dock",p.LIGHTBOX="lightbox",p.FULLSCREEN="fullscreen",p.AMP_DOCK="amp-dock",(I=a||(a={})).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_START="contentstart",I.CONTENT_IMPRESSION="contentimpression",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_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",(_=E||(E={})).TIME_IN_SECONDS="time",_.PERCENT="percent",_.TIME_IN_SECONDS_RECURRING="timeRecurring",(c=i||(i={})).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",(m=r||(r={})).NOT_FOUND="NotFound",m.NOT_AVAILABLE="NotAvailable",m.GEOBLOCKED="Geoblocked",m.YOUTH_PROTECTED="YouthProtected",(A=T||(T={})).HLS="application/vnd.apple.mpegurl",A.HLS_LEGACY="application/x-mpegURL",A.DASH="application/dash+xml",A.MP4="video/mp4",A.OGG="video/ogg",A.WEBM="video/webm",A.MP3="audio/mp3",A.AAC="audio/aac",A.WAV="audio/wav",A.OGG_AUDIO="audio/ogg",A.MPEG_AUDIO="audio/mpeg",A.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",A.JOYN="application/x-joyn-source",(O=d||(d={})).LIVE="live",O.VOD="vod",O.INTERACTIVE="interactive",O.EMBED="embed";let u="player.glomex.com",M=`https://${u}/integration/1/integration.js`;function C(e){return`https://${u}/variant/${e}/variant.css`}function D(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${M}');`,e.type="module",(document.head||document.body).appendChild(e)}function R(e){if(document.querySelector(`link[href="${C(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=C(e),(document.head||document.body).appendChild(t)}export{t as ComponentName,a as IntegrationEvent,i as KnownMarkerName,E as MarkerType,r as MediaItemErrorCode,T as Mimetype,d as PlaybackMode,o as PresentationMode,n as ScriptType,C as getIntegrationCssUrl,D as loadIntegrationComponent,R as loadIntegrationStyles};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1302.1",
3
+ "version": "1.1305.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",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@biomejs/biome": "^1.9.4",
32
- "@glomex/integration": "^1.1302.1",
32
+ "@glomex/integration": "^1.1305.0",
33
33
  "@microsoft/api-extractor": "^7.52.1",
34
34
  "@rslib/core": "^0.5.4",
35
35
  "typescript": "^5.8.2"
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "e5a3bf7ff4c0184fecefaad0288458b2ef4e1dbb"
40
+ "gitHead": "acc38129ee0700428d347661b777f53dc9cbe1cc"
41
41
  }