@glomex/integration-web-component 1.1494.0 → 1.1496.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
@@ -73,27 +73,34 @@ declare interface ApiScript {
73
73
  }
74
74
 
75
75
  /**
76
- * Describes an alternative audio track provided by the media source.
76
+ * Represents an audio track.
77
77
  */
78
- export declare interface AudioTrack {
79
- /**
80
- * Unique identifier for the audio track.
81
- * A stable ID based on language, label, and channel count (e.g., "en:English:2").
82
- * This format is consistent across both Shaka and native playback.
83
- */
84
- id: string;
85
- /**
86
- * Human-readable name of the track (e.g., "Deutsch", "English — Commentary").
87
- */
88
- label: string;
89
- /**
90
- * Language of the audio track as a BCP 47 tag (e.g., "en", "de-DE").
91
- */
92
- language: string;
78
+ export declare interface AudioTrack extends MediaTrack {
79
+ /** The type of audio track. */
80
+ kind: 'main' | string;
81
+ }
82
+
83
+ /**
84
+ * A collection of audio tracks with selection support.
85
+ * A selected track is available when track info is exposed; otherwise null.
86
+ *
87
+ * **Note:** Audio tracks are available after the {@link IntegrationElement.ready | integration.ready} promise resolves.
88
+ *
89
+ * The list is iterable and can be converted to an array:
90
+ * @example
91
+ * ```ts
92
+ * for (const track of integration.audioTracks) { console.log(track); }
93
+ * const tracks = Array.from(integration.audioTracks);
94
+ * ```
95
+ */
96
+ export declare interface AudioTrackList extends MediaTrackList<AudioTrack> {
97
+ /** The currently selected audio track, or `null` if unavailable. */
98
+ readonly selected: AudioTrack | null;
93
99
  /**
94
- * Whether this audio track is currently selected for playback.
100
+ * Selects an audio track.
101
+ * @param trackOrId - The track or track ID to select.
95
102
  */
96
- active: boolean;
103
+ select(trackOrId: AudioTrack | string): void;
97
104
  }
98
105
 
99
106
  export declare interface Channel {
@@ -713,56 +720,79 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
713
720
  byUser?: boolean;
714
721
  }): Promise<void>;
715
722
  /**
716
- * Returns the current audio track.
717
- */
718
- getCurrentAudioTrack(): AudioTrack | undefined;
719
- /**
720
- * Returns the available audio tracks.
723
+ * Returns the audio track list.
724
+ * You can use this to listen to audio track changes via `audioTracks.addEventListener('change', ...)`.
725
+ *
726
+ * **Note:** Audio tracks are available after the {@link ready | integration.ready} promise resolves.
727
+ * @example
728
+ * ```ts
729
+ * await integration.ready;
730
+ * for (const track of integration.audioTracks) { console.log(track); }
731
+ * const tracks = Array.from(integration.audioTracks);
732
+ * ```
733
+ *
734
+ * Use the `select()` method to change the active audio track:
735
+ * @example
736
+ * ```ts
737
+ * integration.audioTracks?.select(trackId);
738
+ * ```
721
739
  */
722
- getAudioTracks(): AudioTrack[] | undefined;
740
+ get audioTracks(): AudioTrackList | undefined;
723
741
  /**
724
- * Set the audio track by Id.
725
- * @param trackId - The identifier of the audio track to activate received from {@link getAudioTracks} (see {@link AudioTrack.id}).
742
+ * Returns the text track list.
743
+ * You can use this to listen to text track changes via `textTracks.addEventListener('change', ...)`.
744
+ *
745
+ * **Note:** Text tracks are available after the {@link ready | integration.ready} promise resolves.
746
+ * @example
747
+ * ```ts
748
+ * await integration.ready;
749
+ * for (const track of integration.textTracks) { console.log(track); }
750
+ * const tracks = Array.from(integration.textTracks);
751
+ * ```
752
+ *
753
+ * Use the `select()` method to change the active text track, or pass `undefined` to disable:
754
+ * @example
755
+ * ```ts
756
+ * integration.textTracks?.select(trackId);
757
+ * integration.textTracks?.select(undefined); // disable text tracks
758
+ * ```
726
759
  */
