@glomex/integration-web-component 1.1502.0 → 1.1503.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
@@ -580,6 +580,15 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
580
580
  * @param value - The volume level to be set (0-1).
581
581
  */
582
582
  set volume(value: number);
583
+ /**
584
+ * Returns the current playback speed.
585
+ */
586
+ get playbackRate(): number;
587
+ /**
588
+ * Sets the playback speed.
589
+ * @param value - The playback speed to be set (e.g. 0.5, 1, 1.5, 2).
590
+ */
591
+ set playbackRate(value: number);
583
592
  /**
584
593
  * Returns `true` if the media playback is currently paused; otherwise, returns `false`.
585
594
  */
@@ -874,6 +883,11 @@ export declare interface IntegrationElementEventMap {
874
883
  * @eventProperty
875
884
  */
876
885
  [IntegrationEvent.CONTENT_VOLUME_CHANGE]: CustomEvent<void> | HTMLElementEventMap['volumechange'];
886
+ /**
887
+ * @inheritdoc IntegrationEvent.CONTENT_RATECHANGE
888
+ * @eventProperty
889
+ */
890
+ [IntegrationEvent.CONTENT_RATECHANGE]: CustomEvent<void> | HTMLElementEventMap['ratechange'];
877
891
  /**
878
892
  * @inheritdoc IntegrationEvent.CONTENT_ENDED
879
893
  * @eventProperty
@@ -1088,6 +1102,12 @@ export declare enum IntegrationEvent {
1088
1102
  * @eventProperty
1089
1103
  */
1090
1104
  CONTENT_VOLUME_CHANGE = "volumechange",
1105
+ /**
1106
+ * When the content playback rate changes. This is equal to {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/ratechange_event HTMLMediaElement.ratechange}.
1107
+ * See {@link IntegrationElement#playbackRate} to get the current playback rate.
1108
+ * @eventProperty
1109
+ */
1110
+ CONTENT_RATECHANGE = "ratechange",
1091
1111
  /**
1092
1112
  * When the content reached its end. This is equal to {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/ended_event HTMLMediaElement.ended}.
1093
1113
  * See {@link IntegrationElement#ended} to check if the content ended.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (T=m||(m={})).DEFAULT="turbo-integration",T.SCRIPT="turbo-script",T.IFRAME="turbo-iframe",T.FULLPAGE="turbo-fullpage",T.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",T.AMP_IFRAME="turbo-amp-iframe",(I=D||(D={})).INTEGRATION="glomex-integration",I.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",I.GLOMEX_MEDIA_ITEM="glomex-media-item",(N=u||(u={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",N.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json";let e="turbo",t=`${e}-player`,n=`${e}DebugPlayerConfig`;(A=P||(P={})).HIDDEN="hidden",A.INLINE="inline",A.DOCK="dock",A.LIGHTBOX="lightbox",A.LIGHTBOX_EXTERNAL="lightbox-external",A.FULLSCREEN="fullscreen",A.AMP_DOCK="amp-dock",(l=S||(S={})).READY="ready",l.INTEGRATION_ABORT="integrationabort",l.INTEGRATION_AD_AVAILABLE="integrationadavailable",l.INTEGRATION_PASSBACK="integrationpassback",l.USER_UPDATE_CONSENT="userupdateconsent",l.PLAYLIST_UPDATE="playlistupdate",l.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",l.CONTENT_SELECT="contentselect",l.CONTENT_START="contentstart",l.CONTENT_IMPRESSION="contentimpression",l.CONTENT_BUFFERING_START="contentbufferingstart",l.CONTENT_BUFFERING_END="contentbufferingend",l.CONTENT_STOP="contentstop",l.CONTENT_ERROR="contenterror",l.CONTENT_MARKER_REACHED="contentmarkerreached",l.CONTENT_TIME_UPDATE="timeupdate",l.CONTENT_SEEKING="seeking",l.CONTENT_SEEKED="seeked",l.CONTENT_PLAY="play",l.CONTENT_PAUSE="pause",l.CONTENT_VOLUME_CHANGE="volumechange",l.CONTENT_ENDED="ended",l.AD_BREAK_REQUEST="adbreakrequest",l.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",l.AD_LOADED="adloaded",l.AD_IMPRESSION="adimpression",l.AD_BUFFERING_START="adbufferingstart",l.AD_BUFFERING_END="adbufferingend",l.AD_TIME_UPDATE="adtimeupdate",l.AD_VOLUME_CHANGE="advolumechange",l.AD_PAUSED="adpaused",l.AD_RESUMED="adresumed",l.AD_CLICK="adclick",l.AD_SKIPPED="adskipped",l.AD_COMPLETE="adcomplete",l.AD_ERROR="aderror",l.UI_INTERACTION="uiinteraction",(s=M||(M={})).TIME_IN_SECONDS="time",s.PERCENT="percent",s.TIME_IN_SECONDS_RECURRING="timeRecurring",(R=g||(g={})).PREROLL="preroll",R.MIDROLL="midroll",R.POSTROLL="postroll",R.FIRST_QUARTILE="contentFirstQuartile",R.MIDPOINT="contentMidpoint",R.THIRD_QUARTILE="contentThirdQuartile",R.COMPLETE="contentComplete",R.STILL_INTERESTING="stillInteresting",R.REQUEST_RECOMMENDATIONS="requestRecommendations",(d=U||(U={})).NOT_FOUND="NotFound",d.NOT_AVAILABLE="NotAvailable",d.GEOBLOCKED="Geoblocked",d.YOUTH_PROTECTED="YouthProtected",d.TERMINATED="Terminated",d.LOGIN_REQUIRED="LoginRequired",d.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",d.VPN_DETECTED="VpnDetected",d.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",d.PIN_REQUIRED="PinRequired",d.INVALID_PIN="InvalidPin",d.GENERIC="Generic",(c=G||(G={})).GLOMEX="glomex",c.JOYN="joyn",c.EXTERNAL="external",(p=y||(y={})).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",(O=b||(b={})).LIVE="live",O.VOD="vod",O.INTERACTIVE="interactive",O.EMBED="embed",(C=F||(F={})).PRE_CLICK="pre-click-to-play",C.CLICK="click-to-play",C.AUTOPLAY_SCROLL="autoplay-scroll",C.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",C.CLICK_NEXT="click-to-play-next",C.CLICK_REPLAY="click-to-play-replay",C.AUTOPLAY_NEXT="autoplay-next",(L=f||(f={})).CLEAR_PLAYLIST="clearPlaylist",L.SELECT_PLAYLIST_ITEM="selectPlaylistItem",L.ENDED="ended",L.CONTENT_ERROR="contentError",L.API_STOP="apiStop",L.LIVESTREAM_STOP="livestreamStop",L.PAGE_HIDE="pageHide",L.BEFORE_UNLOAD="beforeUnload";let E=["play","pause","openEpg","startAgeSetup","forgotPin"],a="player.glomex.com",o=`https://${a}/integration/1/integration.js`;function i(e){return`https://${a}/variant/${e}/variant.css`}function r(){if(window.customElements.get(D.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${o}');`,e.type="module",(document.head||document.body).appendChild(e)}function _(e){if(document.querySelector(`link[href="${i(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=i(e),(document.head||document.body).appendChild(t)}var T,I,N,A,l,s,R,d,c,p,O,C,L,m,D,u,P,S,M,g,U,G,y,b,F,f,k="turbo",x="glomex";export{E as ALLOWED_UI_ACTIONS,D as ComponentName,f as ContentStopReason,n as DEBUG_CONFIG_STORAGE_KEY,t as EXTERNAL_PLAYER_NAME,S as IntegrationEvent,g as KnownMarkerName,M as MarkerType,U as MediaItemErrorCode,G as MediaItemProvider,y as Mimetype,m as Origin,b as PlaybackMode,P as PresentationMode,u as ScriptType,F as StartMethod,i as getIntegrationCssUrl,r as loadIntegrationComponent,_ as loadIntegrationStyles,k as INTERNAL_PREFIX,x as PUBLIC_PREFIX};
1
+ (_=m||(m={})).DEFAULT="turbo-integration",_.SCRIPT="turbo-script",_.IFRAME="turbo-iframe",_.FULLPAGE="turbo-fullpage",_.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",_.AMP_IFRAME="turbo-amp-iframe",(N=D||(D={})).INTEGRATION="glomex-integration",N.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",N.GLOMEX_MEDIA_ITEM="glomex-media-item",(I=u||(u={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",I.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json";let e="turbo",t=`${e}-player`,E=`${e}DebugPlayerConfig`;(A=P||(P={})).HIDDEN="hidden",A.INLINE="inline",A.DOCK="dock",A.LIGHTBOX="lightbox",A.LIGHTBOX_EXTERNAL="lightbox-external",A.FULLSCREEN="fullscreen",A.AMP_DOCK="amp-dock",(l=S||(S={})).READY="ready",l.INTEGRATION_ABORT="integrationabort",l.INTEGRATION_AD_AVAILABLE="integrationadavailable",l.INTEGRATION_PASSBACK="integrationpassback",l.USER_UPDATE_CONSENT="userupdateconsent",l.PLAYLIST_UPDATE="playlistupdate",l.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",l.CONTENT_SELECT="contentselect",l.CONTENT_START="contentstart",l.CONTENT_IMPRESSION="contentimpression",l.CONTENT_BUFFERING_START="contentbufferingstart",l.CONTENT_BUFFERING_END="contentbufferingend",l.CONTENT_STOP="contentstop",l.CONTENT_ERROR="contenterror",l.CONTENT_MARKER_REACHED="contentmarkerreached",l.CONTENT_TIME_UPDATE="timeupdate",l.CONTENT_SEEKING="seeking",l.CONTENT_SEEKED="seeked",l.CONTENT_PLAY="play",l.CONTENT_PAUSE="pause",l.CONTENT_VOLUME_CHANGE="volumechange",l.CONTENT_RATECHANGE="ratechange",l.CONTENT_ENDED="ended",l.AD_BREAK_REQUEST="adbreakrequest",l.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",l.AD_LOADED="adloaded",l.AD_IMPRESSION="adimpression",l.AD_BUFFERING_START="adbufferingstart",l.AD_BUFFERING_END="adbufferingend",l.AD_TIME_UPDATE="adtimeupdate",l.AD_VOLUME_CHANGE="advolumechange",l.AD_PAUSED="adpaused",l.AD_RESUMED="adresumed",l.AD_CLICK="adclick",l.AD_SKIPPED="adskipped",l.AD_COMPLETE="adcomplete",l.AD_ERROR="aderror",l.UI_INTERACTION="uiinteraction",(R=M||(M={})).TIME_IN_SECONDS="time",R.PERCENT="percent",R.TIME_IN_SECONDS_RECURRING="timeRecurring",(s=g||(g={})).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",(d=U||(U={})).NOT_FOUND="NotFound",d.NOT_AVAILABLE="NotAvailable",d.GEOBLOCKED="Geoblocked",d.YOUTH_PROTECTED="YouthProtected",d.TERMINATED="Terminated",d.LOGIN_REQUIRED="LoginRequired",d.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",d.VPN_DETECTED="VpnDetected",d.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",d.PIN_REQUIRED="PinRequired",d.INVALID_PIN="InvalidPin",d.GENERIC="Generic",(c=G||(G={})).GLOMEX="glomex",c.JOYN="joyn",c.EXTERNAL="external",(p=y||(y={})).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",(O=b||(b={})).LIVE="live",O.VOD="vod",O.INTERACTIVE="interactive",O.EMBED="embed",(C=F||(F={})).PRE_CLICK="pre-click-to-play",C.CLICK="click-to-play",C.AUTOPLAY_SCROLL="autoplay-scroll",C.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",C.CLICK_NEXT="click-to-play-next",C.CLICK_REPLAY="click-to-play-replay",C.AUTOPLAY_NEXT="autoplay-next",(L=f||(f={})).CLEAR_PLAYLIST="clearPlaylist",L.SELECT_PLAYLIST_ITEM="selectPlaylistItem",L.ENDED="ended",L.CONTENT_ERROR="contentError",L.API_STOP="apiStop",L.LIVESTREAM_STOP="livestreamStop",L.PAGE_HIDE="pageHide",L.BEFORE_UNLOAD="beforeUnload";let n=["play","pause","openEpg","startAgeSetup","forgotPin"],a="player.glomex.com",o=`https://${a}/integration/1/integration.js`;function i(e){return`https://${a}/variant/${e}/variant.css`}function r(){if(window.customElements.get(D.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${o}');`,e.type="module",(document.head||document.body).appendChild(e)}function T(e){if(document.querySelector(`link[href="${i(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=i(e),(document.head||document.body).appendChild(t)}var _,N,I,A,l,R,s,d,c,p,O,C,L,m,D,u,P,S,M,g,U,G,y,b,F,f,k="turbo",x="glomex";export{n as ALLOWED_UI_ACTIONS,D as ComponentName,f as ContentStopReason,E as DEBUG_CONFIG_STORAGE_KEY,t as EXTERNAL_PLAYER_NAME,S as IntegrationEvent,g as KnownMarkerName,M as MarkerType,U as MediaItemErrorCode,G as MediaItemProvider,y as Mimetype,m as Origin,b as PlaybackMode,P as PresentationMode,u as ScriptType,F as StartMethod,i as getIntegrationCssUrl,r as loadIntegrationComponent,T as loadIntegrationStyles,k as INTERNAL_PREFIX,x as PUBLIC_PREFIX};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1502.0",
3
+ "version": "1.1503.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.1502.0",
35
+ "@glomex/integration": "1.1503.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": "b689f691072eab1eff23cb7c387218fec7d37bcf"
45
+ "gitHead": "058d07c4bc5429f9d51dd69f6a797960036dfabf"
46
46
  }