File size: 1,138 Bytes
1c1e321 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
import {Subtitle} from './Subtitle';
import {
spring,
AbsoluteFill,
useCurrentFrame,
useVideoConfig,
Audio,
staticFile,
Video,
} from 'remotion';
import {preloadAudio, resolveRedirect} from '@remotion/preload';
export const HelloWorld = ({titleText, titleColor}) => {
const frame = useCurrentFrame();
const {fps} = useVideoConfig();
const scale = spring({
fps,
frame,
config: {
damping: 200,
mass: 0.5,
stiffness: 200,
overshootClamping: false,
restDisplacementThreshold: 0.01,
restSpeedThreshold: 0.01,
},
});
return (
<AbsoluteFill style={{position: 'relative', backgroundColor: 'black'}}>
<Audio
volume={0.15}
src={staticFile('background.mp3')}
// src={'https://yakova-streamer.hf.space/download/20707'}
/>
{/* <Video
src={
'https://player.vimeo.com/external/514185553.hd.mp4?s=33cb766901019185385a757eab89a9fd0d50d0c0&profile_id=172&oauth2_token_id=57447761'
}
/> */}
{/* <Audio src={'https://yakova-streamer.hf.space/download/20711'} /> */}
{/* <img src={''} style={{transform: `scale(${scale})`}} /> */}
<Subtitle />
</AbsoluteFill>
);
};
|