@glomex/integration-web-component 1.1399.1 → 1.1400.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 +9 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -474,6 +474,11 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
474
474
|
passback?: (payload: {
|
|
475
475
|
reason: string;
|
|
476
476
|
}) => void;
|
|
477
|
+
/**
|
|
478
|
+
* Resolves when the integration API is available (e.g. setting volume, play, pause, etc.).
|
|
479
|
+
* Alternatively to `element.addEventListener(IntegrationEvent.READY, () => {...})`
|
|
480
|
+
*/
|
|
481
|
+
ready: Promise<void>;
|
|
477
482
|
/**
|
|
478
483
|
* Initiates playback of the media content.
|
|
479
484
|
* @param options.startMethod - The method used to start playback (defaults to CLICK)
|
|
@@ -489,10 +494,6 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
489
494
|
* Snapshots current video frame. Requires {@link crossorigin} to be set to `anonymous`.
|
|
490
495
|
*/
|
|
491
496
|
getCurrentVideoFrame(): Promise<ImageBitmap>;
|
|
492
|
-
/**
|
|
493
|
-
* Returns the current playback time (in seconds) of the media.
|
|
494
|
-
*/
|
|
495
|
-
get currentTime(): number;
|
|
496
497
|
/**
|
|
497
498
|
* Returns the current session ID.
|
|
498
499
|
*/
|
|
@@ -501,6 +502,10 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
|
|
|
501
502
|
* Returns the current wall clock time (UNIX timestamp in seconds). Useful for livestreams.
|
|
502
503
|
*/
|
|
503
504
|
get wallClockTime(): number;
|
|
505
|
+
/**
|
|
506
|
+
* Returns the current playback time (in seconds) of the media.
|
|
507
|
+
*/
|
|
508
|
+
get currentTime(): number;
|
|
504
509
|
/**
|
|
505
510
|
* Seeks the media to the specified time, updating the current playback time.
|
|
506
511
|
* @param time - The time (in seconds) to seek to.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1400.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",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "^1.9.4",
|
|
33
|
-
"@glomex/integration": "^1.
|
|
33
|
+
"@glomex/integration": "^1.1400.0",
|
|
34
34
|
"@microsoft/api-extractor": "^7.52.10",
|
|
35
35
|
"@rslib/core": "^0.11.2",
|
|
36
36
|
"typescript": "^5.8.3"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "833e3dbaaa5e159d3ef7605d46a4c7d486cdc21d"
|
|
43
43
|
}
|