Capítulo 186 de 988

Chapter 186: Controlling Volume

Core Idea

You can use the volume prop to control the volume.

Key Concepts

  • Changing volume over time

Code Examples

export const MyComposition = () => {
  return (
    <AbsoluteFill>
      <div>Hello World!</div>
      <Audio src={staticFile('audio.mp3')} volume={0.5} />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for Controlling Volume from the official docs.

Key Takeaways

  1. Understand changing volume over time when working with Controlling Volume.

Connects To

  • Animatedimage: related page in the Assets & Media section.
  • Delaying: related page in the Assets & Media section.
  • Exporting: related page in the Assets & Media section.