avoid xero
Browse files
Remotion-app/src/HelloWorld/AudioStream.jsx
CHANGED
@@ -6,15 +6,27 @@ import {TransitionSeries} from '@remotion/transitions';
|
|
6 |
export default function AudioStream() {
|
7 |
const {fps} = useVideoConfig();
|
8 |
return (
|
9 |
-
<TransitionSeries
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
{audioSequences.map((entry, index) => {
|
11 |
return (
|
12 |
-
<
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
);
|
19 |
})}
|
20 |
</TransitionSeries>
|
|
|
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 |
+
volume={entry.props.volume}
|
25 |
+
endAt={entry.props.endAt}
|
26 |
+
startFrom={entry.props.startFrom}
|
27 |
+
src={staticFile(entry.name)}
|
28 |
+
/>
|
29 |
+
</TransitionSeries.Sequence>
|
30 |
);
|
31 |
})}
|
32 |
</TransitionSeries>
|
Remotion-app/src/HelloWorld/ImageStream.jsx
CHANGED
@@ -20,7 +20,7 @@ export default function ImageStream() {
|
|
20 |
<TransitionSeries.Sequence
|
21 |
key={index}
|
22 |
from={fps * entry.start}
|
23 |
-
durationInFrames={fps * (entry.end - entry.start)}
|
24 |
>
|
25 |
<Img className="zoomInOut" src={staticFile(entry.name)} />
|
26 |
</TransitionSeries.Sequence>
|
|
|
20 |
<TransitionSeries.Sequence
|
21 |
key={index}
|
22 |
from={fps * entry.start}
|
23 |
+
durationInFrames={fps * (entry.end - entry.start) + 1}
|
24 |
>
|
25 |
<Img className="zoomInOut" src={staticFile(entry.name)} />
|
26 |
</TransitionSeries.Sequence>
|
Remotion-app/src/HelloWorld/SfxStream.jsx
CHANGED
@@ -12,7 +12,7 @@ export default function SfxStream() {
|
|
12 |
<TransitionSeries.Sequence
|
13 |
key={index}
|
14 |
from={fps * entry.start}
|
15 |
-
durationInFrames={fps * (entry.end - entry.start)}
|
16 |
>
|
17 |
<Audio
|
18 |
volume={entry.props.volume}
|
|
|
12 |
<TransitionSeries.Sequence
|
13 |
key={index}
|
14 |
from={fps * entry.start}
|
15 |
+
durationInFrames={fps * (entry.end - entry.start) + 1}
|
16 |
>
|
17 |
<Audio
|
18 |
volume={entry.props.volume}
|