@remotion/player 4.0.504 → 4.0.505
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 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +3 -3
package/dist/cjs/use-player.js
CHANGED
|
@@ -36,7 +36,7 @@ const usePlayer = () => {
|
|
|
36
36
|
? remotion_1.Internals.TimelinePosition.clampFrameToCompositionRange(newFrame, config.durationInFrames)
|
|
37
37
|
: Math.max(0, newFrame);
|
|
38
38
|
if (video === null || video === void 0 ? void 0 : video.id) {
|
|
39
|
-
setTimelinePosition((c) =>
|
|
39
|
+
setTimelinePosition((c) => c[video.id] === frameToSeekTo ? c : { ...c, [video.id]: frameToSeekTo });
|
|
40
40
|
}
|
|
41
41
|
frameRef.current = frameToSeekTo;
|
|
42
42
|
emitter.dispatchSeek(frameToSeekTo);
|
package/dist/esm/index.mjs
CHANGED
|
@@ -596,7 +596,7 @@ var usePlayer = () => {
|
|
|
596
596
|
const seek = useCallback((newFrame) => {
|
|
597
597
|
const frameToSeekTo = config ? Internals4.TimelinePosition.clampFrameToCompositionRange(newFrame, config.durationInFrames) : Math.max(0, newFrame);
|
|
598
598
|
if (video?.id) {
|
|
599
|
-
setTimelinePosition((c) =>
|
|
599
|
+
setTimelinePosition((c) => c[video.id] === frameToSeekTo ? c : { ...c, [video.id]: frameToSeekTo });
|
|
600
600
|
}
|
|
601
601
|
frameRef.current = frameToSeekTo;
|
|
602
602
|
emitter.dispatchSeek(frameToSeekTo);
|
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.505",
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"remotion": "4.0.
|
|
38
|
+
"remotion": "4.0.505"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16.8.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-dom": "19.2.3",
|
|
50
50
|
"webpack": "5.105.0",
|
|
51
51
|
"zod": "4.4.3",
|
|
52
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
52
|
+
"@remotion/eslint-config-internal": "4.0.505",
|
|
53
53
|
"eslint": "9.19.0",
|
|
54
54
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
55
55
|
},
|