🎥 Make videos programmatically with React
change common misconception that we use chromium
JonnyBurger44e33d0ba8c7
diff --git a/packages/docs/docs/media-playback-error.mdx b/packages/docs/docs/media-playback-error.mdxindex 26a4552b6e..853125b253 100644--- a/packages/docs/docs/media-playback-error.mdx+++ b/packages/docs/docs/media-playback-error.mdx@@ -1,9 +1,9 @@---image: /generated/articles-docs-media-playback-error.pngid: media-playback-error-title: "Could not play video/audio with src"+title: 'Could not play video/audio with src'sidebar_label: Media playback error-crumb: "Troubleshooting"+crumb: 'Troubleshooting'---The following error may occur in your Remotion project during development or while rendering:@@ -20,17 +20,10 @@ orThis error happens when you are trying to embed a `<Video/>` or `<Audio/>` tag in your Remotion project but the browser is unable to load and play the media. Although the browser does not report the exact error, there are two common reasons for this error.-## Codec not supported by Chromium+## Codec not supported by Chrome-Unlike Google Chrome, the Chromium Browser does not include proprietary codecs. This means you cannot play MP4/H.264 videos and some audio codecs (more codecs may not be supported).--**Workaround 1**: Use Chrome, not Chromium.--**Workaround 2**: Convert videos to WebM, [use Chrome instead of Chromium](/docs/config#setbrowserexecutable), or use [`<OffthreadVideo>`](/docs/offthreadvideo).--:::note-Since `v4.0.18`, [downloads a browser](/docs/miscellaneous/chrome-headless-shell) that includes codecs automatically if you don't have a local browser.-:::+Chrome does not support all codecs for playback. For example: HEVC on Linux, `.avi`, `.flv`, `.m3u8`.+Convert the video to a format that is supported by Chrome.## Invalid source@@ -60,18 +53,15 @@ The error message might contain `error creating media player`, appearing if tooFirst check that you are not accidentially creating an infite render loop. For example, changing the `key` frequently will re-create the video tag on every frame:```tsx twoslash-const uuidv4 = () => "";+const uuidv4 = () => '';// ---cut----import { Video } from "remotion";+import {Video} from 'remotion';export default function SBSVideo() {return (<>- {[- "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",- "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",- ].map((video, i) => {+ {['https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4', 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4'].map((video, i) => {return <Video key={uuidv4()} src={video} />;})}</>