Skip to content

🎥 Make videos programmatically with React

experimental_NewVideo

JonnyBurger05fc82b5ee73
diff --git a/packages/docs/docs/new-video/index.mdx b/packages/docs/docs/new-video/index.mdx
index fb02fad6ad..dd581f4fb1 100644
--- a/packages/docs/docs/new-video/index.mdx
+++ b/packages/docs/docs/new-video/index.mdx
@@ -14,7 +14,7 @@ This component imports and displays a video, similar to [`<OffthreadVideo/>`](/d
```tsx twoslash
import {AbsoluteFill, staticFile} from 'remotion';
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
export const MyVideo = () => {
return (
@@ -29,7 +29,7 @@ You can load a video from an URL as well:
```tsx twoslash
import {AbsoluteFill} from 'remotion';
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
// ---cut---
export const MyComposition = () => {
return (
@@ -61,7 +61,7 @@ For exact behavior, see: [Order of operations](/docs/audio/order-of-operations).
```tsx twoslash
import {AbsoluteFill, staticFile} from 'remotion';
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
// ---cut---
export const MyComposition = () => {
@@ -96,7 +96,7 @@ For exact behavior, see: [Order of operations](/docs/audio/order-of-operations).
```tsx twoslash
import {AbsoluteFill, staticFile} from 'remotion';
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
// ---cut---
export const MyComposition = () => {
@@ -122,7 +122,7 @@ Allows you to control the volume for the whole track or change it on a per-frame
```tsx twoslash title="Example using static volume"
import {AbsoluteFill, staticFile} from 'remotion';
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
// ---cut---
export const MyComposition = () => {
@@ -136,7 +136,7 @@ export const MyComposition = () => {
```tsx twoslash title="Example of a ramp up over 100 frames"
import {AbsoluteFill, interpolate, staticFile} from 'remotion';
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
// ---cut---
export const MyComposition = () => {
@@ -198,7 +198,7 @@ While Remotion doesn't limit the range of possible playback speeds, in developme
```tsx twoslash title="Example of a video playing twice as fast"
import {AbsoluteFill, staticFile} from 'remotion';
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
// ---cut---
export const MyComposition = () => {
@@ -216,7 +216,7 @@ You can drop the audio of the video by adding a `muted` prop:
```tsx twoslash title="Example of a muted video"
import {AbsoluteFill, OffthreadVideo} from 'remotion';
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
// ---cut---
export const MyComposition = () => {
return (
diff --git a/packages/example/src/NewVideo/NewVideo.tsx b/packages/example/src/NewVideo/NewVideo.tsx
index 96f0540cbb..5c0b4cc208 100644
--- a/packages/example/src/NewVideo/NewVideo.tsx
+++ b/packages/example/src/NewVideo/NewVideo.tsx
@@ -1,4 +1,4 @@
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
import {AbsoluteFill, staticFile} from 'remotion';
export const NewVideoExample: React.FC = () => {
diff --git a/packages/example/src/VideoTesting/index.tsx b/packages/example/src/VideoTesting/index.tsx
index 43d5067215..e49e6cf6b4 100644
--- a/packages/example/src/VideoTesting/index.tsx
+++ b/packages/example/src/VideoTesting/index.tsx
@@ -1,4 +1,4 @@
-import {NewVideo} from '@remotion/video';
+import {experimental_NewVideo as NewVideo} from '@remotion/video';
import {
OffthreadVideo,
Sequence,
diff --git a/packages/video/src/index.ts b/packages/video/src/index.ts
index 0b3b04a7aa..4c54a4d273 100644
--- a/packages/video/src/index.ts
+++ b/packages/video/src/index.ts
@@ -1 +1 @@
-export * from './new-video';
+export {NewVideo as experimental_NewVideo} from './new-video';