@umituz/react-native-video-editor 1.0.7 → 1.0.8

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.7",
3
+ "version": "1.0.8",
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",
@@ -41,9 +41,9 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
41
41
  });
42
42
 
43
43
  const handlePlay = useCallback(() => {
44
+ console.log("[VideoPlayer] handlePlay called, source:", source);
44
45
  setShowVideo(true);
45
- // Player will auto-configure with autoPlay from hook
46
- }, []);
46
+ }, [source]);
47
47
 
48
48
  const containerStyle = useMemo(() => ({
49
49
  width: "100%" as const,
@@ -93,8 +93,17 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
93
93
  [tokens]
94
94
  );
95
95
 
96
+ // Debug: Log player state
97
+ console.log("[VideoPlayer] state:", {
98
+ showVideo,
99
+ isPlayerValid: state.isPlayerValid,
100
+ hasPlayer: !!player,
101
+ source,
102
+ });
103
+
96
104
  // Show video player when playing
97
105
  if (showVideo && state.isPlayerValid && player) {
106
+ console.log("[VideoPlayer] Rendering VideoView");
98
107
  return (
99
108
  <View style={[containerStyle, style]}>
100
109
  <VideoView