@remotion/player 4.0.227 → 4.0.228
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/PlayerUI.js
CHANGED
|
@@ -419,7 +419,7 @@ const PlayerUI = ({ controls, style, loop, autoPlay, allowFullscreen, inputProps
|
|
|
419
419
|
showPosterWhenBuffering && showBufferIndicator && player.isPlaying(),
|
|
420
420
|
].some(Boolean);
|
|
421
421
|
const { left, top, width, height, ...outerWithoutScale } = outer;
|
|
422
|
-
const content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: outer, onPointerDown: clickToPlay ? handlePointerDown : undefined, onDoubleClick: doubleClickToFullscreen ? handleDoubleClick : undefined, children: (0, jsx_runtime_1.jsxs)("div", { style: containerStyle, className: player_css_classname_js_1.PLAYER_CSS_CLASSNAME, children: [VideoComponent ? ((0, jsx_runtime_1.jsx)(error_boundary_js_1.ErrorBoundary, { onError: onError, errorFallback: errorFallback, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.
|
|
422
|
+
const content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: outer, onPointerDown: clickToPlay ? handlePointerDown : undefined, onDoubleClick: doubleClickToFullscreen ? handleDoubleClick : undefined, children: (0, jsx_runtime_1.jsxs)("div", { style: containerStyle, className: player_css_classname_js_1.PLAYER_CSS_CLASSNAME, children: [VideoComponent ? ((0, jsx_runtime_1.jsx)(error_boundary_js_1.ErrorBoundary, { onError: onError, errorFallback: errorFallback, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.CurrentScaleContext.Provider, { value: currentScale, children: (0, jsx_runtime_1.jsx)(VideoComponent, { ...((_c = video === null || video === void 0 ? void 0 : video.props) !== null && _c !== void 0 ? _c : {}), ...(inputProps !== null && inputProps !== void 0 ? inputProps : {}) }) }) })) : null, shouldShowPoster && posterFillMode === 'composition-size' ? ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
423
423
|
...outerWithoutScale,
|
|
424
424
|
width: config.width,
|
|
425
425
|
height: config.height,
|
|
@@ -55,6 +55,6 @@ const SharedPlayerContexts = ({ children, timelineContext, fps, compositionHeigh
|
|
|
55
55
|
setMediaVolume: setMediaVolumeAndPersist,
|
|
56
56
|
};
|
|
57
57
|
}, [setMediaVolumeAndPersist]);
|
|
58
|
-
return ((0, jsx_runtime_1.jsx)(remotion_1.Internals.CanUseRemotionHooksProvider, { children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.Timeline.TimelineContext.Provider, { value: timelineContext, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.CompositionManager.Provider, { value: compositionManagerContext, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.ResolveCompositionConfig, { children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.PrefetchProvider, { children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.DurationsContextProvider, { children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.MediaVolumeContext.Provider, { value: mediaVolumeContextValue, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.
|
|
58
|
+
return ((0, jsx_runtime_1.jsx)(remotion_1.Internals.CanUseRemotionHooksProvider, { children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.Timeline.TimelineContext.Provider, { value: timelineContext, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.CompositionManager.Provider, { value: compositionManagerContext, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.ResolveCompositionConfig, { children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.PrefetchProvider, { children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.DurationsContextProvider, { children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.MediaVolumeContext.Provider, { value: mediaVolumeContextValue, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.SetMediaVolumeContext.Provider, { value: setMediaVolumeContextValue, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.SharedAudioContextProvider, { numberOfAudioTags: numberOfSharedAudioTags, component: component, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.BufferingProvider, { children: children }) }) }) }) }) }) }) }) }) }));
|
|
59
59
|
};
|
|
60
60
|
exports.SharedPlayerContexts = SharedPlayerContexts;
|
|
@@ -49,6 +49,6 @@ export declare const calculateOuter: ({ layout, scale, config, overflowVisible,
|
|
|
49
49
|
readonly position: "absolute";
|
|
50
50
|
readonly left: number;
|
|
51
51
|
readonly top: number;
|
|
52
|
-
readonly overflow: "
|
|
52
|
+
readonly overflow: "visible" | "hidden";
|
|
53
53
|
};
|
|
54
54
|
export {};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2611,13 +2611,11 @@ var PlayerUI = ({
|
|
|
2611
2611
|
VideoComponent ? /* @__PURE__ */ jsx11(ErrorBoundary, {
|
|
2612
2612
|
onError,
|
|
2613
2613
|
errorFallback,
|
|
2614
|
-
children: /* @__PURE__ */ jsx11(Internals10.
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
...inputProps ?? {}
|
|
2620
|
-
})
|
|
2614
|
+
children: /* @__PURE__ */ jsx11(Internals10.CurrentScaleContext.Provider, {
|
|
2615
|
+
value: currentScale,
|
|
2616
|
+
children: /* @__PURE__ */ jsx11(VideoComponent, {
|
|
2617
|
+
...video?.props ?? {},
|
|
2618
|
+
...inputProps ?? {}
|
|
2621
2619
|
})
|
|
2622
2620
|
})
|
|
2623
2621
|
}) : null,
|
|
@@ -2804,15 +2802,13 @@ var SharedPlayerContexts = ({
|
|
|
2804
2802
|
children: /* @__PURE__ */ jsx12(Internals11.DurationsContextProvider, {
|
|
2805
2803
|
children: /* @__PURE__ */ jsx12(Internals11.MediaVolumeContext.Provider, {
|
|
2806
2804
|
value: mediaVolumeContextValue,
|
|
2807
|
-
children: /* @__PURE__ */ jsx12(Internals11.
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
children
|
|
2814
|
-
children
|
|
2815
|
-
})
|
|
2805
|
+
children: /* @__PURE__ */ jsx12(Internals11.SetMediaVolumeContext.Provider, {
|
|
2806
|
+
value: setMediaVolumeContextValue,
|
|
2807
|
+
children: /* @__PURE__ */ jsx12(Internals11.SharedAudioContextProvider, {
|
|
2808
|
+
numberOfAudioTags: numberOfSharedAudioTags,
|
|
2809
|
+
component,
|
|
2810
|
+
children: /* @__PURE__ */ jsx12(Internals11.BufferingProvider, {
|
|
2811
|
+
children
|
|
2816
2812
|
})
|
|
2817
2813
|
})
|
|
2818
2814
|
})
|
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.228",
|
|
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.228"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=16.8.0",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"csstype": "^3.1.1",
|
|
41
41
|
"react": "18.3.1",
|
|
42
42
|
"react-dom": "18.3.1",
|
|
43
|
-
"webpack": "5.
|
|
43
|
+
"webpack": "5.96.1",
|
|
44
44
|
"zod": "3.22.3",
|
|
45
45
|
"eslint": "9.14.0",
|
|
46
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.228"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|