import {Audio, Video} from '@remotion/media'; import type {CSSProperties, ReactNode} from 'react'; import { AbsoluteFill, AnimatedImage, Sequence, staticFile, useCurrentFrame, } from 'remotion'; const video = 'https://remotion.media/video.mp4'; const mediaStyle: CSSProperties = { width: '100%', height: 215, backgroundColor: '#080c14', }; const Panel = ({title, children}: {title: string; children: ReactNode}) => (
{title}
{children}
); const Clock = ({label, color}: {label: string; color: string}) => { const frame = useCurrentFrame(); return (
{label}: {Number(frame.toFixed(2))}
); }; export const SequencePlaybackRateTestbed = () => { const frame = useCurrentFrame(); return (
Sequence playbackRate
Composition frame: {frame} / 239 · 30 fps
Video + audible podcast, both at double speed.
Video is visible on composition frames 30–149
Parent 2× × video 0.75× = 1.5× source playback.
from=60 · trimBefore=60 · durationInFrames=240
Source starts at 2 s; the clip lasts 4 composition seconds.
Each clock uses useCurrentFrame() inside its own sequence.
At composition frame 90, the local frames are 120, 45, 45.
The GIF and its local clock advance at half speed.
); };