@remotion/player 4.0.498 → 4.0.500
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/Player.js +1 -3
- package/dist/cjs/Thumbnail.js +1 -3
- package/dist/esm/index.mjs +3 -7
- package/package.json +4 -4
package/dist/cjs/Player.js
CHANGED
|
@@ -50,7 +50,6 @@ const PlayerFn = ({ durationInFrames, compositionHeight, compositionWidth, fps,
|
|
|
50
50
|
[SharedPlayerContext_js_1.PLAYER_COMP_ID]: initialFrame !== null && initialFrame !== void 0 ? initialFrame : 0,
|
|
51
51
|
}));
|
|
52
52
|
const [playing, setPlaying] = (0, react_1.useState)(false);
|
|
53
|
-
const [rootId] = (0, react_1.useState)('player-comp');
|
|
54
53
|
const rootRef = (0, react_1.useRef)(null);
|
|
55
54
|
const audioAndVideoTags = (0, react_1.useRef)([]);
|
|
56
55
|
const imperativePlaying = (0, react_1.useRef)(false);
|
|
@@ -144,11 +143,10 @@ const PlayerFn = ({ durationInFrames, compositionHeight, compositionWidth, fps,
|
|
|
144
143
|
return {
|
|
145
144
|
frame,
|
|
146
145
|
playing,
|
|
147
|
-
rootId,
|
|
148
146
|
imperativePlaying,
|
|
149
147
|
audioAndVideoTags,
|
|
150
148
|
};
|
|
151
|
-
}, [frame, playing
|
|
149
|
+
}, [frame, playing]);
|
|
152
150
|
const playbackRateContextValue = (0, react_1.useMemo)(() => {
|
|
153
151
|
return {
|
|
154
152
|
playbackRate: currentPlaybackRate,
|
package/dist/cjs/Thumbnail.js
CHANGED
|
@@ -18,7 +18,6 @@ const ThumbnailFn = ({ frameToDisplay, style, inputProps, compositionHeight, com
|
|
|
18
18
|
window.remotion_isPlayer = true;
|
|
19
19
|
}, []);
|
|
20
20
|
}
|
|
21
|
-
const [thumbnailId] = (0, react_1.useState)(() => String((0, remotion_1.random)(null)));
|
|
22
21
|
const rootRef = (0, react_1.useRef)(null);
|
|
23
22
|
const timelineState = (0, react_1.useMemo)(() => {
|
|
24
23
|
const value = {
|
|
@@ -26,14 +25,13 @@ const ThumbnailFn = ({ frameToDisplay, style, inputProps, compositionHeight, com
|
|
|
26
25
|
frame: {
|
|
27
26
|
[SharedPlayerContext_js_1.PLAYER_COMP_ID]: frameToDisplay,
|
|
28
27
|
},
|
|
29
|
-
rootId: thumbnailId,
|
|
30
28
|
imperativePlaying: {
|
|
31
29
|
current: false,
|
|
32
30
|
},
|
|
33
31
|
audioAndVideoTags: { current: [] },
|
|
34
32
|
};
|
|
35
33
|
return value;
|
|
36
|
-
}, [frameToDisplay
|
|
34
|
+
}, [frameToDisplay]);
|
|
37
35
|
const playbackRateContext = (0, react_1.useMemo)(() => {
|
|
38
36
|
return {
|
|
39
37
|
playbackRate: 1,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -3389,7 +3389,6 @@ var PlayerFn = ({
|
|
|
3389
3389
|
[PLAYER_COMP_ID]: initialFrame ?? 0
|
|
3390
3390
|
}));
|
|
3391
3391
|
const [playing, setPlaying] = useState13(false);
|
|
3392
|
-
const [rootId] = useState13("player-comp");
|
|
3393
3392
|
const rootRef = useRef12(null);
|
|
3394
3393
|
const audioAndVideoTags = useRef12([]);
|
|
3395
3394
|
const imperativePlaying = useRef12(false);
|
|
@@ -3466,11 +3465,10 @@ var PlayerFn = ({
|
|
|
3466
3465
|
return {
|
|
3467
3466
|
frame,
|
|
3468
3467
|
playing,
|
|
3469
|
-
rootId,
|
|
3470
3468
|
imperativePlaying,
|
|
3471
3469
|
audioAndVideoTags
|
|
3472
3470
|
};
|
|
3473
|
-
}, [frame, playing
|
|
3471
|
+
}, [frame, playing]);
|
|
3474
3472
|
const playbackRateContextValue = useMemo14(() => {
|
|
3475
3473
|
return {
|
|
3476
3474
|
playbackRate: currentPlaybackRate,
|
|
@@ -3573,7 +3571,7 @@ import {
|
|
|
3573
3571
|
useRef as useRef14,
|
|
3574
3572
|
useState as useState14
|
|
3575
3573
|
} from "react";
|
|
3576
|
-
import { Internals as Internals17
|
|
3574
|
+
import { Internals as Internals17 } from "remotion";
|
|
3577
3575
|
|
|
3578
3576
|
// src/ThumbnailUI.tsx
|
|
3579
3577
|
import React13, {
|
|
@@ -3748,7 +3746,6 @@ var ThumbnailFn = ({
|
|
|
3748
3746
|
window.remotion_isPlayer = true;
|
|
3749
3747
|
}, []);
|
|
3750
3748
|
}
|
|
3751
|
-
const [thumbnailId] = useState14(() => String(random2(null)));
|
|
3752
3749
|
const rootRef = useRef14(null);
|
|
3753
3750
|
const timelineState = useMemo17(() => {
|
|
3754
3751
|
const value = {
|
|
@@ -3756,14 +3753,13 @@ var ThumbnailFn = ({
|
|
|
3756
3753
|
frame: {
|
|
3757
3754
|
[PLAYER_COMP_ID]: frameToDisplay
|
|
3758
3755
|
},
|
|
3759
|
-
rootId: thumbnailId,
|
|
3760
3756
|
imperativePlaying: {
|
|
3761
3757
|
current: false
|
|
3762
3758
|
},
|
|
3763
3759
|
audioAndVideoTags: { current: [] }
|
|
3764
3760
|
};
|
|
3765
3761
|
return value;
|
|
3766
|
-
}, [frameToDisplay
|
|
3762
|
+
}, [frameToDisplay]);
|
|
3767
3763
|
const playbackRateContext = useMemo17(() => {
|
|
3768
3764
|
return {
|
|
3769
3765
|
playbackRate: 1,
|
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.500",
|
|
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.500"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16.8.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"react": "19.2.3",
|
|
49
49
|
"react-dom": "19.2.3",
|
|
50
50
|
"webpack": "5.105.0",
|
|
51
|
-
"zod": "4.3
|
|
52
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
51
|
+
"zod": "4.4.3",
|
|
52
|
+
"@remotion/eslint-config-internal": "4.0.500",
|
|
53
53
|
"eslint": "9.19.0",
|
|
54
54
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
55
55
|
},
|