@glomex/integration-web-component 1.1342.1 → 1.1343.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/build/index.d.ts +36 -0
  2. package/package.json +3 -3
package/build/index.d.ts CHANGED
@@ -1003,6 +1003,11 @@ export declare interface MediaItem {
1003
1003
  * Sources of the media item.
1004
1004
  */
1005
1005
  sources: MediaSource_2[];
1006
+ /**
1007
+ * Array of text tracks for subtitles, captions, etc.
1008
+ * These tracks apply to the whole media item, not to individual sources.
1009
+ */
1010
+ textTracks?: TextTrack_2[];
1006
1011
  /**
1007
1012
  * Title of the media item.
1008
1013
  */
@@ -1384,6 +1389,37 @@ export declare enum ScriptType {
1384
1389
  EXTERNAL_MEDIA_ITEM = "application/glomex-external-media-item+json"
1385
1390
  }
1386
1391
 
1392
+ declare interface TextTrack_2 {
1393
+ /**
1394
+ * Unique identifier for the track.
1395
+ */
1396
+ id: string;
1397
+ /**
1398
+ * The kind of text track.
1399
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/kind}
1400
+ */
1401
+ kind: TextTrackKind;
1402
+ /**
1403
+ * The URL of the track file.
1404
+ */
1405
+ src: string;
1406
+ /**
1407
+ * The language of the track text data.
1408
+ * Must be a valid BCP 47 language tag.
1409
+ */
1410
+ srclang: string;
1411
+ /**
1412
+ * The title of the text track.
1413
+ */
1414
+ label: string;
1415
+ /**
1416
+ * Whether the track should be enabled by default.
1417
+ * Only one track per kind can be enabled by default.
1418
+ * @defaultValue false
1419
+ */
1420
+ default?: boolean;
1421
+ }
1422
+
1387
1423
  export { }
1388
1424
 
1389
1425
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1342.1",
3
+ "version": "1.1343.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",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@biomejs/biome": "^1.9.4",
32
- "@glomex/integration": "^1.1342.1",
32
+ "@glomex/integration": "^1.1343.0",
33
33
  "@microsoft/api-extractor": "^7.52.8",
34
34
  "@rslib/core": "^0.8.0",
35
35
  "typescript": "^5.8.3"
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "775321e5eb56033f71e45f999572625bbc26734e"
40
+ "gitHead": "04428f8a75c655be6a938d4e460839923534e268"
41
41
  }