@umituz/react-native-video-editor 1.0.13 → 1.0.16
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-video-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "Professional video editor with layer-based timeline, text/image/shape/audio/animation layers, and export functionality",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -20,6 +20,8 @@ import {
|
|
|
20
20
|
configurePlayer,
|
|
21
21
|
} from "../../infrastructure/services/player-control.service";
|
|
22
22
|
|
|
23
|
+
declare const __DEV__: boolean;
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
* Hook for managing video player with safe operations
|
|
25
27
|
*/
|
|
@@ -32,22 +34,27 @@ export const useVideoPlayerControl = (
|
|
|
32
34
|
const [isLoading, setIsLoading] = useState(true);
|
|
33
35
|
|
|
34
36
|
const player = useExpoVideoPlayer(source || "", (p) => {
|
|
35
|
-
|
|
37
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
38
|
+
// eslint-disable-next-line no-console
|
|
39
|
+
console.log("[useVideoPlayerControl] Player callback, source:", source, "player:", !!p);
|
|
40
|
+
}
|
|
36
41
|
if (source && p) {
|
|
37
42
|
configurePlayer(p, { loop, muted, autoPlay });
|
|
38
43
|
setIsLoading(false);
|
|
39
44
|
if (autoPlay) {
|
|
40
45
|
setIsPlaying(true);
|
|
41
46
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
48
|
+
// eslint-disable-next-line no-console
|
|
49
|
+
console.log("[useVideoPlayerControl] Player status:", {
|
|
50
|
+
currentTime: p.currentTime,
|
|
51
|
+
duration: p.duration,
|
|
52
|
+
status: p.status,
|
|
53
|
+
playing: p.playing,
|
|
54
|
+
muted: p.muted,
|
|
55
|
+
volume: p.volume,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
51
58
|
}
|
|
52
59
|
});
|
|
53
60
|
|