@umituz/react-native-video-editor 1.0.12 → 1.0.13

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.12",
3
+ "version": "1.0.13",
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",
@@ -128,12 +128,20 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
128
128
  hasPlayer: !!player,
129
129
  source,
130
130
  });
131
+ // eslint-disable-next-line no-console
132
+ console.log("[VideoPlayer] dimensions:", {
133
+ screenWidth,
134
+ horizontalPadding,
135
+ videoWidth,
136
+ videoHeight,
137
+ styleWidth: getWidthFromStyle(style as ViewStyle),
138
+ });
131
139
  }
132
140
 
133
141
  if (showVideo && state.isPlayerValid && player) {
134
142
  if (typeof __DEV__ !== "undefined" && __DEV__) {
135
143
  // eslint-disable-next-line no-console
136
- console.log("[VideoPlayer] Rendering VideoView");
144
+ console.log("[VideoPlayer] Rendering VideoView with dimensions:", { videoWidth, videoHeight });
137
145
  }
138
146
  return (
139
147
  <View style={[containerStyle, style]}>
@@ -39,6 +39,15 @@ export const useVideoPlayerControl = (
39
39
  if (autoPlay) {
40
40
  setIsPlaying(true);
41
41
  }
42
+ // Log player status for debugging
43
+ console.log("[useVideoPlayerControl] Player status:", {
44
+ currentTime: p.currentTime,
45
+ duration: p.duration,
46
+ status: p.status,
47
+ playing: p.playing,
48
+ muted: p.muted,
49
+ volume: p.volume,
50
+ });
42
51
  }
43
52
  });
44
53