@umituz/react-native-video-editor 1.0.19 → 1.0.21

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.19",
3
+ "version": "1.0.21",
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",
@@ -11,16 +11,24 @@ declare const __DEV__: boolean;
11
11
  * Safely play video with error handling
12
12
  */
13
13
  export const safePlay = (player: VideoPlayer | null): boolean => {
14
- console.log("[safePlay] called, player:", !!player);
14
+ if (__DEV__) {
15
+ console.log("[safePlay] called, player:", !!player);
16
+ }
15
17
  if (!player) return false;
16
18
 
17
19
  try {
18
- console.log("[safePlay] calling player.play()");
20
+ if (__DEV__) {
21
+ console.log("[safePlay] calling player.play()");
22
+ }
19
23
  player.play();
20
- console.log("[safePlay] player.play() called successfully");
24
+ if (__DEV__) {
25
+ console.log("[safePlay] player.play() called successfully");
26
+ }
21
27
  return true;
22
28
  } catch (error) {
23
- console.log("[safePlay] Play error:", error);
29
+ if (__DEV__) {
30
+ console.log("[safePlay] Play error:", error);
31
+ }
24
32
  return false;
25
33
  }
26
34
  };