testing
Browse files
Remotion-app/src/HelloWorld/AudioStream.jsx
CHANGED
@@ -1,20 +1,22 @@
|
|
|
|
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 |
-
|
12 |
endAt={entry.props.endAt}
|
13 |
startFrom={entry.props.startFrom}
|
14 |
src={staticFile(entry.name)}
|
15 |
/>
|
16 |
);
|
17 |
})}
|
18 |
-
|
19 |
);
|
20 |
}
|
|
|
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 |
{audioSequences.map((entry, index) => {
|
11 |
return (
|
12 |
<Audio
|
13 |
+
volume={entry.props.volume}
|
14 |
endAt={entry.props.endAt}
|
15 |
startFrom={entry.props.startFrom}
|
16 |
src={staticFile(entry.name)}
|
17 |
/>
|
18 |
);
|
19 |
})}
|
20 |
+
</TransitionSeries>
|
21 |
);
|
22 |
}
|
Remotion-app/src/HelloWorld/ImageStream.jsx
CHANGED
@@ -10,6 +10,9 @@ export default function ImageStream() {
|
|
10 |
<TransitionSeries
|
11 |
style={{
|
12 |
color: 'white',
|
|
|
|
|
|
|
13 |
}}
|
14 |
>
|
15 |
{imageSequences.map((entry, index) => {
|
@@ -19,7 +22,7 @@ export default function ImageStream() {
|
|
19 |
from={fps * entry.start}
|
20 |
durationInFrames={fps * (entry.end - entry.start)}
|
21 |
>
|
22 |
-
<Img src={staticFile(entry.name)} />
|
23 |
</TransitionSeries.Sequence>
|
24 |
);
|
25 |
})}
|
|
|
10 |
<TransitionSeries
|
11 |
style={{
|
12 |
color: 'white',
|
13 |
+
position: 'absolute',
|
14 |
+
zIndex: 0,
|
15 |
+
objectFit: 'cover',
|
16 |
}}
|
17 |
>
|
18 |
{imageSequences.map((entry, 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>
|
27 |
);
|
28 |
})}
|
Remotion-app/src/HelloWorld/SfxStream.jsx
CHANGED
@@ -15,6 +15,7 @@ export default function SfxStream() {
|
|
15 |
durationInFrames={fps * (entry.end - entry.start)}
|
16 |
>
|
17 |
<Audio
|
|
|
18 |
endAt={entry.props.endAt}
|
19 |
startFrom={entry.props.startFrom}
|
20 |
src={staticFile(entry.name)}
|
|
|
15 |
durationInFrames={fps * (entry.end - entry.start)}
|
16 |
>
|
17 |
<Audio
|
18 |
+
volume={entry.props.volume}
|
19 |
endAt={entry.props.endAt}
|
20 |
startFrom={entry.props.startFrom}
|
21 |
src={staticFile(entry.name)}
|
Remotion-app/src/Root.jsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import {Composition} from 'remotion';
|
2 |
import {HelloWorld} from './HelloWorld';
|
3 |
import {DURATION} from './HelloWorld/constants';
|
4 |
-
|
5 |
export const RemotionRoot = () => {
|
6 |
return (
|
7 |
<>
|
|
|
1 |
import {Composition} from 'remotion';
|
2 |
import {HelloWorld} from './HelloWorld';
|
3 |
import {DURATION} from './HelloWorld/constants';
|
4 |
+
import 'index.css';
|
5 |
export const RemotionRoot = () => {
|
6 |
return (
|
7 |
<>
|
Remotion-app/src/index.css
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@keyframes zoomInOut {
|
2 |
+
0% { transform: scale(1); }
|
3 |
+
50% { transform: scale(1.2); }
|
4 |
+
100% { transform: scale(1); }
|
5 |
+
}
|
6 |
+
|
7 |
+
.zoomInOut {
|
8 |
+
animation: zoomInOut 5s ease-in-out infinite;
|
9 |
+
}
|