@glomex/integration-web-component 1.1477.0 → 1.1478.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 +47 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1279,7 +1279,7 @@ export declare interface Marker {
|
|
|
1279
1279
|
type: MarkerType;
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Threshold for the marker:
|
|
1282
|
-
* - {@link MarkerType.TIME_IN_SECONDS}: seconds
|
|
1282
|
+
* - {@link MarkerType.TIME_IN_SECONDS}: seconds (use negative values to calculate position from end of content, e.g., -10 means 10 seconds before the end; only valid for VoD content)
|
|
1283
1283
|
* - {@link MarkerType.PERCENT}: percent as fraction (0-1)
|
|
1284
1284
|
* - {@link MarkerType.TIME_IN_SECONDS_RECURRING}: seconds
|
|
1285
1285
|
*/
|
|
@@ -1405,7 +1405,52 @@ export declare interface MediaItem {
|
|
|
1405
1405
|
*/
|
|
1406
1406
|
channel?: Channel;
|
|
1407
1407
|
/**
|
|
1408
|
-
* Markers
|
|
1408
|
+
* Markers control ad breaks and custom time-based events during playback.
|
|
1409
|
+
*
|
|
1410
|
+
* **⚠️ Important:** When providing custom markers, the default PREROLL is **not** added automatically.
|
|
1411
|
+
* You must explicitly include a PREROLL marker if you want ads to play.
|
|
1412
|
+
*
|
|
1413
|
+
* **Reserved marker names:** Only `PREROLL`, `MIDROLL`, and `POSTROLL` from {@link KnownMarkerName}
|
|
1414
|
+
* can be used for ad markers. All other `KnownMarkerName` values are reserved for internal use.
|
|
1415
|
+
* Use custom string names (e.g., `'halfwayPoint'`) for your own markers.
|
|
1416
|
+
*
|
|
1417
|
+
* **Listening for custom markers:** When a custom marker is reached, the player dispatches
|
|
1418
|
+
* an {@link IntegrationEvent.CONTENT_MARKER_REACHED} event. Listen for this event to react
|
|
1419
|
+
* to your custom markers:
|
|
1420
|
+
*
|
|
1421
|
+
* ```js
|
|
1422
|
+
* player.addEventListener('contentmarkerreached', (event) => {
|
|
1423
|
+
* const { markerName, markerData } = event.detail;
|
|
1424
|
+
* if (markerName === 'showEndCreditsOverlay') {
|
|
1425
|
+
* // Show your overlay
|
|
1426
|
+
* }
|
|
1427
|
+
* });
|
|
1428
|
+
* ```
|
|
1429
|
+
*
|
|
1430
|
+
* @example
|
|
1431
|
+
* // Default: pre-roll ads only (same as omitting markers)
|
|
1432
|
+
* markers: [{ name: KnownMarkerName.PREROLL, type: MarkerType.TIME_IN_SECONDS, threshold: 0 }]
|
|
1433
|
+
*
|
|
1434
|
+
* @example
|
|
1435
|
+
* // Pre-roll + mid-roll at 60 seconds
|
|
1436
|
+
* markers: [
|
|
1437
|
+
* { name: KnownMarkerName.PREROLL, type: MarkerType.TIME_IN_SECONDS, threshold: 0 },
|
|
1438
|
+
* { name: KnownMarkerName.MIDROLL, type: MarkerType.TIME_IN_SECONDS, threshold: 60 }
|
|
1439
|
+
* ]
|
|
1440
|
+
*
|
|
1441
|
+
* @example
|
|
1442
|
+
* // Custom marker at 50% of content
|
|
1443
|
+
* markers: [
|
|
1444
|
+
* { name: KnownMarkerName.PREROLL, type: MarkerType.TIME_IN_SECONDS, threshold: 0 },
|
|
1445
|
+
* { name: 'halfwayPoint', type: MarkerType.PERCENT, threshold: 0.5 }
|
|
1446
|
+
* ]
|
|
1447
|
+
*
|
|
1448
|
+
* @example
|
|
1449
|
+
* // Custom marker 15 seconds before end (e.g., for end credits overlay)
|
|
1450
|
+
* markers: [
|
|
1451
|
+
* { name: KnownMarkerName.PREROLL, type: MarkerType.TIME_IN_SECONDS, threshold: 0 },
|
|
1452
|
+
* { name: 'showEndCreditsOverlay', type: MarkerType.TIME_IN_SECONDS, threshold: -15 }
|
|
1453
|
+
* ]
|
|
1409
1454
|
*
|
|
1410
1455
|
* @defaultValue `[{ name: KnownMarkerName.PREROLL, type: MarkerType.TIME_IN_SECONDS, threshold: 0 }]`
|
|
1411
1456
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1478.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.1478.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": "5c4af5f5c3f822a09675e6fb49b3bcc01a93853c"
|
|
46
46
|
}
|