Back to Remotion

Delaying Audio

packages/docs/docs/audio/delaying.mdx

4.0.503493 B
Original Source

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

Use the from prop to delay the audio from playing.

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

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

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