Skip to content

🎥 Make videos programmatically with React

292 B
Raw Blame
import {Html5Video, interpolate} from 'remotion';

const RemoteVideo: React.FC = () => {
	return (
		<Html5Video
			volume={(f) =>
				interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
			}
			src="https://remotion.media/BigBuckBunny.mp4"
		/>
	);
};

export default RemoteVideo;