@glomex/integration-web-component 1.1435.0 → 1.1436.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 +46 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -721,6 +721,20 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
721
721
|
* Returns the available text tracks.
|
|
722
722
|
*/
|
|
723
723
|
getTextTracks(): TextTrack_2[];
|
|
724
|
+
/**
|
|
725
|
+
* Returns the available video tracks.
|
|
726
|
+
*/
|
|
727
|
+
getVideoTracks(): VideoTrack[];
|
|
728
|
+
/**
|
|
729
|
+
* Returns the current video track.
|
|
730
|
+
*/
|
|
731
|
+
getCurrentVideoTrack(): VideoTrack | null;
|
|
732
|
+
/**
|
|
733
|
+
* Sets the active video track by video track ID, or switches to automatic ABR mode.
|
|
734
|
+
*
|
|
735
|
+
* @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).
|
|
736
|
+
*/
|
|
737
|
+
setVideoTrackById(videoTrackId: string | null | undefined): void;
|
|
724
738
|
/**
|
|
725
739
|
* Set the text track by Id.
|
|
726
740
|
* @param trackId - The identifier of the text track to activate received from {@link getTextTracks} (see {@link TextTrack.id}).
|
|
@@ -1796,6 +1810,38 @@ export { TextTrackMode_2 as TextTrackMode }
|
|
|
1796
1810
|
|
|
1797
1811
|
export declare type UiAction = (typeof ALLOWED_UI_ACTIONS)[number];
|
|
1798
1812
|
|
|
1813
|
+
/**
|
|
1814
|
+
* Describes a video track (a.k.a. quality/level representation) available in the media source.
|
|
1815
|
+
* Commonly used for adaptive bitrate streaming (HLS/DASH) to switch between different qualities.
|
|
1816
|
+
*/
|
|
1817
|
+
export declare interface VideoTrack {
|
|
1818
|
+
/**
|
|
1819
|
+
* Unique identifier for the track.
|
|
1820
|
+
*/
|
|
1821
|
+
id: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* Whether this track is currently selected (active) for playback.
|
|
1824
|
+
*/
|
|
1825
|
+
active: boolean;
|
|
1826
|
+
/**
|
|
1827
|
+
* Whether this track got selected manually or the player does automatic selection.
|
|
1828
|
+
*/
|
|
1829
|
+
abrMode?: 'auto' | 'manual';
|
|
1830
|
+
/**
|
|
1831
|
+
* Declared bandwidth of the track in bits per second (bps).
|
|
1832
|
+
* Used by ABR to choose the appropriate quality based on network conditions.
|
|
1833
|
+
*/
|
|
1834
|
+
bandwidth: number;
|
|
1835
|
+
/**
|
|
1836
|
+
* The video width in pixels of this variant, if known.
|
|
1837
|
+
*/
|
|
1838
|
+
width?: number;
|
|
1839
|
+
/**
|
|
1840
|
+
* The video height in pixels of this variant, if known.
|
|
1841
|
+
*/
|
|
1842
|
+
height?: number;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1799
1845
|
export { }
|
|
1800
1846
|
|
|
1801
1847
|
declare global {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1436.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.
|
|
35
|
+
"@glomex/integration": "1.1436.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": "
|
|
45
|
+
"gitHead": "9710dd69fdc0c96f0f2d4bdc9211fdf6fae83c94"
|
|
46
46
|
}
|