727
- setAudioTrackById(trackId: string): void;
760
+ get textTracks(): TextTrackList_2 | undefined;
728
761
  /**
729
- * Returns the current text track.
762
+ * Returns the video track list.
763
+ * You can use this to listen to video track changes via `videoTracks.addEventListener('change', ...)`.
764
+ *
765
+ * **Note:** Video tracks are available after the {@link ready | integration.ready} promise resolves.
766
+ * @example
767
+ * ```ts
768
+ * await integration.ready;
769
+ * for (const track of integration.videoTracks) { console.log(track); }
770
+ * const tracks = Array.from(integration.videoTracks);
771
+ * ```
772
+ *
773
+ * Use the `select()` method to change the active video track, or pass `'auto'` for automatic quality selection:
774
+ * @example
775
+ * ```ts
776
+ * integration.videoTracks?.select(trackId);
777
+ * integration.videoTracks?.select('auto'); // enable ABR
778
+ * ```
730
779
  */
731
- getCurrentTextTrack(): {
732
- id: string;
733
- kind: TextTrackKind;
734
- label: string;
735
- src: string;
736
- language: string;
737
- mode: "showing";
738
- } | null;
780
+ get videoTracks(): VideoTrackList | undefined;
739
781
  /**
740
- * Returns the available text tracks.
782
+ * Returns the current audio track.
783
+ * @deprecated Use {@link audioTracks} getter instead: `integration.audioTracks?.selected`
741
784
  */
742
- getTextTracks(): TextTrack_2[];
785
+ getCurrentAudioTrack(): AudioTrack | null;
743
786
  /**
744
- * Returns the available video tracks.
787
+ * Returns the current text track.
788
+ * @deprecated Use {@link textTracks} getter instead: `integration.textTracks?.selected`
745
789
  */
746
- getVideoTracks(): VideoTrack[];
790
+ getCurrentTextTrack(): TextTrack_2 | null;
747
791
  /**
748
792
  * Returns the current video track.
793
+ * @deprecated Use {@link videoTracks} getter instead: `integration.videoTracks?.selected`
749
794
  */
750
- getCurrentVideoTrack(): VideoTrack | null;
751
- /**
752
- * Sets the active video track by video track ID, or switches to automatic ABR mode.
753
- *
754
- * @param videoTrackId - The ID of the video track id to activate received from {@link getVideoTracks} (see {@link VideoTrack.id}). Pass `null` or `undefined` to enable automatic adaptive bitrate selection (ABR).
755
- */
756
- setVideoTrackById(videoTrackId: string | null | undefined): void;
757
- /**
758
- * Set the text track by Id.
759
- * @param trackId - The identifier of the text track to activate received from {@link getTextTracks} (see {@link TextTrack.id}).
760
- */
761
- setTextTrackById(trackId: string): void;
762
- /**
763
- * Disable any active text track.
764
- */
765
- disableTextTrack(): void;
795
+ getCurrentVideoTrack(): VideoTrack | null | undefined;
766
796
  }
767
797
 
768
798
  /**
@@ -877,11 +907,6 @@ export declare interface IntegrationElementEventMap {
877
907
  markerName: string;
878
908
  markerData: unknown;
879
909
  }>;
880
- /**
881
- * @inheritdoc IntegrationEvent.CONTENT_QUALITY_CHANGED
882
- * @eventProperty
883
- */
884
- [IntegrationEvent.CONTENT_QUALITY_CHANGED]: CustomEvent<void>;
885
910
  /**
886
911
  * @inheritdoc IntegrationEvent.CONTENT_TIME_UPDATE
887
912
  * @eventProperty
@@ -1093,11 +1118,6 @@ export declare enum IntegrationEvent {
1093
1118
  * @eventProperty
1094
1119
  */
1095
1120
  CONTENT_MARKER_REACHED = "contentmarkerreached",
