Mbonea commited on
Commit
d86c84c
1 Parent(s): 5a3f16c

Added Images

Browse files
Remotion-app/src/HelloWorld/ImageStream.jsx ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import {Series} from 'remotion';
2
+ import React from 'react';
3
+ import {staticFile, useVideoConfig, Img} from 'remotion';
4
+ import imageSequences from './Assets/ImageSequences.json';
5
+ import {TransitionSeries} from '@remotion/transitions';
6
+ export default function ImageStream() {
7
+ const {fps} = useVideoConfig();
8
+ return (
9
+ <TransitionSeries
10
+ style={{
11
+ color: 'white',
12
+ position: 'absolute',
13
+ zIndex: 4,
14
+ }}
15
+ >
16
+ {imageSequences.map((entry, index) => {
17
+ return (
18
+ <TransitionSeries.Sequence
19
+ key={index}
20
+ from={fps * entry.start}
21
+ durationInFrames={fps * (entry.end - entry.start)}
22
+ >
23
+ <Img src={staticFile(entry.name)} />
24
+ </TransitionSeries.Sequence>
25
+ );
26
+ })}
27
+ </TransitionSeries>
28
+ );
29
+ }
Remotion-app/src/HelloWorld/index.jsx CHANGED
@@ -1,11 +1,14 @@
1
  import {AbsoluteFill} from 'remotion';
2
  import VideoStream from './VideoStream';
3
  import {TextStream} from './TextStream';
 
4
  import AudioStream from './AudioStream';
 
5
 
6
  export const HelloWorld = () => {
7
  return (
8
  <AbsoluteFill style={{position: 'relative', backgroundColor: 'black'}}>
 
9
  <TextStream />
10
  <VideoStream />
11
  <AudioStream />
 
1
  import {AbsoluteFill} from 'remotion';
2
  import VideoStream from './VideoStream';
3
  import {TextStream} from './TextStream';
4
+
5
  import AudioStream from './AudioStream';
6
+ import ImageStream from './ImageStream';
7
 
8
  export const HelloWorld = () => {
9
  return (
10
  <AbsoluteFill style={{position: 'relative', backgroundColor: 'black'}}>
11
+ <ImageStream />
12
  <TextStream />
13
  <VideoStream />
14
  <AudioStream />