import {Loop} from 'remotion'; import React from 'react'; import {Video, staticFile, useVideoConfig} from 'remotion'; import videoSequences from './Assets/VideoSequences.json'; import {TransitionSeries} from '@remotion/transitions'; const VideoStream = React.memo(() => { const {fps} = useVideoConfig(); return ( {videoSequences.map((entry, index) => { return ( ); })} ); }); const VideoX = React.memo(({entry}) => { const {fps} = useVideoConfig(); const videoProps = { pauseWhenBuffering: true, startFrom: (fps * entry.props.startFrom) / 30, endAt: (fps * entry.props.endAt) / 30, volume: (fps * entry.props.volume) / 30, src: staticFile(entry.name), style: entry?.style ? entry.style : {}, playbackRate: entry.props.playbackRate ? entry.props.playbackRate : 1, }; return ( <> {entry?.loop ?