@glomex/integration-web-component 1.1425.0 → 1.1427.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
@@ -60,6 +60,28 @@ declare interface ApiScript {
60
60
  }[];
61
61
  }
62
62
 
63
+ /**
64
+ * Describes an alternative audio track provided by the media source.
65
+ */
66
+ export declare interface AudioTrack {
67
+ /**
68
+ * Unique identifier for the audio track. Typically provided by the media/source pipeline.
69
+ */
70
+ id: number;
71
+ /**
72
+ * Human-readable name of the track (e.g., "Deutsch", "English — Commentary").
73
+ */
74
+ label: string;
75
+ /**
76
+ * Language of the audio track as a BCP 47 tag (e.g., "en", "de-DE").
77
+ */
78
+ language: string;
79
+ /**
80
+ * Whether this audio track is currently selected for playback.
81
+ */
82
+ active: boolean;
83
+ }
84
+
63
85
  export declare interface Channel {
64
86
  /** Name of the channel */
65
87
  name: string;
@@ -671,6 +693,43 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
671
693
  exitCurrentPresentationMode({ byUser }?: {
672
694
  byUser?: boolean;
673
695
  }): Promise<void>;
696
+ /**
697
+ * Returns the current audio track.
698
+ */
699
+ getCurrentAudioTrack(): AudioTrack | undefined;
700
+ /**
701
+ * Returns the available audio tracks.
702
+ */
703
+ getAudioTracks(): AudioTrack[] | undefined;
704
+ /**
705
+ * Set the audio track by Id.
706
+ * @param trackId - The identifier of the audio track to activate received from {@link getAudioTracks} (see {@link AudioTrack.id}).
707
+ */
708
+ setAudioTrackById(trackId: string): void;
709
+ /**
710
+ * Returns the current text track.
711
+ */
712
+ getCurrentTextTrack(): {
713
+ id: string;
714
+ kind: TextTrackKind;
715
+ label: string;
716
+ src: string;
717
+ language: string;
718
+ mode: "showing";
719
+ } | null;
720
+ /**
721
+ * Returns the available text tracks.
722
+ */
723
+ getTextTracks(): TextTrack_2[];
724
+ /**
725
+ * Set the text track by Id.
726
+ * @param trackId - The identifier of the text track to activate received from {@link getTextTracks} (see {@link TextTrack.id}).
727
+ */
728
+ setTextTrackById(trackId: string): void;
729
+ /**
730
+ * Disable any active text track.
731
+ */
732
+ disableTextTrack(): void;
674
733
  }
675
734
 
676
735
  /**
@@ -1658,6 +1717,10 @@ export declare enum StartMethod {
1658
1717
  AUTOPLAY_NEXT = "autoplay-next"
1659
1718
  }
1660
1719
 
1720
+ /**
1721
+ * Describes a timed text track (e.g., subtitles, captions, chapters, or metadata)
1722
+ * associated with a media element.
1723
+ */
1661
1724
  declare interface TextTrack_2 {
1662
1725
  /**
1663
1726
  * Unique identifier for the track.
@@ -1671,12 +1734,12 @@ declare interface TextTrack_2 {
1671
1734
  /**
1672
1735
  * The URL of the track file.
1673
1736
  */
1674
- src: string;
1737
+ src?: string;
1675
1738
  /**
1676
1739
  * The language of the track text data.
1677
1740
  * Must be a valid BCP 47 language tag.
1678
1741
  */
1679
- srclang: string;
1742
+ language: string;
1680
1743
  /**
1681
1744
  * The title of the text track.
1682
1745
  */
@@ -1684,12 +1747,20 @@ declare interface TextTrack_2 {
1684
1747
  /**
1685
1748
  * Whether the track should be enabled by default.
1686
1749
  * Only one track per kind can be enabled by default.
1687
- * @defaultValue false
1688
1750
  */
1689
- default?: boolean;
1751
+ mode: TextTrackMode_2;
1690
1752
  }
1691
1753
  export { TextTrack_2 as TextTrack }
1692
1754
 
1755
+ /**
1756
+ * Text track display mode.
1757
+ * - 'disabled': The track is inactive; cues are not processed or shown.
1758
+ * - 'hidden': The track is active but cues are not visibly rendered (useful for metadata).
1759
+ * - 'showing': The track is active and cues are rendered to the viewer.
1760
+ */
1761
+ declare type TextTrackMode_2 = 'disabled' | 'hidden' | 'showing';
1762
+ export { TextTrackMode_2 as TextTrackMode }
1763
+
1693
1764
  export declare type UiAction = (typeof ALLOWED_UI_ACTIONS)[number];
1694
1765
 
1695
1766
  export { }
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var e,t,n,a,o,E,i,T,r,_,N,l,I,s,A,c,d,p,O,R,m,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",(s=t||(t={})).INTEGRATION="glomex-integration",s.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",s.GLOMEX_MEDIA_ITEM="glomex-media-item",(A=n||(n={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",A.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json";let D="glomex",S="turbo",M=`${S}-player`;(c=a||(a={})).HIDDEN="hidden",c.INLINE="inline",c.DOCK="dock",c.LIGHTBOX="lightbox",c.LIGHTBOX_EXTERNAL="lightbox-external",c.FULLSCREEN="fullscreen",c.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_LOADED="adloaded",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",(R=T||(T={})).NOT_FOUND="NotFound",R.NOT_AVAILABLE="NotAvailable",R.GEOBLOCKED="Geoblocked",R.YOUTH_PROTECTED="YouthProtected",R.TERMINATED="Terminated",R.GENERIC="Generic",(m=r||(r={})).HLS="application/vnd.apple.mpegurl",m.HLS_LEGACY="application/x-mpegURL",m.DASH="application/dash+xml",m.MP4="video/mp4",m.OGG="video/ogg",m.WEBM="video/webm",m.MP3="audio/mp3",m.AAC="audio/aac",m.WAV="audio/wav",m.OGG_AUDIO="audio/ogg",m.MPEG_AUDIO="audio/mpeg",m.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",m.JOYN="application/x-joyn-source",(C=_||(_={})).LIVE="live",C.VOD="vod",C.INTERACTIVE="interactive",C.EMBED="embed",(L=N||(N={})).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 P=["play","pause","openEpg"],g="player.glomex.com",U=`https://${g}/integration/1/integration.js`;function y(e){return`https://${g}/variant/${e}/variant.css`}function G(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${U}');`,e.type="module",(document.head||document.body).appendChild(e)}function b(e){if(document.querySelector(`link[href="${y(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=y(e),(document.head||document.body).appendChild(t)}export{P as ALLOWED_UI_ACTIONS,t as ComponentName,l as ContentStopReason,M as EXTERNAL_PLAYER_NAME,S as INTERNAL_PREFIX,o as IntegrationEvent,i as KnownMarkerName,E as MarkerType,T as MediaItemErrorCode,r as Mimetype,e as Origin,D as PUBLIC_PREFIX,_ as PlaybackMode,a as PresentationMode,n as ScriptType,N as StartMethod,y as getIntegrationCssUrl,G as loadIntegrationComponent,b as loadIntegrationStyles};
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.1425.0",
3
+ "version": "1.1427.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.1425.0",
35
+ "@glomex/integration": "^1.1427.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": "842edafa2416822afa16fb2fa257221a67793a77"
45
+ "gitHead": "f3fd65cd5534c276091eeb2ab631d7ec532e49e1"
46
46
  }