1096
- /**
1097
- * When the content's quality changes.
1098
- * @eventProperty
1099
- */
1100
- CONTENT_QUALITY_CHANGED = "contentqualitychanged",
1101
1121
  /**
1102
1122
  * When the content's time updates. This is equal to {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/timeupdate_event HTMLMediaElement.timeupdate}.
1103
1123
  * See {@link IntegrationElement#currentTime} to get the current time.
@@ -1362,7 +1382,7 @@ export declare interface MediaItem {
1362
1382
  * Array of text tracks for subtitles, captions, etc.
1363
1383
  * These tracks apply to the whole media item, not to individual sources.
1364
1384
  */
1365
- textTracks?: TextTrack_2[];
1385
+ textTracks?: MediaItemTextTrack[];
1366
1386
  /**
1367
1387
  * Title of the media item.
1368
1388
  */
@@ -1712,6 +1732,37 @@ export declare enum MediaItemProvider {
1712
1732
  EXTERNAL = "external"
1713
1733
  }
1714
1734
 
1735
+ /**
1736
+ * Text track definition for a media item.
1737
+ * Based on {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement | HTMLTrackElement}.
1738
+ */
1739
+ export declare interface MediaItemTextTrack {
1740
+ /**
1741
+ * Unique identifier for the track.
1742
+ */
1743
+ id?: string;
1744
+ /**
1745
+ * The kind of text track.
1746
+ */
1747
+ kind: 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
1748
+ /**
1749
+ * URL of the track file (e.g., WebVTT file).
1750
+ */
1751
+ src: string;
1752
+ /**
1753
+ * Language of the track text data (BCP 47 language tag).
1754
+ */
1755
+ srclang: string;
1756
+ /**
1757
+ * Human-readable title of the track.
1758
+ */
1759
+ label: string;
1760
+ /**
1761
+ * Whether the track should be enabled by default.
1762
+ */
1763
+ default?: boolean;
1764
+ }
1765
+
1715
1766
  /**
1716
1767
  * Network error when a request fails due to connectivity issues.
1717
1768
  * Shaka Player network errors have codes in the 1000-1999 range
@@ -1826,6 +1877,45 @@ export declare interface MediaSourceJoyn {
1826
1877
  forceObserveTermination?: boolean;
1827
1878
  }
1828
1879
 
1880
+ /**
1881
+ * Base interface for all media track types.
1882
+ * Provides common properties shared by audio, video, and text tracks.
1883
+ */
1884
+ declare interface MediaTrack {
1885
+ /** Unique identifier for the track. */
1886
+ id: string;
1887
+ /** The type or category of the track. */
1888
+ kind: string;
1889
+ /** Human-readable label for the track. */
1890
+ label: string;
1891
+ /** BCP 47 language tag (e.g., "en", "de", "es"). */
1892
+ language: string;
1893
+ }
1894
+
1895
+ /**
1896
+ * Base interface for track list collections.
1897
+ * Extends EventTarget to support track change events and is iterable.
1898
+ *
1899
+ * @typeParam T - The specific track type this list contains.
1900
+ */
1901
+ declare interface MediaTrackList<T extends MediaTrack> extends EventTarget, Iterable<T> {
1902
+ /** The number of tracks in the list. */
1903
+ readonly length: number;
1904
+ /**
1905
+ * Returns the track with the specified ID.
1906
+ * @param id - The track ID to search for.
1907
+ * @returns The matching track, or `null` if not found.
1908
+ */
1909
+ getTrackById(id: string): T | null;
1910
+ /**
1911
+ * Adds an event listener for track list changes.
1912
+ * @param type - The event type: `'trackschange'` (track list changed) or `'change'` (selection changed).
1913
+ * @param listener - The callback function.
1914
+ * @param options - Optional event listener options.
1915
+ */
1916
+ addEventListener(type: 'trackschange' | 'change', listener: EventListener, options?: boolean | AddEventListenerOptions): void;
1917
+ }
1918
+
1829
1919
  export declare enum Mimetype {
1830
1920
  HLS = "application/vnd.apple.mpegurl",
1831
1921
  HLS_LEGACY = "application/x-mpegURL",
@@ -1922,81 +2012,105 @@ export declare enum StartMethod {
1922
2012
  }
1923
2013
 
1924
2014
  /**
1925
- * Describes a timed text track (e.g., subtitles, captions, chapters, or metadata)
1926
- * associated with a media element.
2015
+ * Represents a text track (subtitles, captions, etc.).
1927
2016
  */
1928
- declare interface TextTrack_2 {
2017
+ declare interface TextTrack_2 extends MediaTrack {
2018
+ /** The type of text track. */
2019
+ kind: 'subtitles' | 'captions' | 'descriptions' | 'chapters';
1929
2020
  /**
1930
- * Unique identifier for the track.
2021
+ * The current display mode of the track.
2022
+ * - `'disabled'`: Track is not active.
2023
+ * - `'hidden'`: Track is active but not displayed (for programmatic access).
2024
+ * - `'showing'`: Track is active and displayed to the user.
1931
2025
  */
1932
- id: string;
1933
- /**
1934
- * The kind of text track.
1935
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/kind}
1936
- */
1937
- kind: TextTrackKind;
1938
- /**
1939
- * The URL of the track file.
1940
- */
1941
- src?: string;
1942
- /**
1943
- * The language of the track text data.
1944
- * Must be a valid BCP 47 language tag.
1945
- */
1946
- language: string;
1947
- /**
1948
- * The title of the text track.
1949
- */
1950
- label: string;
1951
- /**
1952
- * Whether the track should be enabled by default.
1953
- * Only one track per kind can be enabled by default.
1954
- */
1955
- mode: TextTrackMode_2;
2026
+ mode: 'disabled' | 'hidden' | 'showing';
1956
2027
  }
1957
2028
  export { TextTrack_2 as TextTrack }
1958
2029
 
1959
2030
  /**
1960
- * Text track display mode.
1961
- * - 'disabled': The track is inactive; cues are not processed or shown.
1962
- * - 'hidden': The track is active but cues are not visibly rendered (useful for metadata).
1963
- * - 'showing': The track is active and cues are rendered to the viewer.
2031
+ * A collection of text tracks with selection support.
2032
+ * Text tracks can be deselected by passing `undefined` to `select()`.
2033
+ *
2034
+ * **Note:** Text tracks are available after the {@link IntegrationElement.ready | integration.ready} promise resolves.
2035
+ *
2036
+ * The list is iterable and can be converted to an array:
2037
+ * @example
2038
+ * ```ts
2039
+ * for (const track of integration.textTracks) { console.log(track); }
2040
+ * const tracks = Array.from(integration.textTracks);
2041
+ * ```
1964
2042
  */
1965
- declare type TextTrackMode_2 = 'disabled' | 'hidden' | 'showing';
1966
- export { TextTrackMode_2 as TextTrackMode }
2043
+ declare interface TextTrackList_2 extends MediaTrackList<TextTrack_2> {
2044
+ /** The currently selected text track, or `null` if none is selected. */
2045
+ readonly selected: TextTrack_2 | null;
2046
+ /**
2047
+ * Selects a text track or disables text tracks.
2048
+ * @param trackOrId - The track, track ID, or `undefined` to disable all text tracks.
2049
+ */
2050
+ select(trackOrId: TextTrack_2 | string | undefined): void;
2051
+ }
2052
+ export { TextTrackList_2 as TextTrackList }
1967
2053
 
1968
2054
  export declare type UiAction = (typeof ALLOWED_UI_ACTIONS)[number];
1969
2055
 
1970
2056
  /**
1971
- * Describes a video track (a.k.a. quality/level representation) available in the media source.
1972
- * Commonly used for adaptive bitrate streaming (HLS/DASH) to switch between different qualities.
2057
+ * Represents a video track (quality variant).
1973
2058
  */
1974
2059
  export declare interface VideoTrack {
1975
- /**
1976
- * Unique identifier for the track.
1977
- */
2060
+ /** Unique identifier for the track. */
1978
2061
  id: string;
1979
2062
  /**
1980
- * Whether this track is currently selected (active) for playback.
1981
- */
1982
- active: boolean;
1983
- /**
1984
- * Whether this track got selected manually or the player does automatic selection.
2063
+ * The type of video track.
2064
+ * - `'variant'`: A specific quality level.
2065
+ * - `'auto'`: Synthetic track representing automatic quality selection (ABR).
1985
2066
  */
1986
- abrMode?: 'auto' | 'manual';
2067
+ kind: 'variant' | 'auto';
2068
+ /** Human-readable label (e.g., "1080p (6.2 Mbps)"). */
2069
+ label: string;
2070
+ /** Bitrate in bits per second. */
2071
+ bandwidth: number;
2072
+ /** Video width in pixels. */
2073
+ width?: number;
2074
+ /** Video height in pixels. */
2075
+ height?: number;
2076
+ }
2077
+
2078
+ /**
2079
+ * A collection of video tracks with selection support.
2080
+ * May be empty or only synthetic when native track info is unavailable.
2081
+ *
2082
+ * **Note:** Video tracks are available after the {@link IntegrationElement.ready | integration.ready} promise resolves.
2083
+ *
2084
+ * The list is iterable and can be converted to an array:
2085
+ * @example
2086
+ * ```ts
2087
+ * for (const track of integration.videoTracks) { console.log(track); }
2088
+ * const tracks = Array.from(integration.videoTracks);
2089
+ * ```
2090
+ */
2091
+ export declare interface VideoTrackList extends EventTarget, Iterable<VideoTrack> {
2092
+ /** The number of tracks in the list. */
2093
+ readonly length: number;
1987
2094
  /**
1988
- * Declared bandwidth of the track in bits per second (bps).
1989
- * Used by ABR to choose the appropriate quality based on network conditions.
2095
+ * Returns the track with the specified ID.
2096
+ * @param id - The track ID to search for.
2097
+ * @returns The matching track, or `null` if not found.
1990
2098
  */
1991
- bandwidth: number;
2099
+ getTrackById(id: string): VideoTrack | null;
2100
+ /** The currently selected video track, or `null` if unavailable. */
2101
+ readonly selected: VideoTrack | null;
1992
2102
  /**
1993
- * The video width in pixels of this variant, if known.
2103
+ * Selects a video track or enables automatic quality selection.
2104
+ * @param trackOrId - The track, track ID, or `'auto'` for ABR.
1994
2105
  */
1995
- width?: number;
2106
+ select(trackOrId: VideoTrack | string): void;
1996
2107
  /**
1997
- * The video height in pixels of this variant, if known.
2108
+ * Adds an event listener for track list changes.
2109
+ * @param type - The event type: `'trackschange'` (track list changed) or `'change'` (selection changed).
2110
+ * @param listener - The callback function.
2111
+ * @param options - Optional event listener options.
1998
2112
  */
1999
- height?: number;
2113
+ addEventListener(type: 'trackschange' | 'change', listener: EventListener, options?: boolean | AddEventListenerOptions): void;
2000
2114
  }
2001
2115
 
2002
2116
  export { }
package/dist/index.js CHANGED
@@ -1 +1 @@
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",(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_QUALITY_CHANGED="contentqualitychanged",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",(d=M||(M={})).TIME_IN_SECONDS="time",d.PERCENT="percent",d.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",(R=U||(U={})).NOT_FOUND="NotFound",R.NOT_AVAILABLE="NotAvailable",R.GEOBLOCKED="Geoblocked",R.YOUTH_PROTECTED="YouthProtected",R.TERMINATED="Terminated",R.LOGIN_REQUIRED="LoginRequired",R.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",R.VPN_DETECTED="VpnDetected",R.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",R.PIN_REQUIRED="PinRequired",R.INVALID_PIN="InvalidPin",R.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 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 _,I,N,A,l,d,s,R,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,T as loadIntegrationStyles,k as INTERNAL_PREFIX,x as PUBLIC_PREFIX};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1494.0",
3
+ "version": "1.1496.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.1494.0",
35
+ "@glomex/integration": "1.1496.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": "d99f046f561314b48edf455643674afee4cf19e2"
45
+ "gitHead": "3f3392a585874a118283838aaa6a6fb641537095"
46
46
  }