ok
Browse files
Remotion-app/src/HelloWorld/VideoStream.jsx
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import {Series} from 'remotion';
|
2 |
import React from 'react';
|
3 |
-
import {Video,
|
4 |
import videoSequences from './Assets/VideoSequences.json';
|
5 |
import {TransitionSeries} from '@remotion/transitions';
|
6 |
export default function VideoStream() {
|
@@ -20,7 +20,7 @@ export default function VideoStream() {
|
|
20 |
from={fps * entry.start}
|
21 |
durationInFrames={fps * (entry.end - entry.start)}
|
22 |
>
|
23 |
-
<
|
24 |
</TransitionSeries.Sequence>
|
25 |
);
|
26 |
})}
|
|
|
1 |
import {Series} from 'remotion';
|
2 |
import React from 'react';
|
3 |
+
import {Video, staticFile, useVideoConfig} from 'remotion';
|
4 |
import videoSequences from './Assets/VideoSequences.json';
|
5 |
import {TransitionSeries} from '@remotion/transitions';
|
6 |
export default function VideoStream() {
|
|
|
20 |
from={fps * entry.start}
|
21 |
durationInFrames={fps * (entry.end - entry.start)}
|
22 |
>
|
23 |
+
<Video {...entry.props} src={staticFile(entry.name)} />
|
24 |
</TransitionSeries.Sequence>
|
25 |
);
|
26 |
})}
|