Mbonea commited on
Commit
b781b61
·
1 Parent(s): 308f422

removed audio sequences

Browse files
Remotion-app/src/HelloWorld/AudioStream.jsx CHANGED
@@ -1,33 +1,19 @@
1
- import {Series} from 'remotion';
2
  import React from 'react';
3
  import {staticFile, useVideoConfig, Audio} from 'remotion';
4
  import audioSequences from './Assets/AudioSequences.json';
5
- import {TransitionSeries} from '@remotion/transitions';
6
  export default function AudioStream() {
7
  const {fps} = useVideoConfig();
8
  return (
9
- <TransitionSeries
10
- style={{
11
- color: 'white',
12
- position: 'absolute',
13
- zIndex: 0,
14
- }}
15
- >
16
  {audioSequences.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
- <Audio
24
- endAt={entry.props.endAt}
25
- startFrom={entry.props.startFrom}
26
- src={staticFile(entry.name)}
27
- />
28
- </TransitionSeries.Sequence>
29
  );
30
  })}
31
- </TransitionSeries>
32
  );
33
  }
 
 
1
  import React from 'react';
2
  import {staticFile, useVideoConfig, Audio} from 'remotion';
3
  import audioSequences from './Assets/AudioSequences.json';
 
4
  export default function AudioStream() {
5
  const {fps} = useVideoConfig();
6
  return (
7
+ <>
 
 
 
 
 
 
8
  {audioSequences.map((entry, index) => {
9
  return (
10
+ <Audio
11
+ endAt={entry.props.endAt}
12
+ startFrom={entry.props.startFrom}
13
+ src={staticFile(entry.name)}
14
+ />
 
 
 
 
 
 
15
  );
16
  })}
17
+ </>
18
  );
19
  }