@remotion/player 4.0.321 → 4.0.322
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/dist/cjs/use-player.js +1 -5
- package/dist/esm/index.mjs +1 -4
- package/package.json +3 -3
package/dist/cjs/use-player.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.usePlayer = void 0;
|
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const remotion_1 = require("remotion");
|
|
6
6
|
const emitter_context_js_1 = require("./emitter-context.js");
|
|
7
|
-
const use_frame_imperative_js_1 = require("./use-frame-imperative.js");
|
|
8
7
|
const usePlayer = () => {
|
|
9
8
|
var _a;
|
|
10
9
|
const [playing, setPlaying, imperativePlaying] = remotion_1.Internals.Timeline.usePlayingState();
|
|
@@ -136,7 +135,6 @@ const usePlayer = () => {
|
|
|
136
135
|
};
|
|
137
136
|
});
|
|
138
137
|
}, [videoId, imperativePlaying, lastFrame, setFrame]);
|
|
139
|
-
const getCurrentFrame = (0, use_frame_imperative_js_1.useFrameImperative)();
|
|
140
138
|
const toggle = (0, react_1.useCallback)((e) => {
|
|
141
139
|
if (imperativePlaying.current) {
|
|
142
140
|
pause();
|
|
@@ -156,12 +154,11 @@ const usePlayer = () => {
|
|
|
156
154
|
pause,
|
|
157
155
|
seek,
|
|
158
156
|
isFirstFrame,
|
|
159
|
-
getCurrentFrame,
|
|
157
|
+
getCurrentFrame: () => frameRef.current,
|
|
160
158
|
isPlaying: () => imperativePlaying.current,
|
|
161
159
|
isBuffering: () => buffering.current,
|
|
162
160
|
pauseAndReturnToPlayStart,
|
|
163
161
|
hasPlayed,
|
|
164
|
-
remotionInternal_currentFrameRef: frameRef,
|
|
165
162
|
toggle,
|
|
166
163
|
};
|
|
167
164
|
}, [
|
|
@@ -169,7 +166,6 @@ const usePlayer = () => {
|
|
|
169
166
|
emitter,
|
|
170
167
|
frameBack,
|
|
171
168
|
frameForward,
|
|
172
|
-
getCurrentFrame,
|
|
173
169
|
hasPlayed,
|
|
174
170
|
imperativePlaying,
|
|
175
171
|
isFirstFrame,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -661,7 +661,6 @@ var usePlayer = () => {
|
|
|
661
661
|
};
|
|
662
662
|
});
|
|
663
663
|
}, [videoId, imperativePlaying, lastFrame, setFrame]);
|
|
664
|
-
const getCurrentFrame = useFrameImperative();
|
|
665
664
|
const toggle = useCallback2((e) => {
|
|
666
665
|
if (imperativePlaying.current) {
|
|
667
666
|
pause();
|
|
@@ -680,12 +679,11 @@ var usePlayer = () => {
|
|
|
680
679
|
pause,
|
|
681
680
|
seek,
|
|
682
681
|
isFirstFrame,
|
|
683
|
-
getCurrentFrame,
|
|
682
|
+
getCurrentFrame: () => frameRef.current,
|
|
684
683
|
isPlaying: () => imperativePlaying.current,
|
|
685
684
|
isBuffering: () => buffering.current,
|
|
686
685
|
pauseAndReturnToPlayStart,
|
|
687
686
|
hasPlayed,
|
|
688
|
-
remotionInternal_currentFrameRef: frameRef,
|
|
689
687
|
toggle
|
|
690
688
|
};
|
|
691
689
|
}, [
|
|
@@ -693,7 +691,6 @@ var usePlayer = () => {
|
|
|
693
691
|
emitter,
|
|
694
692
|
frameBack,
|
|
695
693
|
frameForward,
|
|
696
|
-
getCurrentFrame,
|
|
697
694
|
hasPlayed,
|
|
698
695
|
imperativePlaying,
|
|
699
696
|
isFirstFrame,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/player"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/player",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.322",
|
|
7
7
|
"description": "React component for embedding a Remotion preview into your app",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"remotion": "4.0.
|
|
31
|
+
"remotion": "4.0.322"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=16.8.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"webpack": "5.96.1",
|
|
44
44
|
"zod": "3.22.3",
|
|
45
45
|
"eslint": "9.19.0",
|
|
46
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.322"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|