Back to Remotion

Delaying Audio

packages/docs/docs/audio/delaying.mdx

4.0.494583 B
Original Source

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

Use a <Sequence> with a positive from value to delay the audio from playing.

In the following example, the audio will start playing after 100 frames.

tsx
import {AbsoluteFill, Sequence, staticFile} from 'remotion';
import {Audio} from '@remotion/media';

export const MyComposition = () => {
  return (
    <AbsoluteFill>
      <Sequence from={100}>
        <Audio src={staticFile('audio.mp3')} />
      </Sequence>
    </AbsoluteFill>
  );
};