@glomex/integration-web-component 1.1491.1 → 1.1493.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -4
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -3,11 +3,11 @@
3
3
  export declare interface Ad {
4
4
  sessionId: string;
5
5
  id: string;
6
- isLinear: boolean;
6
+ adFormat: AdFormat;
7
7
  duration?: number;
8
8
  positionIndex: number;
9
9
  breakIndex: number;
10
- breakName: string;
10
+ breakName: AdBreakName;
11
11
  mimetype: string;
12
12
  totalAds: number;
13
13
  adUrl?: string;
@@ -27,12 +27,18 @@ export declare interface Ad {
27
27
  clickThroughUrl?: string;
28
28
  }
29
29
 
30
+ /** Name of ad break - when the ad appears, `overlay` is deprecated */
31
+ export declare type AdBreakName = 'preroll' | 'midroll' | 'postroll' | 'overlay';
32
+
30
33
  export declare class AdError extends Error {
31
34
  code: string;
32
35
  name: string;
33
36
  constructor(message: string, code: string);
34
37
  }
35
38
 
39
+ /** Format of the ad - how it is presented */
40
+ export declare type AdFormat = 'linear' | 'overlay' | 'cutin' | 'pause';
41
+
36
42
  export declare const ALLOWED_UI_ACTIONS: readonly ["play", "pause", "openEpg", "startAgeSetup", "forgotPin"];
37
43
 
38
44
  /**
@@ -71,9 +77,11 @@ declare interface ApiScript {
71
77
  */
72
78
  export declare interface AudioTrack {
73
79
  /**
74
- * Unique identifier for the audio track. Typically provided by the media/source pipeline.
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.
75
83
  */
76
- id: number;
84
+ id: string;
77
85
  /**
78
86
  * Human-readable name of the track (e.g., "Deutsch", "English — Commentary").
79
87
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1491.1",
3
+ "version": "1.1493.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.1491.1",
35
+ "@glomex/integration": "1.1493.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": "0ee451a9a2632ad8da824592a923adaaec1c3ec7"
45
+ "gitHead": "4ba5d9ff3071dbc6e629fcaa426cc2c711ad9b9e"
46
46
  }