Skip to content

🎥 Make videos programmatically with React

better explainer

Jonny Burger3a7e18a93b83
diff --git a/packages/docs/docs/staticfile.mdx b/packages/docs/docs/staticfile.mdx
index e92e5a3a3a..371d4ee843 100644
--- a/packages/docs/docs/staticfile.mdx
+++ b/packages/docs/docs/staticfile.mdx
@@ -5,7 +5,7 @@ title: staticFile()
crumb: 'API'
---
-<AvailableFrom v="2.5.7" />
+# staticFile()<AvailableFrom v="2.5.7" />
Turns a file in your `public/` folder into an URL which you can then load into your project.
diff --git a/packages/studio/src/error-overlay/remotion-overlay/MediaPlaybackErrorExplainer.tsx b/packages/studio/src/error-overlay/remotion-overlay/MediaPlaybackErrorExplainer.tsx
index a733369809..8ec8b00f9c 100644
--- a/packages/studio/src/error-overlay/remotion-overlay/MediaPlaybackErrorExplainer.tsx
+++ b/packages/studio/src/error-overlay/remotion-overlay/MediaPlaybackErrorExplainer.tsx
@@ -94,7 +94,7 @@ export const MediaPlaybackErrorExplainer: React.FC<{
if (result.type === 'other-error') {
return (
<div style={container}>
- Fetching <code style={codeStyle}>{src}</code> returned status code{' '}
+ ⚠️ Fetching <code style={codeStyle}>{src}</code> returned status code{' '}
{result.statusCode}.
<br />
<a
@@ -111,13 +111,12 @@ export const MediaPlaybackErrorExplainer: React.FC<{
if (result.type === 'wrong-content-type') {
return (
<div style={container}>
- Fetching <code style={codeStyle}>{src}</code> returned a{' '}
- <code style={codeStyle}>{result.contentType}</code> response instead of
- a video. This usually means the URL does not point to an actual media
- file.
- <br />
- If the file is in your <code style={codeStyle}>public/</code> folder,
- make sure to use{' '}
+ ⚠️ Fetching <code style={codeStyle}>{src}</code> returned a{' '}
+ <code style={codeStyle}>{result.contentType}</code> content type.
+ <br />👉 If the file is in your <code style={codeStyle}>
+ public/
+ </code>{' '}
+ folder, make sure to use{' '}
<a
style={linkStyle}
href="https://remotion.dev/docs/staticfile"