@mottosports/motto-video-player 1.0.1-rc.79 → 1.0.1-rc.80
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.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +318 -399
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +308 -389
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -167,6 +167,14 @@ interface PlayerEvents {
|
|
|
167
167
|
* Callback when live state changes
|
|
168
168
|
*/
|
|
169
169
|
onLiveStateChange?: (isLive: boolean) => void;
|
|
170
|
+
/**
|
|
171
|
+
* Callback when live status changes (includes edge proximity)
|
|
172
|
+
*/
|
|
173
|
+
onLiveStatusChange?: (status: {
|
|
174
|
+
isLive: boolean;
|
|
175
|
+
isNearEdge: boolean;
|
|
176
|
+
liveEdge?: number;
|
|
177
|
+
}) => void;
|
|
170
178
|
}
|
|
171
179
|
/**
|
|
172
180
|
* Seekbar color configuration
|
|
@@ -343,6 +351,10 @@ interface PlayerProps extends Omit<HTMLAttributes<HTMLVideoElement>, 'src' | 'on
|
|
|
343
351
|
*/
|
|
344
352
|
locale?: string;
|
|
345
353
|
containerClassName?: string;
|
|
354
|
+
/**
|
|
355
|
+
* Threshold in seconds to consider "near live edge" for live streams (default: 15)
|
|
356
|
+
*/
|
|
357
|
+
liveThresholdSeconds?: number;
|
|
346
358
|
/**
|
|
347
359
|
* Motto public key used for authenticated requests
|
|
348
360
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -167,6 +167,14 @@ interface PlayerEvents {
|
|
|
167
167
|
* Callback when live state changes
|
|
168
168
|
*/
|
|
169
169
|
onLiveStateChange?: (isLive: boolean) => void;
|
|
170
|
+
/**
|
|
171
|
+
* Callback when live status changes (includes edge proximity)
|
|
172
|
+
*/
|
|
173
|
+
onLiveStatusChange?: (status: {
|
|
174
|
+
isLive: boolean;
|
|
175
|
+
isNearEdge: boolean;
|
|
176
|
+
liveEdge?: number;
|
|
177
|
+
}) => void;
|
|
170
178
|
}
|
|
171
179
|
/**
|
|
172
180
|
* Seekbar color configuration
|
|
@@ -343,6 +351,10 @@ interface PlayerProps extends Omit<HTMLAttributes<HTMLVideoElement>, 'src' | 'on
|
|
|
343
351
|
*/
|
|
344
352
|
locale?: string;
|
|
345
353
|
containerClassName?: string;
|
|
354
|
+
/**
|
|
355
|
+
* Threshold in seconds to consider "near live edge" for live streams (default: 15)
|
|
356
|
+
*/
|
|
357
|
+
liveThresholdSeconds?: number;
|
|
346
358
|
/**
|
|
347
359
|
* Motto public key used for authenticated requests
|
|
348
360
|
*/
|