🎥 Make videos programmatically with React
Update ES Docs
MehmetAdemi1b1c405194c7
diff --git a/packages/docs/docs/editor-starter/asset-cleanup.mdx b/packages/docs/docs/editor-starter/asset-cleanup.mdxindex c8c036b4c9..601a7295fd 100644--- a/packages/docs/docs/editor-starter/asset-cleanup.mdx+++ b/packages/docs/docs/editor-starter/asset-cleanup.mdx@@ -11,7 +11,7 @@ Assets may lay around in S3 storage buckets and in the local IndexedDB asset cac## When it is safe to delete assets-When the user deletes an asset, they may still undo the deletion by pressing <kbd>⌘/Ctrl</kbd>+<kbd>Z</kbd>.+When the user deletes an asset, they may still undo the deletion by pressing <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>Z</kbd>.As long as the asset is referenced in the [undo stack](/docs/editor-starter/undo-redo), it is not safe to delete it.If you want to clean up assets, you need to ensure that the undo stack is clean, or clear the undo stack.diff --git a/packages/docs/docs/editor-starter/asset-uploads.mdx b/packages/docs/docs/editor-starter/asset-uploads.mdxindex 7b2555ae5a..abefae9b5e 100644--- a/packages/docs/docs/editor-starter/asset-uploads.mdx+++ b/packages/docs/docs/editor-starter/asset-uploads.mdx@@ -15,7 +15,7 @@ By default, S3 is used for cloud storage, which requires some setup.- Create a new bucket.- Uncheck the "Block all public access" checkbox.- Switch the default setting and set **ACLs enabled** - if you don't do this, you will get a 400 error when later uploading assets.-- In the bucket settings, go to the "Permissions" tab and enter the following policy into the "CORS" section:+- Within the created bucket, go to the "Permissions" tab and enter the following policy into the "CORS" section:```json[diff --git a/packages/docs/docs/editor-starter/before-you-buy.mdx b/packages/docs/docs/editor-starter/before-you-buy.mdxindex 1cf70bd4ad..870e2b9b93 100644--- a/packages/docs/docs/editor-starter/before-you-buy.mdx+++ b/packages/docs/docs/editor-starter/before-you-buy.mdx@@ -11,7 +11,7 @@ Is the Editor Starter for you?### You want to make a video editorYou don't want to edit a video for yourself, you want to make a video editor.-You are a developer or have access to a developer.+You are a developer or have a developer on your team.### You want to build it with React 19@@ -25,8 +25,9 @@ You are fine with using Remotion and are okay with its [license](/docs/license).### You want to use Tailwind v4-The Editor Starter uses Tailwind v4.-You are fine with using our starter template or the app you want to integrate it in can use Tailwind v4.+The Editor Starter uses Tailwind v4. To integrate it, your app must also use Tailwind v4.++If you are starting from scratch, our template sets up Tailwind v4 for you. If you are integrating into an existing project that doesn’t use Tailwind v4, plan to add or upgrade to Tailwind v4.### You want to use TypeScript@@ -36,7 +37,7 @@ You are fine with using TypeScript.### You want to iterate on the editorThe Editor Starter is only a starter template.-We assume you will want to put a twist on it, add features or integrate it with AI.+We assume you will want to fork it, add features or integrate it with AI.You are capable of doing so and are aware of the [features that are not included in the Editor Starter](/docs/editor-starter/features-not-included).diff --git a/packages/docs/docs/editor-starter/captioning.mdx b/packages/docs/docs/editor-starter/captioning.mdxindex 72681fef64..ae58b64b15 100644--- a/packages/docs/docs/editor-starter/captioning.mdx+++ b/packages/docs/docs/editor-starter/captioning.mdx@@ -33,7 +33,7 @@ Click "Generate Captions" on a video or audio layer:The [inspector](/docs/editor-starter/tracks-items-assets#inspectors) allows users to edit the following properties of captions by default:- Individual tokens-- Typography: Font, text color, highlighted word color, opacity+- Typography: Font, text color, highlighted word color, text opacity, text stroke width & color- Page duration- Adjust timings of individual wordsdiff --git a/packages/docs/docs/editor-starter/copy-paste.mdx b/packages/docs/docs/editor-starter/copy-paste.mdxindex 51de838d95..07a3e27d78 100644--- a/packages/docs/docs/editor-starter/copy-paste.mdx+++ b/packages/docs/docs/editor-starter/copy-paste.mdx@@ -6,7 +6,7 @@ id: copy-pastecrumb: Editor Starter----The Remotion Editor Starter implements copy and pasting from layers+The Remotion Editor Starter implements copying and pasting from layers.## Considerations@@ -22,7 +22,11 @@ We are therefore using a workaround that is used by [Figma](https://figma.com/)## Ways of copy-pasting-Copy and pasting works by right-clicking on an item, or using the standard keyboard shortcuts <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>X</kbd>, <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>C</kbd> and <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>V</kbd>.+Copy and pasting works by right-clicking on an item, or using the standard keyboard shortcuts:++- <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>X</kbd> to cut+- <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>C</kbd> to copy+- <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>V</kbd> to paste## Pastingdiff --git a/packages/docs/docs/editor-starter/dependencies.mdx b/packages/docs/docs/editor-starter/dependencies.mdxindex 9ae2e9800f..8932d16cb7 100644--- a/packages/docs/docs/editor-starter/dependencies.mdx+++ b/packages/docs/docs/editor-starter/dependencies.mdx@@ -11,7 +11,7 @@ The reference implementation is built in [React Router v7](https://reactrouter.c## Captions-The [OpenAI](https://platform.openai.com/docs/guides/speech-to-text) API is used for captioning.+OpenAI's [Audio API](https://platform.openai.com/docs/guides/speech-to-text) is used for captioning.Captioning is optional, but it is enabled by default and an OpenAI API key is required to use it.## Asset uploads@@ -26,8 +26,7 @@ This means that in order for rendering to work, an AWS account is required and A## Google Fonts-Fonts are loaded from [Google Fonts](https://fonts.google.com/).-No API key is required for this.+Fonts are loaded from [Google Fonts](https://fonts.google.com/). No API key is required for this.## NPM packagesdiff --git a/packages/docs/docs/editor-starter/features-not-included.mdx b/packages/docs/docs/editor-starter/features-not-included.mdxindex 1717a71eef..0785b14c65 100644--- a/packages/docs/docs/editor-starter/features-not-included.mdx+++ b/packages/docs/docs/editor-starter/features-not-included.mdx@@ -14,7 +14,8 @@ Certain features may:- be too complex for buyers to understand and adopt or- not be essential.-We design the Editor Starter to be a starting point for developers wanting to build apps with video editing capabilities, not a complete product.+We design the Editor Starter to be a starting point for developers wanting to build apps with video editing capabilities, not a complete product.+Our focus is to give you something simple that you are able to understand and iterate on.This means that if you want the include certain features, you will have to implement them yourself.@@ -83,7 +84,7 @@ You also need to refactor the Font Picker to show the additional fonts from addi## Captioning long audio files-Currently, we use the OpenAI Whisper API to caption audio files, which is limited to audio files up to 25 minutes.+Currently, we use the OpenAI Whisper API to caption audio files, which is limited to audio files up to 25MB in size.It is left up to you to decide how to handle long audio files.## Light modediff --git a/packages/docs/docs/editor-starter/features.mdx b/packages/docs/docs/editor-starter/features.mdxindex a79e186919..271e16b118 100644--- a/packages/docs/docs/editor-starter/features.mdx+++ b/packages/docs/docs/editor-starter/features.mdx@@ -6,19 +6,23 @@ id: featurescrumb: Editor Starter----This is a list of features that are available in the [Editor Starter](https://remotion.pro/editor-starter).+On this page, we list the features that are available in the [Editor Starter](https://remotion.pro/editor-starter).++The Editor Starter consists of the following parts illustrated in this graphic:++<img src="https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/Remotion%20Editor%20Starter%20Structure.png" />## Feature flags-Many features are behind feature flags, which can be enabled or disabled by switching the flags in [`src/editor/flags.ts`](https://github.com/remotion-dev/editor-starter/blob/main/src/editor/flags.ts).+Many features are behind feature flags, which can be enabled or disabled by switching the flags in [`src/editor/flags.ts`](https://github.com/remotion-dev/editor-starter/blob/main/src/editor/flags.ts).+Feature flags are useful:- To disable features you don't need- To search the codebase for them and find where a feature is implemented- To understand which features you are adopting for your own project-If a feature has a flag, you can click on it on this page to see the usages in the codebase.-The link will only work if you have bought the Editor Starter and are logged into GitHub.+On this page; if a feature has a flag, you can click on it to see the usages in the codebase. The links for the feature flags will only work if you have bought the Editor Starter (i.e., you have access to the repository) and are logged into GitHub.## Item types@@ -56,17 +60,17 @@ Feature flag: [`FEATURE_IMPORT_ASSETS_TOOL`](https://github.com/search?q=repo%3AShows a button to import assets onto the canvas.-### Download state button+### Undo button-Feature flag: [`FEATURE_DOWNLOAD_STATE`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_DOWNLOAD_STATE&type=code)+Feature flag: [`FEATURE_UNDO_BUTTON`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_UNDO_BUTTON&type=code)-Shows a button to download the current state of the project.+Shows a button to undo the last action.-### Load state button+### Redo button-Feature flag: [`FEATURE_LOAD_STATE`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_LOAD_STATE&type=code)+Feature flag: [`FEATURE_REDO_BUTTON`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_REDO_BUTTON&type=code)-Shows a button to load a state of the project that has been downloaded with the [`FEATURE_DOWNLOAD_STATE`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_DOWNLOAD_STATE&type=code) button.+Shows a button to redo the last action.### Save button@@ -74,17 +78,17 @@ Feature flag: [`FEATURE_SAVE_BUTTON`](https://github.com/search?q=repo%3AremotioShows a button to save the current state of the project.-### Undo button+### Download state button-Feature flag: [`FEATURE_UNDO_BUTTON`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_UNDO_BUTTON&type=code)+Feature flag: [`FEATURE_DOWNLOAD_STATE`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_DOWNLOAD_STATE&type=code)-Shows a button to undo the last action.+Shows a button to download the current state of the project.-### Redo button+### Load state button-Feature flag: [`FEATURE_REDO_BUTTON`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_REDO_BUTTON&type=code)+Feature flag: [`FEATURE_LOAD_STATE`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_LOAD_STATE&type=code)-Shows a button to redo the last action.+Shows a button to load a state of the project that has been downloaded with the [`FEATURE_DOWNLOAD_STATE`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_DOWNLOAD_STATE&type=code) button.## Timeline@@ -96,11 +100,12 @@ Items are organized in "tracks", allowing multiple items to be placed at the samPressing and dragging on the time ticks allows you to move the playhead and therefore the position of the video.If you drag the playhead to the edge of the timeline, the timeline will scroll.-### Zoom slider+### Dropping assets-Feature flag: [`FEATURE_TIMELINE_ZOOM_SLIDER`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_TIMELINE_ZOOM_SLIDER&type=code)+Feature flag: [`FEATURE_DROP_ASSETS_ON_TIMELINE`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_DROP_ASSETS_ON_TIMELINE&type=code)-Displays a slider at the right of the toolbar allowing to zoom in and out of the timeline.+An asset (image, video, audio, GIF) can be dropped on the timeline to import it and add a new layer.+The item type is detected by [Remotion Media Parser](/docs/media-parser/foreign-file-types) and an appropriate item is created.### Filmstrip thumbnails@@ -108,10 +113,24 @@ Feature flag: [`FEATURE_FILMSTRIP`](https://github.com/search?q=repo%3Aremotion-For video items, preview images are displayed on the timeline.+### Automatic duration++When assets are imported, items are automatically assigned appropriate durations based on the asset's length. Video and audio items use the media duration, while images and text use default durations.++### Drag and dropping++Items can be dragged and repositioned on the timeline. Multi-select is supported, allowing you to drag multiple items at once. A shadow overlay shows where the moving item is being placed when dragging.+### Extend handlesYou can drag on either side of an item to extend or shrink the item.+### Max trim indicators++Feature flag: [`FEATURE_MAX_TRIM_INDICATORS`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_MAX_TRIM_INDICATORS&type=code)++When extending an item, the maximum trim position is shown with a white outline of the selected item.+### Audio waveformFeature flags: [`FEATURE_WAVEFORM`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_WAVEFORM&type=code) and [`FEATURE_AUDIO_WAVEFORM_FOR_VIDEO_ITEM`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_AUDIO_WAVEFORM_FOR_VIDEO_ITEM&type=code)@@ -124,31 +143,12 @@ Feature flag: [`FEATURE_TIMELINE_VOLUME_CONTROL`](https://github.com/search?q=reAudio and video items display a draggable volume line on the timeline waveform. Dragging vertically adjusts the volume in decibels with a visual indicator showing the current level.-### Dropping assets--Feature flag: [`FEATURE_DROP_ASSETS_ON_TIMELINE`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_DROP_ASSETS_ON_TIMELINE&type=code)--An asset (image, video, audio, GIF) can be dropped on the timeline to import it and add a new layer.-The item type is detected by [Remotion Media Parser](/docs/media-parser/foreign-file-types) and an appropriate item is created.-### Fade in and outFeature flags: [`FEATURE_AUDIO_FADE_CONTROL`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_AUDIO_FADE_CONTROL&type=code) and [`FEATURE_VIDEO_FADE_CONTROL`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_VIDEO_FADE_CONTROL&type=code)Audio and video items support fade in and fade out effects. Draggable handles appear on hover at the start and end of items to adjust fade duration, with visual curves showing the fade effect.-### Drag and dropping--Items can be dragged and repositioned on the timeline. Multi-select is supported, allowing you to drag multiple items at once. A shadow overlay shows where the moving item is being placed when dragging.--### Automatic duration--When assets are imported, items are automatically assigned appropriate durations based on the asset's length. Video and audio items use the media duration, while images and text use default durations.--### Multi-select--Multiple items can be selected using Cmd/Ctrl+click (alternatively Shift+click) to add items to the selection, or range selection (so called Marquee selection) is possible by choosing a contiguous block of items. Selected items can be moved, deleted, or edited together.-### Splitting itemsFeature flag: [`FEATURE_SPLIT_ITEM`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_SPLIT_ITEM&type=code)@@ -156,23 +156,23 @@ Feature flag: [`FEATURE_SPLIT_ITEM`](https://github.com/search?q=repo%3AremotionItems can be split at the current playhead position using the scissors tool.The split creates two separate items, properly handling fade effects and media start times for the new segments.-### Hide track+### Multi-select / Marquee selection-Feature flag: [`FEATURE_HIDE_TRACKS`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_HIDE_TRACKS&type=code)+Feature flag: [`FEATURE_TIMELINE_MARQUEE_SELECTION`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_TIMELINE_MARQUEE_SELECTION&type=code)-Allows hiding the tracks on the timeline.+Multiple items can be selected using <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+click (alternatively <kbd>Shift</kbd>+click) to add items to the selection, or so called Marquee selection to create a selection rectangle that selects all items within its bounds. Selected items can be moved, deleted, or edited together.-### Max trim indicators+### Hide track-Feature flag: [`FEATURE_MAX_TRIM_INDICATORS`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_MAX_TRIM_INDICATORS&type=code)+Feature flag: [`FEATURE_HIDE_TRACKS`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_HIDE_TRACKS&type=code)-When extending an item, the maximum trim position is shown with a white outline of the item.+Allows hiding a specific track on the timeline.### Mute trackFeature flag: [`FEATURE_MUTE_TRACKS`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_MUTE_TRACKS&type=code)-Allows muting the track.+Allows muting a specific track on the timeline.### Rolling edits@@ -180,38 +180,35 @@ Feature flag: [`FEATURE_ROLLING_EDITS`](https://github.com/search?q=repo%3AremotRolling edits are a video editing feature that allows you to adjust the cut point between two adjacent timeline items without changing their total combined duration or position on the timeline.-### Marquee selection--Feature flag: [`FEATURE_TIMELINE_MARQUEE_SELECTION`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_TIMELINE_MARQUEE_SELECTION&type=code)--Multiple items can be selected while holding the mouse down on an empty area of the timeline and dragging it to another place, selecting all items inbetween.-## InspectorOn the right side of the screen, an inspector is displayed which allows for editing the properties of the selected item.-The following features are available+The following features are available.### Composition inspector-If no item is selected, controls for the whole composition are displayed: Setting the dimensions and triggering a render.+If no item is selected, controls for the whole composition are displayed (i.e., composition inspector):++- Setting the dimensions+- Triggering a render### Swap dimensions buttonFeature flag: [`FEATURE_SWAP_COMPOSITION_DIMENSIONS_BUTTON`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_SWAP_COMPOSITION_DIMENSIONS_BUTTON&type=code)-In the composition inspector, show a button to swap the width and height of the composition.+Shows a button to swap the width and height of the composition (i.e., within the composition inspector).### Source infoFeature flag: [`FEATURE_SOURCE_CONTROL`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_SOURCE_CONTROLO&type=code)-Shows information about the associated [asset](/docs/editor-starter/tracks-items-assets#assets) of this item, such as the file name and size, and [upload progress](/docs/editor-starter/asset-uploads) and [download progress](/docs/editor-starter/persistance) of the asset.+Shows information about the associated [asset](/docs/editor-starter/tracks-items-assets#assets) of a selected item, such as the file name, file size, [upload progress](/docs/editor-starter/asset-uploads) and [download progress](/docs/editor-starter/persistance) of that asset.### Layer alignmentFeature flag: [`FEATURE_ALIGNMENT_CONTROL`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_ALIGNMENT_CONTROL&type=code)-Buttons for aligning the item to the left, vertical center, right, top, horizontal center, bottom.+Buttons for aligning the item to the; left, vertical center, right, top, horizontal center, bottom.### Position controls@@ -229,7 +226,7 @@ Allows setting the width and height of the item.Feature flag: [`FEATURE_BORDER_RADIUS_CONTROL`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_BORDER_RADIUS_CONTROL&type=code)-Allows setting the border radius of the item.+Allows setting the border radius of the item. In the UI, the border radius is named "Corner Radius".### Opacity control@@ -353,6 +350,12 @@ Feature flag: [`FEATURE_CAPTIONS_PAGE_DURATION_CONTROL`](https://github.com/searA control allowing to set the duration of one page of captions.+### Lines of caption text++Feature flag: [`FEATURE_TEXT_MAX_LINES_CONTROL`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_TEXT_MAX_LINES_CONTROL&type=code)++Limits the number of lines of caption text that can be displayed in a text item.+### Caption highlight colorFeature flag: [`FEATURE_CAPTIONS_HIGHLIGHT_COLOR_CONTROL`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_CAPTIONS_HIGHLIGHT_COLOR_CONTROL&type=code)@@ -384,7 +387,7 @@ Shows a button to jump to the end of the video.Feature flag: [`FEATURE_FULLSCREEN_CONTROL`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_FULLSCREEN_CONTROL&type=code)-Allows entering fullscreen mode for the video player (exiting with Esc).+Allows entering fullscreen mode for the video player (exiting with <kbd>Esc</kbd>).### Mute button@@ -398,6 +401,12 @@ Feature flag: [`FEATURE_LOOP_BUTTON`](https://github.com/search?q=repo%3AremotioSwitcher button to enable or disable looping of the entire timeline.+### Zoom slider++Feature flag: [`FEATURE_TIMELINE_ZOOM_SLIDER`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_TIMELINE_ZOOM_SLIDER&type=code)++Displays a slider at the right-side, just above the timeline, allowing to zoom in and out of the timeline.+## Canvas### Click to select@@ -406,30 +415,27 @@ Clicking on items in the canvas selects them. Selected items show a blue outline### Move and resize-Selected items can be dragged to move their position on the canvas. Resize handles appear on selected items allowing for width and height adjustment by dragging the corners or edges.+Selected items can be dragged to move their position on the canvas. <br />+Resize handles appear on selected items allowing for width and height adjustment by dragging the corners or edges.### Shift axis lockFeature flag: [`FEATURE_SHIFT_AXIS_LOCK`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_SHIFT_AXIS_LOCK&type=code)-While holding Shift whend dragging constrains item movement to horizontal or vertical axis only, helping with precise positioning and alignment.+While holding <kbd>Shift</kbd> when dragging; constrains item movement to horizontal or vertical axis only, helping with precise positioning and alignment.### Shift aspect ratio lockFeature flag: [`FEATURE_SHIFT_KEY_TO_OVERRIDE_ASPECT_RATIO_LOCK`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_SHIFT_KEY_TO_OVERRIDE_ASPECT_RATIO_LOCK&type=code) (_disabled by default_)-Holding Shift while resizing video items overrides the original aspect ratio, enabling distortion when scaling video items up or down.+While holding <kbd>Shift</kbd> when resizing video items; overrides the original aspect ratio, enabling distortion when scaling video items up or down.This feature is disabled by default.-### Multi-select--Multiple items can be selected by holding Cmd/Ctrl while clicking additional items. All selected items can be moved together.--### Marquee selection+### Multi-select / Marquee selectionFeature flag: [`FEATURE_CANVAS_MARQUEE_SELECTION`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_CANVAS_MARQUEE_SELECTION&type=code)-Click and drag on empty canvas areas to create a selection rectangle that selects all items within its bounds. Useful for quickly selecting multiple items in a region.+Multiple items can be selected using <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+click (alternatively <kbd>Shift</kbd>+click) to add items to the selection, or so called Marquee selection to create a selection rectangle that selects all items within its bounds. Selected items can be moved, deleted, or edited together.### Dropping assets@@ -442,14 +448,15 @@ The item is automatically positioned to start at the current time and at the posFeature flag: [`FEATURE_CANVAS_ZOOM_CONTROLS`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_CANVAS_ZOOM_CONTROLS&type=code)-Shows an interface at the top right of the editor to zoom in and out.+Shows an interface at the top right of the editor to zoom in and out within the canvas.The zoom level on the canvas is displayed as a percentage and can be reset to fit the available space.### Zoom gesturesFeature flag: [`FEATURE_CANVAS_ZOOM_GESTURES`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_CANVAS_ZOOM_GESTURES&type=code)-On desktop, holding Ctrl/Cmd while scrolling the mouse wheel zooms in and out of the canvas with the mouse position as the zoom center.+On desktop, holding <kbd>Cmd</kbd>/<kbd>Ctrl</kbd> while scrolling the mouse wheel zooms in and out of the canvas, with the mouse position as the zoom center.+On touch devices, pinch gestures zoom into the canvas.### Zoom keyboard shortcuts@@ -463,7 +470,8 @@ Press <kbd>0</kbd> to reset the zoom.Feature flags: [`FEATURE_COPY_PASTE_LAYERS`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_COPY_PASTE_LAYERS&type=code) and [`FEATURE_PASTE_ASSETS`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_PASTE_ASSETS&type=code)-Items can be copied with Cmd/Ctrl+C and pasted with Cmd/Ctrl+V. Pasted items are automatically positioned and can include text, images, and other assets from the clipboard.+Items can be copied with <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>C</kbd> and pasted with <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>V</kbd>. <br />+Pasted items are automatically positioned and can include text, images, and other assets from the clipboard.### Bring to front / Send to backdiff --git a/packages/docs/docs/editor-starter/fonts.mdx b/packages/docs/docs/editor-starter/fonts.mdxindex 847adc8d1c..3d306e31f3 100644--- a/packages/docs/docs/editor-starter/fonts.mdx+++ b/packages/docs/docs/editor-starter/fonts.mdx@@ -15,6 +15,7 @@ The font stack is implemented on [`@remotion/google-fonts`](/docs/google-fonts).- Changing the font style ("Regular" / "Bold" / "Italic")- Changing the font size- Changing the text color+- Changing the font stroke (width and color)- Changing the line height- Changing the letter spacing- Changing the text alignment ("Left" / "Center" / "Right")@@ -31,7 +32,8 @@ In addition, `TikTok Sans` was added, because it is the default font for TikTok.Change the script [`generate-google-font-info.ts`](https://github.com/remotion-dev/editor-starter/blob/main/src/scripts/generate-google-font-info.ts) to include the fonts you want to include.-See the [font picker docs](/docs/font-picker) to for example get a list of more fonts.+See the [font picker docs](/docs/font-picker) to for example get a list of more fonts.+Then run:```bash@@ -57,7 +59,7 @@ See the [`FEATURE_FONT_FAMILY_DROPDOWN_RENDER_IN_FONT`](/docs/editor-starter/fea## Hover to preview font family-When hovering over an item in the font dropdown, the text item in the canvas updates with a preview of what the item would look like if it the hovered item was selected.+When hovering over an item in the font dropdown, the text item in the canvas updates with a preview of what the item would look like if the hovered item was selected.See the [`FEATURE_FONT_FAMILY_DROPDOWN_HOVER_PREVIEW`](/docs/editor-starter/features#hover-to-preview-font-family) feature to see how it works.diff --git a/packages/docs/docs/editor-starter/persistance.mdx b/packages/docs/docs/editor-starter/persistance.mdxindex 9dd4b3e626..d694b3d291 100644--- a/packages/docs/docs/editor-starter/persistance.mdx+++ b/packages/docs/docs/editor-starter/persistance.mdx@@ -31,7 +31,7 @@ If you want to save the state remotely, you can:There are 2 ways to save the state:- By clicking the "Save" button in the top toolbar-- By using the keyboard shortcut <kbd>Ctrl/Cmd</kbd> + <kbd>S</kbd> ([source](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter+const+SaveShortcut&type=code))+- By using the keyboard shortcut <kbd>Cmd</kbd>/<kbd>Ctrl</kbd> + <kbd>S</kbd> ([source](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter+const+SaveShortcut&type=code))See our suggestion for implementing an [auto-save](/docs/editor-starter/features-not-included#auto-save) feature if you want to save the state automatically.@@ -45,7 +45,7 @@ If you also want to persist parts of the non-undoable state, you can accept more### Disabling-The save functionality is behind the feature flag [`FEATURE_SAVE_STATE`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_SAVE_STATE&type=code).+The save functionality is behind the feature flags [`FEATURE_SAVE_BUTTON`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_SAVE_BUTTON&type=code) and [`FEATURE_SAVE_SHORTCUT`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20FEATURE_SAVE_SHORTCUT&type=code).Disable the flag or delete the flag and all the code that is behind it to disable the save functionality.diff --git a/packages/docs/docs/editor-starter/rendering.mdx b/packages/docs/docs/editor-starter/rendering.mdxindex a5c3a43cf8..d6b71d7be9 100644--- a/packages/docs/docs/editor-starter/rendering.mdx+++ b/packages/docs/docs/editor-starter/rendering.mdx@@ -13,7 +13,7 @@ Rendering videos to MP4 works using [Remotion Lambda](/docs/lambda), a distributFollow the [Remotion Lambda setup instructions](/docs/lambda/setup) step-by-step to set up your AWS account.:::note-If you have already setup [asset uploads](/docs/editor-starter/asset-uploads), you should skip steps 4 and 5.+If you have already setup [asset uploads](/docs/editor-starter/asset-uploads), you should skip steps 4 and 5 of the Remotion Lambda setup instructions.Don't create a new user, but select the user you created before.:::@@ -56,7 +56,7 @@ If you get an error `'MemorySize' value failed to satisfy constraint: Member mus## Rendering-Is very simple: When no item is selected in the Editor Starter, a Render button shows up in the [inspector](/docs/editor-starter/tracks-items-assets#inspectors).+Is very simple: When no item is selected in the Editor Starter, a Render button shows up in the [inspector](/docs/editor-starter/tracks-items-assets#inspectors) (i.e., composition inspector).The backend endpoint [`/api/render`](/docs/editor-starter/backend-routes#post-apirender) is invoked to trigger a render.Once triggered, [`/api/progress`](/docs/editor-starter/backend-routes#get-apiprogress) is polled to check the progress of the render.diff --git a/packages/docs/docs/editor-starter/setup.mdx b/packages/docs/docs/editor-starter/setup.mdxindex 70000a497e..104cb52914 100644--- a/packages/docs/docs/editor-starter/setup.mdx+++ b/packages/docs/docs/editor-starter/setup.mdx@@ -8,7 +8,7 @@ crumb: Editor StarterAfter obtaining the Editor Starter, you should [fork](https://github.com/remotion-dev/editor-starter/fork) it to your own account.-After cloning the repository, you can install the dependencies by running:+Once you have forked the repository, you can clone it to your local machine, and install the dependencies by doing the following:## Start a new project@@ -66,5 +66,4 @@ See [Rendering](/docs/editor-starter/rendering) for how to setup the Remotion La## Setting up captions-You can setup AI transcription for audio and video assets.-[Editor Starter - Captioning](/docs/editor-starter/captioning)+You can setup AI transcription for audio and video assets. See [Captioning](/docs/editor-starter/captioning) on how to set it up.diff --git a/packages/docs/docs/editor-starter/state-management.mdx b/packages/docs/docs/editor-starter/state-management.mdxindex 017510cc25..117d3c609d 100644--- a/packages/docs/docs/editor-starter/state-management.mdx+++ b/packages/docs/docs/editor-starter/state-management.mdx@@ -11,6 +11,9 @@ State in the [Editor Starter](/docs/editor-starter) is managed with the built-in<details><summary>Why?</summary><p>The Editor Starter was built in a way that as many different teams can adopt it as easily as possible.</p>++<p>We chose to use React's native state management to keep the starter kit lightweight, minimize external dependencies, and leverage familiar patterns for developers already comfortable with React.</p>+<p>While the default React state management utilities are controversial for some, any React application can make use of them and developers are most familiar with them.</p></details>@@ -50,40 +53,40 @@ export type EditorState = {};```-- [`undoableState`](#undoable-state) - State that is affected by the undo stack+- [`undoableState`](#undoable-state) - State that is affected by the undo stack:- `tracks`: An array of [timeline tracks](/docs/editor-starter/tracks-items-assets), the last ones are the ones rendered in the back.- `assets`: A map of all [assets](/docs/editor-starter/tracks-items-assets) that have been uploaded to the editor.- `items`: A map of all [items](/docs/editor-starter/tracks-items-assets) that have been added to the editor.- - `fps`: The frame rate (kept in state, [but no UI is exposed to change it](/docs/editor-starter/features-not-included#multiple-frame-rates))- - `compositionWidth`: The width of the canvas- - `compositionHeight`: The height of the canvas- - `deletedAssets`: An array of assets [that have been deleted](/docs/editor-starter/asset-cleanup)-- `selectedItems`: An array of item IDs that are currently selected-- `textItemEditing`: The ID of the text item that is currently being edited, if there is one-- `textItemHoverPreview`: Preview updates of a text item (for example if a font is hovered in the font picker, the text will render temporarily with the font hovered)-- `rendering`: The state of the rendering process-- `captions`: The state of captioning process-- `initialized`: Whether the editor has been initialized, if not initialized, canvas will not be visible-- `itemsBeingTrimmed`: An array of items that are currently being trimmed, to show an indication of the maximum trim that is possible-- `loop`: Whether the playback should loop+ - `fps`: The frame rate (kept in state, [but by default no UI is exposed to change it](/docs/editor-starter/features-not-included#multiple-frame-rates)).+ - `compositionWidth`: The width of the canvas.+ - `compositionHeight`: The height of the canvas.+ - `deletedAssets`: An array of assets [that have been deleted](/docs/editor-starter/asset-cleanup).+- `selectedItems`: An array of item IDs that are currently selected.+- `textItemEditing`: The ID of the text item that is currently being edited, if there is one.+- `textItemHoverPreview`: Preview updates of a text item (for example if a font is hovered in the font picker, the text will render temporarily with the font hovered).+- `rendering`: The state of the rendering process.+- `captions`: The state of captioning process.+- `initialized`: Whether the editor has been initialized, if not initialized, canvas will not be visible.+- `itemsBeingTrimmed`: An array of items that are currently being trimmed, to show an indication of the maximum trim that is possible.+- `loop`: Whether the playback should loop.- `assetStatus`: A map of asset IDs to their upload status, which can be:- - `pending-upload`: The asset is currently being uploaded- - `uploaded`: The asset has been uploaded successfully- - `error`: The asset upload has failed- - `in-progress`: The asset has not been uploaded yet+ - `pending-upload`: The asset is currently being uploaded.+ - `uploaded`: The asset has been uploaded successfully.+ - `error`: The asset upload has failed.+ - `in-progress`: The asset has not been uploaded yet.## Undoable stateState is separated into undoable and non-undoable parts.Undoable state is located within the `undoableState` object of the root state.-**Undoable state** may be:+**Undoable state** might be:- Position, size and other properties of an item- Assets and tracks- Video properties like dimensions and frame rate-**Non-undoable state** may be:+**Non-undoable state** might be:- Asset upload progress and status- Captioning progressdiff --git a/packages/docs/docs/editor-starter/tracks-items-assets.mdx b/packages/docs/docs/editor-starter/tracks-items-assets.mdxindex a8685bd80a..dc0dc20a10 100644--- a/packages/docs/docs/editor-starter/tracks-items-assets.mdx+++ b/packages/docs/docs/editor-starter/tracks-items-assets.mdx@@ -9,7 +9,7 @@ crumb: Editor StarterThe state of the Editor Starter contains different data types:- **Assets**: Assets refer to media files, such as images, videos, audio, GIFs and captions.-- **Items**: Items are the data type that is represented in the timeline and rendered in the canvas.+- **Items**: Items are the data type that is represented in the timeline and rendered in the canvas. It can encapsulate an asset, be a solid, or text item.- **Tracks**: A track can contain multiple items. Tracks are stacked above each other, with the track showing at the top rendering the items in the front.The relationship between these entities is as following:diff --git a/packages/docs/docs/editor-starter/undo-and-redo.mdx b/packages/docs/docs/editor-starter/undo-and-redo.mdxindex a21bef86f4..063d27cb41 100644--- a/packages/docs/docs/editor-starter/undo-and-redo.mdx+++ b/packages/docs/docs/editor-starter/undo-and-redo.mdx@@ -27,8 +27,8 @@ In these cases, it is appropriate to only commit to the undo stack once the **mo## Preventing unnecessary additions to the undo stack-An addition to the undo stack is only made when the object reference of the state has changed.-If after a state update, JavaScript evaluates `oldState === newState` to `true`, the state update is not added to the undo stack.+The undo stack only adds a new entry when the state object reference actually changes.+If a state update results in `oldState === newState` evaluating to `true`, no entry is added to the undo stack.See [Preventing state updates when nothing has changed](/docs/editor-starter/state-management#preventing-state-updates-when-nothing-has-changed) for more information.