@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.16 → 1.0.31-beta.18
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
CHANGED
|
@@ -230,6 +230,7 @@ export declare interface CurrentVideoData {
|
|
|
230
230
|
author?: string;
|
|
231
231
|
tags?: string[];
|
|
232
232
|
description?: string;
|
|
233
|
+
nextVideoId?: string;
|
|
233
234
|
}
|
|
234
235
|
|
|
235
236
|
/**
|
|
@@ -262,8 +263,8 @@ export declare interface EventCallbackRefs {
|
|
|
262
263
|
onQuartile25?: () => void;
|
|
263
264
|
onQuartile50?: () => void;
|
|
264
265
|
onQuartile75?: () => void;
|
|
265
|
-
onNext?: () => void;
|
|
266
|
-
onPrevious?: () => void;
|
|
266
|
+
onNext?: (currentTime: number) => void;
|
|
267
|
+
onPrevious?: (currentTime: number) => void;
|
|
267
268
|
onProgress10s?: (seconds: number) => void;
|
|
268
269
|
onProgress20s?: (seconds: number) => void;
|
|
269
270
|
}
|
|
@@ -1131,13 +1132,15 @@ export declare interface VPPlayerProps {
|
|
|
1131
1132
|
*/
|
|
1132
1133
|
onQuartile75?: () => void;
|
|
1133
1134
|
/**
|
|
1134
|
-
* Called when
|
|
1135
|
+
* Called when user clicks the next button (not on auto-advance)
|
|
1136
|
+
* @param currentTime - Current playback position when clicked
|
|
1135
1137
|
*/
|
|
1136
|
-
onNext?: () => void;
|
|
1138
|
+
onNext?: (currentTime: number) => void;
|
|
1137
1139
|
/**
|
|
1138
|
-
* Called when
|
|
1140
|
+
* Called when user clicks the previous button (vertical player only)
|
|
1141
|
+
* @param currentTime - Current playback position when clicked
|
|
1139
1142
|
*/
|
|
1140
|
-
onPrevious?: () => void;
|
|
1143
|
+
onPrevious?: (currentTime: number) => void;
|
|
1141
1144
|
/**
|
|
1142
1145
|
* Called every 10 seconds during playback
|
|
1143
1146
|
* @param seconds - Current playback position in seconds
|