@remotion/studio 4.0.87 → 4.0.89
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/.turbo/turbo-build.log +1 -1
- package/dist/Studio.d.ts +6 -0
- package/dist/Studio.js +19 -0
- package/dist/components/AssetSelector.js +4 -3
- package/dist/components/Button.d.ts +11 -0
- package/dist/components/Button.js +35 -0
- package/dist/components/CurrentCompositionSideEffects.js +1 -1
- package/dist/components/Editor.d.ts +3 -1
- package/dist/components/Editor.js +2 -22
- package/dist/components/MenuBuildIndicator.js +1 -1
- package/dist/components/Modals.js +3 -2
- package/dist/components/NewComposition/RemInput.d.ts +2 -2
- package/dist/components/NewComposition/RemInputTypeColor.d.ts +1 -1
- package/dist/components/NewComposition/RemTextarea.d.ts +1 -1
- package/dist/components/NoRegisterRoot.js +2 -3
- package/dist/components/Notifications/ServerDisconnected.js +1 -1
- package/dist/components/RenderButton.js +4 -3
- package/dist/components/RenderModal/DataEditor.js +4 -4
- package/dist/components/RenderModal/RenderModal.d.ts +1 -0
- package/dist/components/RenderModal/RenderModal.js +7 -2
- package/dist/components/RenderModal/RenderModalAdvanced.d.ts +3 -1
- package/dist/components/RenderModal/RenderModalAdvanced.js +5 -2
- package/dist/components/RenderPreview.js +2 -1
- package/dist/components/RenderQueue/actions.d.ts +4 -2
- package/dist/components/RenderQueue/actions.js +4 -2
- package/dist/components/RenderQueue/index.js +2 -1
- package/dist/components/SidebarRenderButton.js +3 -1
- package/dist/components/StaticFilePreview.js +2 -1
- package/dist/components/Studio.d.ts +4 -0
- package/dist/components/Studio.js +16 -0
- package/dist/components/render-defaults.d.ts +40 -0
- package/dist/components/render-defaults.js +2 -0
- package/dist/error-overlay/react-overlay/utils/make-stack-frame.d.ts +7 -0
- package/dist/error-overlay/react-overlay/utils/make-stack-frame.js +25 -0
- package/dist/helpers/checkerboard-background.d.ts +1 -1
- package/dist/helpers/client-id.d.ts +6 -4
- package/dist/helpers/client-id.js +92 -9
- package/dist/helpers/colors.d.ts +1 -1
- package/dist/helpers/presets-labels.d.ts +1 -1
- package/dist/helpers/retry-payload.d.ts +3 -0
- package/dist/helpers/retry-payload.js +142 -0
- package/dist/helpers/use-file-existence.js +5 -6
- package/dist/helpers/use-menu-structure.js +1 -1
- package/dist/hot-middleware-client/client.d.ts +27 -0
- package/dist/hot-middleware-client/client.js +172 -0
- package/dist/hot-middleware-client/process-update.d.ts +12 -0
- package/dist/hot-middleware-client/process-update.js +157 -0
- package/dist/index.d.ts +3 -3
- package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
- package/dist/preview-server/job.d.ts +3 -0
- package/dist/preview-server/retry-payload.js +3 -0
- package/dist/preview-server/routes/add-render.js +3 -0
- package/dist/previewEntry.js +22 -15
- package/dist/routes.d.ts +0 -1
- package/dist/state/modals.d.ts +1 -0
- package/package.json +7 -7
- package/tsconfig.tsbuildinfo +1 -1
- package/.turbo/turbo-lint.log +0 -10
- package/dist/components/BufferingIndicator.d.ts +0 -2
- package/dist/components/BufferingIndicator.js +0 -23
- package/dist/helpers/event-source.d.ts +0 -3
- package/dist/helpers/event-source.js +0 -76
package/.turbo/turbo-build.log
CHANGED
package/dist/Studio.d.ts
ADDED
package/dist/Studio.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Studio = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_dom_1 = require("react-dom");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
7
|
+
require("../styles.css");
|
|
8
|
+
const Editor_1 = require("./components/Editor");
|
|
9
|
+
const EditorContexts_1 = require("./components/EditorContexts");
|
|
10
|
+
const ServerDisconnected_1 = require("./components/Notifications/ServerDisconnected");
|
|
11
|
+
const getServerDisconnectedDomElement = () => {
|
|
12
|
+
return document.getElementById('server-disconnected-overlay');
|
|
13
|
+
};
|
|
14
|
+
const Studio = ({ rootComponent, readOnly }) => {
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRoot, { numberOfAudioTags: window.remotion_numberOfAudioTags, children: (0, jsx_runtime_1.jsxs)(EditorContexts_1.EditorContexts, { children: [(0, jsx_runtime_1.jsx)(Editor_1.Editor, { readOnlyStudio: readOnly, Root: rootComponent }), readOnly
|
|
16
|
+
? null
|
|
17
|
+
: (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(ServerDisconnected_1.ServerDisconnected, {}), getServerDisconnectedDomElement())] }) }));
|
|
18
|
+
};
|
|
19
|
+
exports.Studio = Studio;
|
|
@@ -27,9 +27,9 @@ exports.AssetSelector = void 0;
|
|
|
27
27
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
const react_1 = __importStar(require("react"));
|
|
29
29
|
const remotion_1 = require("remotion");
|
|
30
|
+
const client_id_1 = require("../helpers/client-id");
|
|
30
31
|
const colors_1 = require("../helpers/colors");
|
|
31
32
|
const create_folder_tree_1 = require("../helpers/create-folder-tree");
|
|
32
|
-
const event_source_1 = require("../helpers/event-source");
|
|
33
33
|
const persist_open_folders_1 = require("../helpers/persist-open-folders");
|
|
34
34
|
const folders_1 = require("../state/folders");
|
|
35
35
|
const z_index_1 = require("../state/z-index");
|
|
@@ -63,6 +63,7 @@ const list = {
|
|
|
63
63
|
const AssetSelector = () => {
|
|
64
64
|
const { tabIndex } = (0, z_index_1.useZIndex)();
|
|
65
65
|
const { assetFoldersExpanded, setAssetFoldersExpanded } = (0, react_1.useContext)(folders_1.FolderContext);
|
|
66
|
+
const { subscribeToEvent } = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx);
|
|
66
67
|
const [{ publicFolderExists, staticFiles }, setState] = react_1.default.useState(() => {
|
|
67
68
|
return {
|
|
68
69
|
staticFiles: (0, remotion_1.getStaticFiles)(),
|
|
@@ -79,11 +80,11 @@ const AssetSelector = () => {
|
|
|
79
80
|
publicFolderExists: window.remotion_publicFolderExists,
|
|
80
81
|
});
|
|
81
82
|
};
|
|
82
|
-
const unsub =
|
|
83
|
+
const unsub = subscribeToEvent('new-public-folder', onUpdate);
|
|
83
84
|
return () => {
|
|
84
85
|
unsub();
|
|
85
86
|
};
|
|
86
|
-
}, []);
|
|
87
|
+
}, [subscribeToEvent]);
|
|
87
88
|
const toggleFolder = (0, react_1.useCallback)((folderName, parentName) => {
|
|
88
89
|
setAssetFoldersExpanded((p) => {
|
|
89
90
|
var _a;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Button: React.ForwardRefExoticComponent<{
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
disabled?: boolean | undefined;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
style?: React.CSSProperties | undefined;
|
|
7
|
+
buttonContainerStyle?: React.CSSProperties | undefined;
|
|
8
|
+
autoFocus?: boolean | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
id?: string | undefined;
|
|
11
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Button = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const colors_1 = require("../helpers/colors");
|
|
7
|
+
const button = {
|
|
8
|
+
border: `1px solid ${colors_1.INPUT_BORDER_COLOR_UNHOVERED}`,
|
|
9
|
+
borderRadius: 4,
|
|
10
|
+
backgroundColor: colors_1.INPUT_BACKGROUND,
|
|
11
|
+
appearance: 'none',
|
|
12
|
+
fontFamily: 'inherit',
|
|
13
|
+
fontSize: 14,
|
|
14
|
+
color: 'white',
|
|
15
|
+
flexDirection: 'row',
|
|
16
|
+
};
|
|
17
|
+
const ButtonRefForwardFunction = ({ children, onClick, title, disabled, style, id, autoFocus, buttonContainerStyle, }, ref) => {
|
|
18
|
+
const combined = (0, react_1.useMemo)(() => {
|
|
19
|
+
return {
|
|
20
|
+
...button,
|
|
21
|
+
...(style !== null && style !== void 0 ? style : {}),
|
|
22
|
+
};
|
|
23
|
+
}, [style]);
|
|
24
|
+
const buttonContainer = (0, react_1.useMemo)(() => {
|
|
25
|
+
return {
|
|
26
|
+
padding: 10,
|
|
27
|
+
cursor: disabled ? 'inherit' : 'pointer',
|
|
28
|
+
fontSize: 14,
|
|
29
|
+
opacity: disabled ? 0.7 : 1,
|
|
30
|
+
...(buttonContainerStyle !== null && buttonContainerStyle !== void 0 ? buttonContainerStyle : {}),
|
|
31
|
+
};
|
|
32
|
+
}, [buttonContainerStyle, disabled]);
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)("button", { ref: ref, id: id, style: combined, type: "button", disabled: disabled, onClick: onClick, autoFocus: autoFocus, title: title, children: (0, jsx_runtime_1.jsx)("div", { className: "css-reset", style: buttonContainer, children: children }) }));
|
|
34
|
+
};
|
|
35
|
+
exports.Button = (0, react_1.forwardRef)(ButtonRefForwardFunction);
|
|
@@ -36,7 +36,7 @@ exports.TitleUpdater = TitleUpdater;
|
|
|
36
36
|
const CurrentCompositionKeybindings = () => {
|
|
37
37
|
const keybindings = (0, use_keybinding_1.useKeybinding)();
|
|
38
38
|
const video = remotion_1.Internals.useVideo();
|
|
39
|
-
const { type } = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx);
|
|
39
|
+
const { type } = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx).previewServerState;
|
|
40
40
|
const openRenderModal = (0, react_1.useCallback)(() => {
|
|
41
41
|
if (!video) {
|
|
42
42
|
return;
|
|
@@ -11,7 +11,6 @@ const z_index_1 = require("../state/z-index");
|
|
|
11
11
|
const EditorContent_1 = require("./EditorContent");
|
|
12
12
|
const GlobalKeybindings_1 = require("./GlobalKeybindings");
|
|
13
13
|
const Modals_1 = require("./Modals");
|
|
14
|
-
const NoRegisterRoot_1 = require("./NoRegisterRoot");
|
|
15
14
|
const NotificationCenter_1 = require("./Notifications/NotificationCenter");
|
|
16
15
|
const background = {
|
|
17
16
|
backgroundColor: colors_1.BACKGROUND,
|
|
@@ -21,14 +20,7 @@ const background = {
|
|
|
21
20
|
flexDirection: 'column',
|
|
22
21
|
position: 'absolute',
|
|
23
22
|
};
|
|
24
|
-
const Editor = () => {
|
|
25
|
-
const [Root, setRoot] = (0, react_1.useState)(() => remotion_1.Internals.getRoot());
|
|
26
|
-
const [waitForRoot] = (0, react_1.useState)(() => {
|
|
27
|
-
if (Root) {
|
|
28
|
-
return 0;
|
|
29
|
-
}
|
|
30
|
-
return (0, remotion_1.delayRender)('Waiting for registerRoot()');
|
|
31
|
-
});
|
|
23
|
+
const Editor = ({ Root }) => {
|
|
32
24
|
(0, react_1.useEffect)(() => {
|
|
33
25
|
const listenToChanges = (e) => {
|
|
34
26
|
if (window.remotion_unsavedProps) {
|
|
@@ -40,18 +32,6 @@ const Editor = () => {
|
|
|
40
32
|
window.removeEventListener('beforeunload', listenToChanges);
|
|
41
33
|
};
|
|
42
34
|
}, []);
|
|
43
|
-
(0,
|
|
44
|
-
if (Root) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const cleanup = remotion_1.Internals.waitForRoot((NewRoot) => {
|
|
48
|
-
setRoot(() => NewRoot);
|
|
49
|
-
(0, remotion_1.continueRender)(waitForRoot);
|
|
50
|
-
});
|
|
51
|
-
return () => {
|
|
52
|
-
cleanup();
|
|
53
|
-
};
|
|
54
|
-
}, [Root, waitForRoot]);
|
|
55
|
-
return ((0, jsx_runtime_1.jsx)(z_index_1.HigherZIndex, { onEscape: noop_1.noop, onOutsideClick: noop_1.noop, children: (0, jsx_runtime_1.jsxs)(timeline_zoom_1.TimelineZoomContext, { children: [(0, jsx_runtime_1.jsxs)("div", { style: background, children: [Root === null ? null : (0, jsx_runtime_1.jsx)(Root, {}), (0, jsx_runtime_1.jsxs)(remotion_1.Internals.CanUseRemotionHooksProvider, { children: [Root === null ? (0, jsx_runtime_1.jsx)(NoRegisterRoot_1.NoRegisterRoot, {}) : (0, jsx_runtime_1.jsx)(EditorContent_1.EditorContent, {}), (0, jsx_runtime_1.jsx)(GlobalKeybindings_1.GlobalKeybindings, {})] }), (0, jsx_runtime_1.jsx)(NotificationCenter_1.NotificationCenter, {})] }), (0, jsx_runtime_1.jsx)(Modals_1.Modals, {})] }) }));
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(z_index_1.HigherZIndex, { onEscape: noop_1.noop, onOutsideClick: noop_1.noop, children: (0, jsx_runtime_1.jsxs)(timeline_zoom_1.TimelineZoomContext, { children: [(0, jsx_runtime_1.jsxs)("div", { style: background, children: [(0, jsx_runtime_1.jsx)(Root, {}), (0, jsx_runtime_1.jsxs)(remotion_1.Internals.CanUseRemotionHooksProvider, { children: [(0, jsx_runtime_1.jsx)(EditorContent_1.EditorContent, {}), (0, jsx_runtime_1.jsx)(GlobalKeybindings_1.GlobalKeybindings, {})] }), (0, jsx_runtime_1.jsx)(NotificationCenter_1.NotificationCenter, {})] }), (0, jsx_runtime_1.jsx)(Modals_1.Modals, {})] }) }));
|
|
56
36
|
};
|
|
57
37
|
exports.Editor = Editor;
|
|
@@ -26,7 +26,7 @@ const noSpinner = {
|
|
|
26
26
|
};
|
|
27
27
|
const MenuBuildIndicator = () => {
|
|
28
28
|
const [isBuilding, setIsBuilding] = (0, react_1.useState)(false);
|
|
29
|
-
const ctx = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx);
|
|
29
|
+
const ctx = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx).previewServerState;
|
|
30
30
|
const showButton = window.remotion_editorName && ctx.type === 'connected';
|
|
31
31
|
(0, react_1.useEffect)(() => {
|
|
32
32
|
window.remotion_isBuilding = () => {
|
|
@@ -15,8 +15,9 @@ const RenderStatusModal_1 = require("./RenderModal/RenderStatusModal");
|
|
|
15
15
|
const UpdateModal_1 = require("./UpdateModal/UpdateModal");
|
|
16
16
|
const Modals = () => {
|
|
17
17
|
const { selectedModal: modalContextType } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
18
|
-
const canRender = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx).type ===
|
|
19
|
-
|
|
18
|
+
const canRender = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx).previewServerState.type ===
|
|
19
|
+
'connected';
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [modalContextType && modalContextType.type === 'new-comp' && ((0, jsx_runtime_1.jsx)(NewComposition_1.default, { initialCompType: modalContextType.compType })), modalContextType && canRender && modalContextType.type === 'render' && ((0, jsx_runtime_1.jsx)(RenderModal_1.RenderModalWithLoader, { initialFrame: modalContextType.initialFrame, compositionId: modalContextType.compositionId, initialVideoImageFormat: modalContextType.initialVideoImageFormat, initialJpegQuality: modalContextType.initialJpegQuality, initialScale: modalContextType.initialScale, initialLogLevel: modalContextType.initialLogLevel, initialOffthreadVideoCacheSizeInBytes: modalContextType.initialOffthreadVideoCacheSizeInBytes, initialConcurrency: modalContextType.initialConcurrency, maxConcurrency: modalContextType.maxConcurrency, minConcurrency: modalContextType.minConcurrency, initialStillImageFormat: modalContextType.initialStillImageFormat, initialMuted: modalContextType.initialMuted, initialEnforceAudioTrack: modalContextType.initialEnforceAudioTrack, initialProResProfile: modalContextType.initialProResProfile, initialx264Preset: modalContextType.initialx264Preset, initialPixelFormat: modalContextType.initialPixelFormat, initialAudioBitrate: modalContextType.initialAudioBitrate, initialVideoBitrate: modalContextType.initialVideoBitrate, initialEveryNthFrame: modalContextType.initialEveryNthFrame, initialNumberOfGifLoops: modalContextType.initialNumberOfGifLoops, initialDelayRenderTimeout: modalContextType.initialDelayRenderTimeout, initialEnvVariables: modalContextType.initialEnvVariables, initialDisableWebSecurity: modalContextType.initialDisableWebSecurity, initialGl: modalContextType.initialOpenGlRenderer, initialHeadless: modalContextType.initialHeadless, initialIgnoreCertificateErrors: modalContextType.initialIgnoreCertificateErrors, initialEncodingBufferSize: modalContextType.initialEncodingBufferSize, initialEncodingMaxRate: modalContextType.initialEncodingMaxRate, initialUserAgent: modalContextType.initialUserAgent, initialColorSpace: modalContextType.initialColorSpace, initialMultiProcessOnLinux: modalContextType.initialMultiProcessOnLinux, initialRepro: modalContextType.initialRepro, initialBeep: modalContextType.initialBeep, defaultProps: modalContextType.defaultProps, inFrameMark: modalContextType.inFrameMark, outFrameMark: modalContextType.outFrameMark, defaultConfigurationAudioCodec: modalContextType.defaultConfigurationAudioCodec, defaultConfigurationVideoCodec: modalContextType.defaultConfigurationVideoCodec })), modalContextType &&
|
|
20
21
|
canRender &&
|
|
21
22
|
modalContextType.type === 'render-progress' && ((0, jsx_runtime_1.jsx)(RenderStatusModal_1.RenderStatusModal, { jobId: modalContextType.jobId })), modalContextType && modalContextType.type === 'update' && ((0, jsx_runtime_1.jsx)(UpdateModal_1.UpdateModal, { info: modalContextType.info, knownBugs: modalContextType.knownBugs })), modalContextType && modalContextType.type === 'quick-switcher' && ((0, jsx_runtime_1.jsx)(QuickSwitcher_1.default, { invocationTimestamp: modalContextType.invocationTimestamp, initialMode: modalContextType.mode }))] }));
|
|
22
23
|
};
|
|
@@ -12,6 +12,6 @@ export declare const getInputBorderColor: ({ status, isFocused, isHovered, }: {
|
|
|
12
12
|
status: 'error' | 'warning' | 'ok';
|
|
13
13
|
isFocused: boolean;
|
|
14
14
|
isHovered: boolean;
|
|
15
|
-
}) => "
|
|
16
|
-
export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "
|
|
15
|
+
}) => "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#ff3232" | "#f1c40f";
|
|
16
|
+
export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "key" | "status" | "rightAlign" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
17
17
|
export {};
|
|
@@ -4,5 +4,5 @@ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>
|
|
|
4
4
|
status: RemInputStatus;
|
|
5
5
|
name: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const RemInputTypeColor: React.ForwardRefExoticComponent<Pick<Props, "
|
|
7
|
+
export declare const RemInputTypeColor: React.ForwardRefExoticComponent<Pick<Props, "key" | "status" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
8
8
|
export {};
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
|
|
3
3
|
status: 'error' | 'warning' | 'ok';
|
|
4
4
|
};
|
|
5
|
-
export declare const RemTextarea: React.ForwardRefExoticComponent<Pick<Props, "
|
|
5
|
+
export declare const RemTextarea: React.ForwardRefExoticComponent<Pick<Props, "key" | "status" | keyof React.InputHTMLAttributes<HTMLTextAreaElement>> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
6
6
|
export {};
|
|
@@ -3,16 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NoRegisterRoot = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
6
7
|
const label = {
|
|
7
8
|
fontSize: 13,
|
|
8
9
|
color: 'white',
|
|
9
10
|
fontFamily: 'Arial, Helvetica, sans-serif',
|
|
10
11
|
};
|
|
11
12
|
const container = {
|
|
12
|
-
display: 'flex',
|
|
13
13
|
justifyContent: 'center',
|
|
14
14
|
alignItems: 'center',
|
|
15
|
-
flex: 1,
|
|
16
15
|
flexDirection: 'column',
|
|
17
16
|
textAlign: 'center',
|
|
18
17
|
lineHeight: 1.5,
|
|
@@ -36,6 +35,6 @@ const NoRegisterRoot = () => {
|
|
|
36
35
|
if (!show) {
|
|
37
36
|
return null;
|
|
38
37
|
}
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)(remotion_1.AbsoluteFill, { style: container, children: [(0, jsx_runtime_1.jsx)("div", { style: label, children: "Waiting for registerRoot() to get called." }), (0, jsx_runtime_1.jsxs)("div", { style: label, children: ["Learn more:", ' ', (0, jsx_runtime_1.jsx)("a", { target: '_blank', style: link, href: "https://www.remotion.dev/docs/register-root", children: "remotion.dev/docs/register-root" })] })] }));
|
|
40
39
|
};
|
|
41
40
|
exports.NoRegisterRoot = NoRegisterRoot;
|
|
@@ -37,7 +37,7 @@ window.addEventListener('beforeunload', () => {
|
|
|
37
37
|
pageIsGoingToReload = true;
|
|
38
38
|
});
|
|
39
39
|
const ServerDisconnected = () => {
|
|
40
|
-
const ctx = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx);
|
|
40
|
+
const { previewServerState: ctx } = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx);
|
|
41
41
|
const fav = document.getElementById('__remotion_favicon');
|
|
42
42
|
if (ctx.type !== 'disconnected') {
|
|
43
43
|
fav.setAttribute('href', '/remotion.png');
|
|
@@ -23,10 +23,10 @@ const label = {
|
|
|
23
23
|
const RenderButton = () => {
|
|
24
24
|
const { inFrame, outFrame } = (0, in_out_1.useTimelineInOutFramePosition)();
|
|
25
25
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
27
|
+
.previewServerState.type;
|
|
28
28
|
const shortcut = (0, use_keybinding_1.areKeyboardShortcutsDisabled)() ? '' : '(R)';
|
|
29
|
-
const tooltip =
|
|
29
|
+
const tooltip = connectionStatus === 'connected'
|
|
30
30
|
? 'Export the current composition ' + shortcut
|
|
31
31
|
: 'Connect to the Studio server to render';
|
|
32
32
|
const iconStyle = (0, react_1.useMemo)(() => {
|
|
@@ -88,6 +88,7 @@ const RenderButton = () => {
|
|
|
88
88
|
initialEncodingMaxRate: defaults.encodingMaxRate,
|
|
89
89
|
initialUserAgent: defaults.userAgent,
|
|
90
90
|
initialBeep: defaults.beepOnFinish,
|
|
91
|
+
initialRepro: defaults.repro,
|
|
91
92
|
});
|
|
92
93
|
}, [video, setSelectedModal, frame, props, inFrame, outFrame]);
|
|
93
94
|
if (!video) {
|
|
@@ -30,7 +30,6 @@ const remotion_1 = require("remotion");
|
|
|
30
30
|
const no_react_1 = require("remotion/no-react");
|
|
31
31
|
const client_id_1 = require("../../helpers/client-id");
|
|
32
32
|
const colors_1 = require("../../helpers/colors");
|
|
33
|
-
const event_source_1 = require("../../helpers/event-source");
|
|
34
33
|
const get_zod_if_possible_1 = require("../get-zod-if-possible");
|
|
35
34
|
const layout_1 = require("../layout");
|
|
36
35
|
const ValidationMessage_1 = require("../NewComposition/ValidationMessage");
|
|
@@ -182,12 +181,13 @@ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, mayShowS
|
|
|
182
181
|
(0, react_1.useEffect)(() => {
|
|
183
182
|
checkIfCanSaveDefaultProps();
|
|
184
183
|
}, [checkIfCanSaveDefaultProps]);
|
|
184
|
+
const { previewServerState, subscribeToEvent } = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx);
|
|
185
185
|
(0, react_1.useEffect)(() => {
|
|
186
|
-
const unsub =
|
|
186
|
+
const unsub = subscribeToEvent('root-file-changed', checkIfCanSaveDefaultProps);
|
|
187
187
|
return () => {
|
|
188
188
|
unsub();
|
|
189
189
|
};
|
|
190
|
-
}, [checkIfCanSaveDefaultProps]);
|
|
190
|
+
}, [checkIfCanSaveDefaultProps, subscribeToEvent]);
|
|
191
191
|
const modeItems = (0, react_1.useMemo)(() => {
|
|
192
192
|
return [
|
|
193
193
|
{
|
|
@@ -248,7 +248,7 @@ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, mayShowS
|
|
|
248
248
|
unresolvedComposition.id,
|
|
249
249
|
unresolvedComposition.defaultProps,
|
|
250
250
|
]);
|
|
251
|
-
const connectionStatus =
|
|
251
|
+
const connectionStatus = previewServerState.type;
|
|
252
252
|
const warnings = (0, react_1.useMemo)(() => {
|
|
253
253
|
return (0, get_render_modal_warnings_1.getRenderModalWarnings)({
|
|
254
254
|
canSaveDefaultProps,
|
|
@@ -32,6 +32,7 @@ type RenderModalProps = {
|
|
|
32
32
|
initialEncodingBufferSize: string | null;
|
|
33
33
|
initialUserAgent: string | null;
|
|
34
34
|
initialBeep: boolean;
|
|
35
|
+
initialRepro: boolean;
|
|
35
36
|
defaultProps: Record<string, unknown>;
|
|
36
37
|
inFrameMark: number | null;
|
|
37
38
|
outFrameMark: number | null;
|
|
@@ -117,7 +117,7 @@ const outer = {
|
|
|
117
117
|
display: 'flex',
|
|
118
118
|
flexDirection: 'column',
|
|
119
119
|
};
|
|
120
|
-
const RenderModal = ({ initialFrame, initialVideoImageFormat, initialStillImageFormat, initialJpegQuality, initialScale, initialLogLevel, initialConcurrency, maxConcurrency, minConcurrency, initialMuted, initialEnforceAudioTrack, initialProResProfile, initialx264Preset, initialPixelFormat, initialVideoBitrate, initialAudioBitrate, initialEveryNthFrame, initialNumberOfGifLoops, initialDelayRenderTimeout, initialOffthreadVideoCacheSizeInBytes, initialEnvVariables, initialDisableWebSecurity, initialGl, initialHeadless, initialIgnoreCertificateErrors, initialEncodingBufferSize, initialEncodingMaxRate, initialUserAgent, defaultProps, inFrameMark, outFrameMark, onClose, resolvedComposition, unresolvedComposition, initialColorSpace, initialMultiProcessOnLinux, defaultConfigurationAudioCodec, defaultConfigurationVideoCodec, initialBeep, }) => {
|
|
120
|
+
const RenderModal = ({ initialFrame, initialVideoImageFormat, initialStillImageFormat, initialJpegQuality, initialScale, initialLogLevel, initialConcurrency, maxConcurrency, minConcurrency, initialMuted, initialEnforceAudioTrack, initialProResProfile, initialx264Preset, initialPixelFormat, initialVideoBitrate, initialAudioBitrate, initialEveryNthFrame, initialNumberOfGifLoops, initialDelayRenderTimeout, initialOffthreadVideoCacheSizeInBytes, initialEnvVariables, initialDisableWebSecurity, initialGl, initialHeadless, initialIgnoreCertificateErrors, initialEncodingBufferSize, initialEncodingMaxRate, initialUserAgent, defaultProps, inFrameMark, outFrameMark, onClose, resolvedComposition, unresolvedComposition, initialColorSpace, initialMultiProcessOnLinux, defaultConfigurationAudioCodec, defaultConfigurationVideoCodec, initialBeep, initialRepro, }) => {
|
|
121
121
|
const isMounted = (0, react_1.useRef)(true);
|
|
122
122
|
const [isVideo] = (0, react_1.useState)(() => {
|
|
123
123
|
return typeof resolvedComposition.durationInFrames === 'undefined'
|
|
@@ -153,6 +153,7 @@ const RenderModal = ({ initialFrame, initialVideoImageFormat, initialStillImageF
|
|
|
153
153
|
});
|
|
154
154
|
const [videoCodecForAudioTab, setVideoCodecForAudioTab] = (0, react_1.useState)(() => initialVideoCodecForAudioTab);
|
|
155
155
|
const [mutedState, setMuted] = (0, react_1.useState)(() => initialMuted);
|
|
156
|
+
const [repro, setRepro] = (0, react_1.useState)(() => initialRepro);
|
|
156
157
|
const [enforceAudioTrackState, setEnforceAudioTrackState] = (0, react_1.useState)(() => initialEnforceAudioTrack);
|
|
157
158
|
const [renderMode, setRenderModeState] = (0, react_1.useState)(initialRenderType);
|
|
158
159
|
const [jpegQuality, setJpegQuality] = (0, react_1.useState)(() => initialJpegQuality);
|
|
@@ -472,6 +473,7 @@ const RenderModal = ({ initialFrame, initialVideoImageFormat, initialStillImageF
|
|
|
472
473
|
encodingBufferSize,
|
|
473
474
|
encodingMaxRate,
|
|
474
475
|
beepOnFinish,
|
|
476
|
+
repro,
|
|
475
477
|
})
|
|
476
478
|
.then(() => {
|
|
477
479
|
dispatchIfMounted({ type: 'succeed' });
|
|
@@ -517,6 +519,7 @@ const RenderModal = ({ initialFrame, initialVideoImageFormat, initialStillImageF
|
|
|
517
519
|
encodingBufferSize,
|
|
518
520
|
encodingMaxRate,
|
|
519
521
|
beepOnFinish,
|
|
522
|
+
repro,
|
|
520
523
|
onClose,
|
|
521
524
|
]);
|
|
522
525
|
const onClickSequence = (0, react_1.useCallback)(() => {
|
|
@@ -543,6 +546,7 @@ const RenderModal = ({ initialFrame, initialVideoImageFormat, initialStillImageF
|
|
|
543
546
|
disallowParallelEncoding,
|
|
544
547
|
multiProcessOnLinux,
|
|
545
548
|
beepOnFinish,
|
|
549
|
+
repro,
|
|
546
550
|
})
|
|
547
551
|
.then(() => {
|
|
548
552
|
dispatchIfMounted({ type: 'succeed' });
|
|
@@ -571,6 +575,7 @@ const RenderModal = ({ initialFrame, initialVideoImageFormat, initialStillImageF
|
|
|
571
575
|
disallowParallelEncoding,
|
|
572
576
|
multiProcessOnLinux,
|
|
573
577
|
beepOnFinish,
|
|
578
|
+
repro,
|
|
574
579
|
onClose,
|
|
575
580
|
]);
|
|
576
581
|
(0, react_1.useEffect)(() => {
|
|
@@ -781,7 +786,7 @@ const RenderModal = ({ initialFrame, initialVideoImageFormat, initialStillImageF
|
|
|
781
786
|
return ((0, jsx_runtime_1.jsxs)("div", { style: outer, children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.NewCompHeader, { title: `Render ${resolvedComposition.id}` }), (0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(SegmentedControl_1.SegmentedControl, { items: renderTabOptions, needsWrapping: false }), (0, jsx_runtime_1.jsx)("div", { style: flexer }), (0, jsx_runtime_1.jsxs)(Button_1.Button, { autoFocus: true, onClick: trigger, disabled: renderDisabled, style: {
|
|
782
787
|
...buttonStyle,
|
|
783
788
|
backgroundColor: outnameValidation.valid ? colors_1.BLUE : colors_1.BLUE_DISABLED,
|
|
784
|
-
}, children: [state.type === 'idle' ? `Render ${renderMode}` : 'Rendering...', (0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "\u21B5", cmdOrCtrl: true })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: horizontalLayout, children: [(0, jsx_runtime_1.jsxs)("div", { style: leftSidebar, children: [shownTabs.includes('general') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'general', onClick: () => setTab('general'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(file_1.FileIcon, { style: icon }) }), "General"] })) : null, shownTabs.includes('data') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'data', onClick: () => setTab('data'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(data_1.DataIcon, { style: icon }) }), "Input Props"] })) : null, shownTabs.includes('picture') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'picture', onClick: () => setTab('picture'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(frame_1.PicIcon, { style: icon }) }), "Picture"] })) : null, shownTabs.includes('audio') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'audio', onClick: () => setTab('audio'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(audio_1.AudioIcon, { style: icon }) }), "Audio"] })) : null, shownTabs.includes('gif') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'gif', onClick: () => setTab('gif'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(gif_1.GifIcon, { style: icon }) }), "GIF"] })) : null, shownTabs.includes('advanced') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'advanced', onClick: () => setTab('advanced'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(gear_1.GearIcon, { style: icon }) }), "Other"] })) : null] }), (0, jsx_runtime_1.jsx)("div", { style: optionsPanel, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: tab === 'general' ? ((0, jsx_runtime_1.jsx)(RenderModalBasic_1.RenderModalBasic, { codec: codec, resolvedComposition: resolvedComposition, frame: frame, imageFormatOptions: imageFormatOptions, outName: outName, proResProfile: proResProfile, renderMode: renderMode, setVideoCodec: setCodec, setFrame: setFrame, setOutName: setOutName, setProResProfile: setProResProfile, endFrame: endFrame, setEndFrame: setEndFrame, setStartFrame: setStartFrame, startFrame: startFrame, validationMessage: outnameValidation.valid ? null : outnameValidation.error.message })) : tab === 'picture' ? ((0, jsx_runtime_1.jsx)(RenderModalPicture_1.RenderModalPicture, { renderMode: renderMode, scale: scale, setScale: setScale, pixelFormat: pixelFormat, pixelFormatOptions: pixelFormatOptions, imageFormatOptions: imageFormatOptions, crf: crf, setCrf: setCrf, customTargetVideoBitrate: customTargetVideoBitrate, maxCrf: maxCrf, minCrf: minCrf, jpegQuality: jpegQuality, qualityControlType: qualityControlType, setJpegQuality: setJpegQuality, setColorSpace: setColorSpace, colorSpace: colorSpace, setCustomTargetVideoBitrateValue: setCustomTargetVideoBitrateValue, setQualityControl: setQualityControl, videoImageFormat: videoImageFormat, stillImageFormat: stillImageFormat, shouldDisplayQualityControlPicker: supportsBothQualityControls, encodingBufferSize: encodingBufferSize, setEncodingBufferSize: setEncodingBufferSize, encodingMaxRate: encodingMaxRate, setEncodingMaxRate: setEncodingMaxRate })) : tab === 'audio' ? ((0, jsx_runtime_1.jsx)(RenderModalAudio_1.RenderModalAudio, { muted: muted, renderMode: renderMode, setMuted: setMuted, codec: codec, audioCodec: audioCodec, setAudioCodec: setAudioCodec, enforceAudioTrack: enforceAudioTrack, setEnforceAudioTrackState: setEnforceAudioTrackState, customTargetAudioBitrate: customTargetAudioBitrate, setCustomTargetAudioBitrateValue: setCustomTargetAudioBitrateValue, setShouldHaveCustomTargetAudioBitrate: setShouldHaveCustomTargetAudioBitrate, shouldHaveCustomTargetAudioBitrate: shouldHaveCustomTargetAudioBitrate })) : tab === 'gif' ? ((0, jsx_runtime_1.jsx)(RenderModalGif_1.RenderModalGif, { everyNthFrame: everyNthFrame, limitNumberOfGifLoops: limitNumberOfGifLoops, numberOfGifLoopsSetting: numberOfGifLoopsSetting, setEveryNthFrameSetting: setEveryNthFrameSetting, setLimitNumberOfGifLoops: setLimitNumberOfGifLoops, setNumberOfGifLoopsSetting: setNumberOfGifLoopsSetting })) : tab === 'data' ? ((0, jsx_runtime_1.jsx)(DataEditor_1.DataEditor, { inputProps: inputProps, setInputProps: setInputProps, unresolvedComposition: unresolvedComposition, mayShowSaveButton: false, propsEditType: "input-props", saving: saving, setSaving: setSaving })) : ((0, jsx_runtime_1.jsx)(RenderModalAdvanced_1.RenderModalAdvanced, { x264Preset: x264Preset, setx264Preset: setx264Preset, concurrency: concurrency, maxConcurrency: maxConcurrency, minConcurrency: minConcurrency, renderMode: renderMode, setConcurrency: setConcurrency, setVerboseLogging: setLogLevel, logLevel: logLevel, delayRenderTimeout: delayRenderTimeout, setDelayRenderTimeout: setDelayRenderTimeout, disallowParallelEncoding: disallowParallelEncoding, setDisallowParallelEncoding: setDisallowParallelEncoding, setDisableWebSecurity: setDisableWebSecurity, setIgnoreCertificateErrors: setIgnoreCertificateErrors, setHeadless: setHeadless, headless: headless, ignoreCertificateErrors: ignoreCertificateErrors, disableWebSecurity: disableWebSecurity, openGlOption: openGlOption, setOpenGlOption: setOpenGlOption, setEnvVariables: setEnvVariables, envVariables: envVariables, offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes, setOffthreadVideoCacheSizeInBytes: setOffthreadVideoCacheSizeInBytes, enableMultiProcessOnLinux: multiProcessOnLinux, setChromiumMultiProcessOnLinux: setChromiumMultiProcessOnLinux, codec: codec, userAgent: userAgent, setUserAgent: setUserAgent, setBeep: setBeepOnFinish, beep: beepOnFinish })) })] })] }));
|
|
789
|
+
}, children: [state.type === 'idle' ? `Render ${renderMode}` : 'Rendering...', (0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "\u21B5", cmdOrCtrl: true })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: horizontalLayout, children: [(0, jsx_runtime_1.jsxs)("div", { style: leftSidebar, children: [shownTabs.includes('general') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'general', onClick: () => setTab('general'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(file_1.FileIcon, { style: icon }) }), "General"] })) : null, shownTabs.includes('data') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'data', onClick: () => setTab('data'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(data_1.DataIcon, { style: icon }) }), "Input Props"] })) : null, shownTabs.includes('picture') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'picture', onClick: () => setTab('picture'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(frame_1.PicIcon, { style: icon }) }), "Picture"] })) : null, shownTabs.includes('audio') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'audio', onClick: () => setTab('audio'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(audio_1.AudioIcon, { style: icon }) }), "Audio"] })) : null, shownTabs.includes('gif') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'gif', onClick: () => setTab('gif'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(gif_1.GifIcon, { style: icon }) }), "GIF"] })) : null, shownTabs.includes('advanced') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'advanced', onClick: () => setTab('advanced'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(gear_1.GearIcon, { style: icon }) }), "Other"] })) : null] }), (0, jsx_runtime_1.jsx)("div", { style: optionsPanel, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: tab === 'general' ? ((0, jsx_runtime_1.jsx)(RenderModalBasic_1.RenderModalBasic, { codec: codec, resolvedComposition: resolvedComposition, frame: frame, imageFormatOptions: imageFormatOptions, outName: outName, proResProfile: proResProfile, renderMode: renderMode, setVideoCodec: setCodec, setFrame: setFrame, setOutName: setOutName, setProResProfile: setProResProfile, endFrame: endFrame, setEndFrame: setEndFrame, setStartFrame: setStartFrame, startFrame: startFrame, validationMessage: outnameValidation.valid ? null : outnameValidation.error.message })) : tab === 'picture' ? ((0, jsx_runtime_1.jsx)(RenderModalPicture_1.RenderModalPicture, { renderMode: renderMode, scale: scale, setScale: setScale, pixelFormat: pixelFormat, pixelFormatOptions: pixelFormatOptions, imageFormatOptions: imageFormatOptions, crf: crf, setCrf: setCrf, customTargetVideoBitrate: customTargetVideoBitrate, maxCrf: maxCrf, minCrf: minCrf, jpegQuality: jpegQuality, qualityControlType: qualityControlType, setJpegQuality: setJpegQuality, setColorSpace: setColorSpace, colorSpace: colorSpace, setCustomTargetVideoBitrateValue: setCustomTargetVideoBitrateValue, setQualityControl: setQualityControl, videoImageFormat: videoImageFormat, stillImageFormat: stillImageFormat, shouldDisplayQualityControlPicker: supportsBothQualityControls, encodingBufferSize: encodingBufferSize, setEncodingBufferSize: setEncodingBufferSize, encodingMaxRate: encodingMaxRate, setEncodingMaxRate: setEncodingMaxRate })) : tab === 'audio' ? ((0, jsx_runtime_1.jsx)(RenderModalAudio_1.RenderModalAudio, { muted: muted, renderMode: renderMode, setMuted: setMuted, codec: codec, audioCodec: audioCodec, setAudioCodec: setAudioCodec, enforceAudioTrack: enforceAudioTrack, setEnforceAudioTrackState: setEnforceAudioTrackState, customTargetAudioBitrate: customTargetAudioBitrate, setCustomTargetAudioBitrateValue: setCustomTargetAudioBitrateValue, setShouldHaveCustomTargetAudioBitrate: setShouldHaveCustomTargetAudioBitrate, shouldHaveCustomTargetAudioBitrate: shouldHaveCustomTargetAudioBitrate })) : tab === 'gif' ? ((0, jsx_runtime_1.jsx)(RenderModalGif_1.RenderModalGif, { everyNthFrame: everyNthFrame, limitNumberOfGifLoops: limitNumberOfGifLoops, numberOfGifLoopsSetting: numberOfGifLoopsSetting, setEveryNthFrameSetting: setEveryNthFrameSetting, setLimitNumberOfGifLoops: setLimitNumberOfGifLoops, setNumberOfGifLoopsSetting: setNumberOfGifLoopsSetting })) : tab === 'data' ? ((0, jsx_runtime_1.jsx)(DataEditor_1.DataEditor, { inputProps: inputProps, setInputProps: setInputProps, unresolvedComposition: unresolvedComposition, mayShowSaveButton: false, propsEditType: "input-props", saving: saving, setSaving: setSaving })) : ((0, jsx_runtime_1.jsx)(RenderModalAdvanced_1.RenderModalAdvanced, { x264Preset: x264Preset, setx264Preset: setx264Preset, concurrency: concurrency, maxConcurrency: maxConcurrency, minConcurrency: minConcurrency, renderMode: renderMode, setConcurrency: setConcurrency, setVerboseLogging: setLogLevel, logLevel: logLevel, delayRenderTimeout: delayRenderTimeout, setDelayRenderTimeout: setDelayRenderTimeout, disallowParallelEncoding: disallowParallelEncoding, setDisallowParallelEncoding: setDisallowParallelEncoding, setDisableWebSecurity: setDisableWebSecurity, setIgnoreCertificateErrors: setIgnoreCertificateErrors, setHeadless: setHeadless, headless: headless, ignoreCertificateErrors: ignoreCertificateErrors, disableWebSecurity: disableWebSecurity, openGlOption: openGlOption, setOpenGlOption: setOpenGlOption, setEnvVariables: setEnvVariables, envVariables: envVariables, offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes, setOffthreadVideoCacheSizeInBytes: setOffthreadVideoCacheSizeInBytes, enableMultiProcessOnLinux: multiProcessOnLinux, setChromiumMultiProcessOnLinux: setChromiumMultiProcessOnLinux, codec: codec, userAgent: userAgent, setUserAgent: setUserAgent, setBeep: setBeepOnFinish, beep: beepOnFinish, repro: repro, setRepro: setRepro })) })] })] }));
|
|
785
790
|
};
|
|
786
791
|
const RenderModalWithLoader = (props) => {
|
|
787
792
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
@@ -33,6 +33,8 @@ export declare const RenderModalAdvanced: React.FC<{
|
|
|
33
33
|
setChromiumMultiProcessOnLinux: React.Dispatch<React.SetStateAction<boolean>>;
|
|
34
34
|
userAgent: string | null;
|
|
35
35
|
setUserAgent: React.Dispatch<React.SetStateAction<string | null>>;
|
|
36
|
-
setBeep: React.Dispatch<React.SetStateAction<boolean>>;
|
|
37
36
|
beep: boolean;
|
|
37
|
+
setBeep: React.Dispatch<React.SetStateAction<boolean>>;
|
|
38
|
+
repro: boolean;
|
|
39
|
+
setRepro: React.Dispatch<React.SetStateAction<boolean>>;
|
|
38
40
|
}>;
|
|
@@ -20,7 +20,7 @@ const container = {
|
|
|
20
20
|
flex: 1,
|
|
21
21
|
overflowY: 'auto',
|
|
22
22
|
};
|
|
23
|
-
const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setConcurrency, concurrency, setVerboseLogging, logLevel, delayRenderTimeout, setDelayRenderTimeout, disallowParallelEncoding, setDisallowParallelEncoding, setDisableWebSecurity, setIgnoreCertificateErrors, setHeadless, headless, ignoreCertificateErrors, disableWebSecurity, openGlOption, setOpenGlOption, setEnvVariables, envVariables, setx264Preset, x264Preset, codec, offthreadVideoCacheSizeInBytes, setOffthreadVideoCacheSizeInBytes, enableMultiProcessOnLinux, setChromiumMultiProcessOnLinux, setUserAgent, userAgent, beep, setBeep, }) => {
|
|
23
|
+
const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setConcurrency, concurrency, setVerboseLogging, logLevel, delayRenderTimeout, setDelayRenderTimeout, disallowParallelEncoding, setDisallowParallelEncoding, setDisableWebSecurity, setIgnoreCertificateErrors, setHeadless, headless, ignoreCertificateErrors, disableWebSecurity, openGlOption, setOpenGlOption, setEnvVariables, envVariables, setx264Preset, x264Preset, codec, offthreadVideoCacheSizeInBytes, setOffthreadVideoCacheSizeInBytes, enableMultiProcessOnLinux, setChromiumMultiProcessOnLinux, setUserAgent, userAgent, beep, setBeep, repro, setRepro, }) => {
|
|
24
24
|
const extendedOpenGlOptions = (0, react_1.useMemo)(() => {
|
|
25
25
|
return [
|
|
26
26
|
'angle',
|
|
@@ -72,6 +72,9 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
|
|
|
72
72
|
const onPlayBeepSound = (0, react_1.useCallback)((e) => {
|
|
73
73
|
setBeep(e.target.checked);
|
|
74
74
|
}, [setBeep]);
|
|
75
|
+
const onReproToggle = (0, react_1.useCallback)((e) => {
|
|
76
|
+
setRepro(e.target.checked);
|
|
77
|
+
}, [setRepro]);
|
|
75
78
|
const openGlOptions = (0, react_1.useMemo)(() => {
|
|
76
79
|
return extendedOpenGlOptions.map((option) => {
|
|
77
80
|
return {
|
|
@@ -121,6 +124,6 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
|
|
|
121
124
|
, {
|
|
122
125
|
// Also appears in packages/renderer/src/validate-puppeteer-timeout.ts
|
|
123
126
|
min: 7000, max: 900000, name: "delayRender() timeout", onValueChanged: setDelayRenderTimeout, formatter: (w) => `${w}ms`, step: 1000, value: delayRenderTimeout }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "No parallel encoding" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: disallowParallelEncoding, onChange: onDisallowParallelEncodingChanged, name: "disallow-parallel-encoding" }) })] }), renderMode === 'audio' ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Custom OffthreadVideo cache" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "offthreadVideoCacheSizeInBytes" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: offthreadVideoCacheSizeInBytes !== null, onChange: toggleCustomOffthreadVideoCacheSizeInBytes, name: "custom-audio-bitrate" }) })] })), renderMode === 'audio' ||
|
|
124
|
-
offthreadVideoCacheSizeInBytes === null ? null : ((0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { min: minConcurrency, max: 2000 * 1024 * 1024, step: 1024, name: "OffthreadVideo cache size", formatter: (w) => `${w} bytes`, onValueChanged: changeOffthreadVideoCacheSizeInBytes, value: offthreadVideoCacheSizeInBytes })), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Disable web security" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: disableWebSecurity, onChange: onDisableWebSecurityChanged, name: "disable-web-security" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Ignore certificate errors" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: ignoreCertificateErrors, onChange: onIgnoreCertificatErrors, name: "ignore-certificate-errors" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Headless mode" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: headless, onChange: onHeadless, name: "headless" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["OpenGL render backend ", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "glOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: openGlOptions, selectedId: openGlOption, title: "OpenGl option" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Multi-process Chrome on Linux" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "enableMultiprocessOnLinuxOption" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: enableMultiProcessOnLinux, onChange: onEnableMultiProcessOnLinux, name: "enable-multi-process-on-linux" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Custom User Agent" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: userAgent !== null, onChange: toggleCustomUserAgent, name: "custom-user-agent" }) })] }), userAgent === null ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "User Agent" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { style: layout_2.input, value: userAgent, onChange: onUserAgentChanged, status: "ok", rightAlign: true }) }) })] })), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Beep when finished ", (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "beepOnFinishOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: beep, onChange: onPlayBeepSound, name: "beep-when-finished" }) })] }), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}), (0, jsx_runtime_1.jsx)(RenderModalEnvironmentVariables_1.RenderModalEnvironmentVariables, { envVariables: envVariables, setEnvVariables: setEnvVariables })] }));
|
|
127
|
+
offthreadVideoCacheSizeInBytes === null ? null : ((0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { min: minConcurrency, max: 2000 * 1024 * 1024, step: 1024, name: "OffthreadVideo cache size", formatter: (w) => `${w} bytes`, onValueChanged: changeOffthreadVideoCacheSizeInBytes, value: offthreadVideoCacheSizeInBytes })), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Disable web security" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: disableWebSecurity, onChange: onDisableWebSecurityChanged, name: "disable-web-security" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Ignore certificate errors" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: ignoreCertificateErrors, onChange: onIgnoreCertificatErrors, name: "ignore-certificate-errors" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Headless mode" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: headless, onChange: onHeadless, name: "headless" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["OpenGL render backend ", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "glOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: openGlOptions, selectedId: openGlOption, title: "OpenGl option" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Multi-process Chrome on Linux" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "enableMultiprocessOnLinuxOption" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: enableMultiProcessOnLinux, onChange: onEnableMultiProcessOnLinux, name: "enable-multi-process-on-linux" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Custom User Agent" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: userAgent !== null, onChange: toggleCustomUserAgent, name: "custom-user-agent" }) })] }), userAgent === null ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "User Agent" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { style: layout_2.input, value: userAgent, onChange: onUserAgentChanged, status: "ok", rightAlign: true }) }) })] })), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Create a reproduction ", (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "reproOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: repro, onChange: onReproToggle, name: "repro" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Beep when finished ", (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "beepOnFinishOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: beep, onChange: onPlayBeepSound, name: "beep-when-finished" }) })] }), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}), (0, jsx_runtime_1.jsx)(RenderModalEnvironmentVariables_1.RenderModalEnvironmentVariables, { envVariables: envVariables, setEnvVariables: setEnvVariables })] }));
|
|
125
128
|
};
|
|
126
129
|
exports.RenderModalAdvanced = RenderModalAdvanced;
|
|
@@ -22,7 +22,8 @@ const errMsgStyle = {
|
|
|
22
22
|
const RenderPreview = ({ path, assetMetadata }) => {
|
|
23
23
|
const fileType = (0, Preview_1.getPreviewFileType)(path);
|
|
24
24
|
const src = get_asset_metadata_1.remotion_outputsBase + path;
|
|
25
|
-
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
25
|
+
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
26
|
+
.previewServerState.type;
|
|
26
27
|
if (connectionStatus === 'disconnected') {
|
|
27
28
|
return (0, jsx_runtime_1.jsx)("div", { style: errMsgStyle, children: "Studio server disconnected" });
|
|
28
29
|
}
|
|
@@ -18,7 +18,7 @@ export declare const addStillRenderJob: ({ compositionId, outName, imageFormat,
|
|
|
18
18
|
multiProcessOnLinux: boolean;
|
|
19
19
|
beepOnFinish: boolean;
|
|
20
20
|
}) => Promise<undefined>;
|
|
21
|
-
export declare const addSequenceRenderJob: ({ compositionId, outName, imageFormat, startFrame, endFrame, scale, logLevel, chromiumOptions, delayRenderTimeout, envVariables, inputProps, concurrency, offthreadVideoCacheSizeInBytes, jpegQuality, disallowParallelEncoding, multiProcessOnLinux, beepOnFinish, }: {
|
|
21
|
+
export declare const addSequenceRenderJob: ({ compositionId, outName, imageFormat, startFrame, endFrame, scale, logLevel, chromiumOptions, delayRenderTimeout, envVariables, inputProps, concurrency, offthreadVideoCacheSizeInBytes, jpegQuality, disallowParallelEncoding, multiProcessOnLinux, beepOnFinish, repro, }: {
|
|
22
22
|
compositionId: string;
|
|
23
23
|
outName: string;
|
|
24
24
|
imageFormat: VideoImageFormat;
|
|
@@ -36,8 +36,9 @@ export declare const addSequenceRenderJob: ({ compositionId, outName, imageForma
|
|
|
36
36
|
disallowParallelEncoding: boolean;
|
|
37
37
|
multiProcessOnLinux: boolean;
|
|
38
38
|
beepOnFinish: boolean;
|
|
39
|
+
repro: boolean;
|
|
39
40
|
}) => Promise<undefined>;
|
|
40
|
-
export declare const addVideoRenderJob: ({ compositionId, outName, imageFormat, jpegQuality, scale, logLevel, codec, concurrency, crf, startFrame, endFrame, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, audioBitrate, videoBitrate, everyNthFrame, numberOfGifLoops, delayRenderTimeout, audioCodec, disallowParallelEncoding, chromiumOptions, envVariables, inputProps, offthreadVideoCacheSizeInBytes, colorSpace, multiProcessOnLinux, encodingMaxRate, encodingBufferSize, beepOnFinish, }: {
|
|
41
|
+
export declare const addVideoRenderJob: ({ compositionId, outName, imageFormat, jpegQuality, scale, logLevel, codec, concurrency, crf, startFrame, endFrame, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, audioBitrate, videoBitrate, everyNthFrame, numberOfGifLoops, delayRenderTimeout, audioCodec, disallowParallelEncoding, chromiumOptions, envVariables, inputProps, offthreadVideoCacheSizeInBytes, colorSpace, multiProcessOnLinux, encodingMaxRate, encodingBufferSize, beepOnFinish, repro, }: {
|
|
41
42
|
compositionId: string;
|
|
42
43
|
outName: string;
|
|
43
44
|
imageFormat: VideoImageFormat;
|
|
@@ -70,6 +71,7 @@ export declare const addVideoRenderJob: ({ compositionId, outName, imageFormat,
|
|
|
70
71
|
encodingMaxRate: string | null;
|
|
71
72
|
encodingBufferSize: string | null;
|
|
72
73
|
beepOnFinish: boolean;
|
|
74
|
+
repro: boolean;
|
|
73
75
|
}) => Promise<undefined>;
|
|
74
76
|
export declare const unsubscribeFromFileExistenceWatcher: ({ file, clientId, }: {
|
|
75
77
|
file: string;
|
|
@@ -50,7 +50,7 @@ const addStillRenderJob = ({ compositionId, outName, imageFormat, jpegQuality, f
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
exports.addStillRenderJob = addStillRenderJob;
|
|
53
|
-
const addSequenceRenderJob = ({ compositionId, outName, imageFormat, startFrame, endFrame, scale, logLevel, chromiumOptions, delayRenderTimeout, envVariables, inputProps, concurrency, offthreadVideoCacheSizeInBytes, jpegQuality, disallowParallelEncoding, multiProcessOnLinux, beepOnFinish, }) => {
|
|
53
|
+
const addSequenceRenderJob = ({ compositionId, outName, imageFormat, startFrame, endFrame, scale, logLevel, chromiumOptions, delayRenderTimeout, envVariables, inputProps, concurrency, offthreadVideoCacheSizeInBytes, jpegQuality, disallowParallelEncoding, multiProcessOnLinux, beepOnFinish, repro, }) => {
|
|
54
54
|
return callApi('/api/render', {
|
|
55
55
|
compositionId,
|
|
56
56
|
type: 'sequence',
|
|
@@ -74,10 +74,11 @@ const addSequenceRenderJob = ({ compositionId, outName, imageFormat, startFrame,
|
|
|
74
74
|
disallowParallelEncoding,
|
|
75
75
|
multiProcessOnLinux,
|
|
76
76
|
beepOnFinish,
|
|
77
|
+
repro,
|
|
77
78
|
});
|
|
78
79
|
};
|
|
79
80
|
exports.addSequenceRenderJob = addSequenceRenderJob;
|
|
80
|
-
const addVideoRenderJob = ({ compositionId, outName, imageFormat, jpegQuality, scale, logLevel, codec, concurrency, crf, startFrame, endFrame, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, audioBitrate, videoBitrate, everyNthFrame, numberOfGifLoops, delayRenderTimeout, audioCodec, disallowParallelEncoding, chromiumOptions, envVariables, inputProps, offthreadVideoCacheSizeInBytes, colorSpace, multiProcessOnLinux, encodingMaxRate, encodingBufferSize, beepOnFinish, }) => {
|
|
81
|
+
const addVideoRenderJob = ({ compositionId, outName, imageFormat, jpegQuality, scale, logLevel, codec, concurrency, crf, startFrame, endFrame, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, audioBitrate, videoBitrate, everyNthFrame, numberOfGifLoops, delayRenderTimeout, audioCodec, disallowParallelEncoding, chromiumOptions, envVariables, inputProps, offthreadVideoCacheSizeInBytes, colorSpace, multiProcessOnLinux, encodingMaxRate, encodingBufferSize, beepOnFinish, repro, }) => {
|
|
81
82
|
return callApi('/api/render', {
|
|
82
83
|
compositionId,
|
|
83
84
|
type: 'video',
|
|
@@ -116,6 +117,7 @@ const addVideoRenderJob = ({ compositionId, outName, imageFormat, jpegQuality, s
|
|
|
116
117
|
encodingBufferSize,
|
|
117
118
|
encodingMaxRate,
|
|
118
119
|
beepOnFinish,
|
|
120
|
+
repro,
|
|
119
121
|
});
|
|
120
122
|
};
|
|
121
123
|
exports.addVideoRenderJob = addVideoRenderJob;
|
|
@@ -58,7 +58,8 @@ const renderQueue = {
|
|
|
58
58
|
overflowY: 'auto',
|
|
59
59
|
};
|
|
60
60
|
const RenderQueue = () => {
|
|
61
|
-
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
61
|
+
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
62
|
+
.previewServerState.type;
|
|
62
63
|
const { jobs } = (0, react_1.useContext)(context_1.RenderQueueContext);
|
|
63
64
|
const { canvasContent } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
64
65
|
const previousJobCount = react_1.default.useRef(jobs.length);
|
|
@@ -17,7 +17,8 @@ const SidebarRenderButton = ({ composition, visible }) => {
|
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
19
|
}, []);
|
|
20
|
-
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
20
|
+
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
21
|
+
.previewServerState.type;
|
|
21
22
|
const { props } = (0, react_1.useContext)(remotion_1.Internals.EditorPropsContext);
|
|
22
23
|
const onClick = (0, react_1.useCallback)((e) => {
|
|
23
24
|
var _a;
|
|
@@ -65,6 +66,7 @@ const SidebarRenderButton = ({ composition, visible }) => {
|
|
|
65
66
|
initialEncodingMaxRate: defaults.encodingMaxRate,
|
|
66
67
|
initialUserAgent: defaults.userAgent,
|
|
67
68
|
initialBeep: defaults.beepOnFinish,
|
|
69
|
+
initialRepro: defaults.repro,
|
|
68
70
|
});
|
|
69
71
|
}, [composition.defaultProps, composition.id, props, setSelectedModal]);
|
|
70
72
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
@@ -23,7 +23,8 @@ const StaticFilePreview = ({ currentAsset, assetMetadata }) => {
|
|
|
23
23
|
const fileType = (0, Preview_1.getPreviewFileType)(currentAsset);
|
|
24
24
|
const staticFileSrc = (0, remotion_1.staticFile)(currentAsset);
|
|
25
25
|
const staticFiles = (0, remotion_1.getStaticFiles)();
|
|
26
|
-
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
26
|
+
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
27
|
+
.previewServerState.type;
|
|
27
28
|
const exists = staticFiles.find((file) => file.name === currentAsset);
|
|
28
29
|
if (connectionStatus === 'disconnected') {
|
|
29
30
|
return (0, jsx_runtime_1.jsx)("div", { style: errMsgStyle, children: "Studio server disconnected" });
|