You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Corresponds to the [`crossOrigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-crossorigin) attribute of the underlying `<audio>` element used when `<Audio>` falls back to HTML5 audio rendering. Set this to `'anonymous'` or `'use-credentials'`when loading media from another domain that requires CORS.
175
+
Controls the CORS mode when the audio is fetched. Set to `'anonymous'` or `'use-credentials'`to pass the corresponding [`RequestInit`](https://developer.mozilla.org/en-US/docs/Web/API/RequestInit#credentials) options.
176
176
177
177
```tsx twoslash title="Loading a remote audio file with CORS enabled"
178
178
import {AbsoluteFill} from'remotion';
@@ -181,10 +181,7 @@ import {Audio} from '@remotion/media';
Corresponds to the [`crossOrigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#attr-crossorigin) attribute of the underlying `<video>` element used when `<Video>` falls back to HTML5 video rendering. Set this to `'anonymous'` or `'use-credentials'`when loading media from another domain that requires CORS.
163
+
Controls the CORS mode when the video is fetched. Set to `'anonymous'` or `'use-credentials'`to pass the corresponding [`RequestInit`](https://developer.mozilla.org/en-US/docs/Web/API/RequestInit#credentials) options.
164
164
165
165
```tsx twoslash title="Loading a remote video with CORS enabled"
166
166
import {AbsoluteFill} from'remotion';
@@ -169,10 +169,7 @@ import {Video} from '@remotion/media';
0 commit comments