@remotion/player 4.0.243 → 4.0.245
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.d.ts
CHANGED
|
@@ -58,11 +58,4 @@ export type PlayerProps<Schema extends AnyZodObject, Props extends Record<string
|
|
|
58
58
|
} & CompProps<Props> & PropsIfHasProps<Schema, Props>;
|
|
59
59
|
export type PlayerPropsWithoutZod<Props extends Record<string, unknown>> = PlayerProps<AnyZodObject, Props>;
|
|
60
60
|
export declare const componentOrNullIfLazy: <Props>(props: CompProps<Props>) => ComponentType<Props> | null;
|
|
61
|
-
/**
|
|
62
|
-
* @description Creates and renders a customizable video player with various interactive controls for a React application.
|
|
63
|
-
* @see [Documentation](https://remotion.dev/docs/player/player)
|
|
64
|
-
* @param {PlayerProps<Schema, Props>} props The properties for configuring the player, including video specifics and UI controls.
|
|
65
|
-
* @param {MutableRefObject<PlayerRef>} ref Reference to the player for controlling playback, volume, and other aspects.
|
|
66
|
-
* @returns {JSX.Element} The rendered video player component.
|
|
67
|
-
*/
|
|
68
61
|
export declare const Player: <Schema extends AnyZodObject, Props extends Record<string, unknown>>(props: PlayerProps<Schema, Props> & React.RefAttributes<PlayerRef>) => React.ReactElement | null;
|
package/dist/cjs/Player.js
CHANGED
|
@@ -148,11 +148,8 @@ const PlayerFn = ({ durationInFrames, compositionHeight, compositionWidth, fps,
|
|
|
148
148
|
: Boolean(controls), showVolumeControls: Boolean(showVolumeControls), doubleClickToFullscreen: Boolean(doubleClickToFullscreen), spaceKeyToPlayOrPause: Boolean(spaceKeyToPlayOrPause), playbackRate: currentPlaybackRate, className: className !== null && className !== void 0 ? className : undefined, showPosterWhenUnplayed: Boolean(showPosterWhenUnplayed), showPosterWhenEnded: Boolean(showPosterWhenEnded), showPosterWhenPaused: Boolean(showPosterWhenPaused), showPosterWhenBuffering: Boolean(showPosterWhenBuffering), renderPoster: renderPoster, inFrame: inFrame !== null && inFrame !== void 0 ? inFrame : null, outFrame: outFrame !== null && outFrame !== void 0 ? outFrame : null, initiallyShowControls: initiallyShowControls !== null && initiallyShowControls !== void 0 ? initiallyShowControls : true, renderFullscreen: renderFullscreenButton !== null && renderFullscreenButton !== void 0 ? renderFullscreenButton : null, renderPlayPauseButton: renderPlayPauseButton !== null && renderPlayPauseButton !== void 0 ? renderPlayPauseButton : null, renderMuteButton: renderMuteButton !== null && renderMuteButton !== void 0 ? renderMuteButton : null, renderVolumeSlider: renderVolumeSlider !== null && renderVolumeSlider !== void 0 ? renderVolumeSlider : null, alwaysShowControls: alwaysShowControls, showPlaybackRateControl: showPlaybackRateControl, bufferStateDelayInMilliseconds: bufferStateDelayInMilliseconds !== null && bufferStateDelayInMilliseconds !== void 0 ? bufferStateDelayInMilliseconds : 300, hideControlsWhenPointerDoesntMove: hideControlsWhenPointerDoesntMove, overflowVisible: overflowVisible, browserMediaControlsBehavior: browserMediaControlsBehavior, overrideInternalClassName: overrideInternalClassName !== null && overrideInternalClassName !== void 0 ? overrideInternalClassName : undefined }) }) }) }) }));
|
|
149
149
|
};
|
|
150
150
|
const forward = react_1.forwardRef;
|
|
151
|
-
|
|
152
|
-
* @description
|
|
153
|
-
* @see [Documentation](https://remotion.dev/docs/player/player)
|
|
154
|
-
* @param {PlayerProps<Schema, Props>} props The properties for configuring the player, including video specifics and UI controls.
|
|
155
|
-
* @param {MutableRefObject<PlayerRef>} ref Reference to the player for controlling playback, volume, and other aspects.
|
|
156
|
-
* @returns {JSX.Element} The rendered video player component.
|
|
151
|
+
/*
|
|
152
|
+
* @description A component which can be rendered in a regular React App to display a Remotion video.
|
|
153
|
+
* @see [Documentation](https://www.remotion.dev/docs/player/player)
|
|
157
154
|
*/
|
|
158
155
|
exports.Player = forward(PlayerFn);
|
package/dist/cjs/Thumbnail.d.ts
CHANGED
|
@@ -18,8 +18,4 @@ export type ThumbnailProps<Schema extends AnyZodObject, Props extends Record<str
|
|
|
18
18
|
readonly overrideInternalClassName?: string;
|
|
19
19
|
};
|
|
20
20
|
export type ThumbnailPropsWithoutZod<Props extends Record<string, unknown>> = ThumbnailProps<AnyZodObject, Props>;
|
|
21
|
-
/**
|
|
22
|
-
* @description A component which can be rendered in a regular React App (for example: Next.js, Vite) to display a single frame of a video.
|
|
23
|
-
* @see [Documentation](https://www.remotion.dev/docs/player/thumbnail)
|
|
24
|
-
*/
|
|
25
21
|
export declare const Thumbnail: <Schema extends AnyZodObject, Props extends Record<string, unknown>>(props: ThumbnailProps<Schema, Props> & import("react").RefAttributes<ThumbnailMethods>) => React.ReactElement | null;
|
package/dist/cjs/Thumbnail.js
CHANGED
|
@@ -47,8 +47,8 @@ const ThumbnailFn = ({ frameToDisplay, style, inputProps, compositionHeight, com
|
|
|
47
47
|
return ((0, jsx_runtime_1.jsx)(remotion_1.Internals.IsPlayerContextProvider, { children: (0, jsx_runtime_1.jsx)(SharedPlayerContext_js_1.SharedPlayerContexts, { timelineContext: timelineState, component: Component, compositionHeight: compositionHeight, compositionWidth: compositionWidth, durationInFrames: durationInFrames, fps: fps, numberOfSharedAudioTags: 0, initiallyMuted: true, children: (0, jsx_runtime_1.jsx)(emitter_context_js_1.ThumbnailEmitterContext.Provider, { value: emitter, children: (0, jsx_runtime_1.jsx)(ThumbnailUI_js_1.default, { ref: rootRef, className: className, errorFallback: errorFallback, inputProps: passedInputProps, renderLoading: renderLoading, style: style, overflowVisible: overflowVisible, overrideInternalClassName: overrideInternalClassName }) }) }) }));
|
|
48
48
|
};
|
|
49
49
|
const forward = react_1.forwardRef;
|
|
50
|
-
|
|
51
|
-
* @description A component which can be rendered in a regular React App (for example: Next.js,
|
|
50
|
+
/*
|
|
51
|
+
* @description A component which can be rendered in a regular React App (for example: for example: Next.JS, Vite.js, Create React App) to display a single frame of a video.
|
|
52
52
|
* @see [Documentation](https://www.remotion.dev/docs/player/thumbnail)
|
|
53
53
|
*/
|
|
54
54
|
exports.Thumbnail = forward(ThumbnailFn);
|
|
@@ -15,5 +15,5 @@ export declare class ErrorBoundary extends React.Component<{
|
|
|
15
15
|
hasError: Error;
|
|
16
16
|
};
|
|
17
17
|
componentDidCatch(error: Error): void;
|
|
18
|
-
render(): string | number | bigint | boolean |
|
|
18
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
19
19
|
}
|
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.245",
|
|
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.245"
|
|
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.14.0",
|
|
46
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.245"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|