@umituz/react-native-video-editor 1.0.14 → 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.14",
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",
@@ -3,7 +3,7 @@
3
3
  * Main hook for video player control with safe operations
4
4
  */
5
5
 
6
- import { useState, useCallback, useMemo, useEffect } from "react";
6
+ import { useState, useCallback, useMemo } from "react";
7
7
  import { useVideoPlayer as useExpoVideoPlayer } from "expo-video";
8
8
 
9
9
  import type {
@@ -58,31 +58,6 @@ export const useVideoPlayerControl = (
58
58
  }
59
59
  });
60
60
 
61
- // Listen to player status changes and errors
62
- useEffect(() => {
63
- if (!player) return;
64
-
65
- const subscription = player.addListener("statusChange", ({ status, error }) => {
66
- if (typeof __DEV__ !== "undefined" && __DEV__) {
67
- // eslint-disable-next-line no-console
68
- console.log("[useVideoPlayerControl] Status changed:", status, "Error:", error);
69
- }
70
- if (status === "readyToPlay") {
71
- setIsLoading(false);
72
- }
73
- if (error) {
74
- if (typeof __DEV__ !== "undefined" && __DEV__) {
75
- // eslint-disable-next-line no-console
76
- console.error("[useVideoPlayerControl] Player error:", error);
77
- }
78
- }
79
- });
80
-
81
- return () => {
82
- subscription.remove();
83
- };
84
- }, [player]);
85
-
86
61
  const isPlayerValid = useMemo(
87
62
  () => isPlayerReady(player, source),
88
63
  [player, source],