Provide volume control

You can set up a user interface control for sound volume.

  1. Wait for the MediaPlayer instance to be in a valid state for this command.

    Any state except for RELEASED or ERROR is valid.

  2. Set the volume attribute on the MediaPlayer instance to set the audio volume.

    player.volume = ...
    

    The value for the volume represents the requested volume expressed as a proportion of the maximum volume, where 0 is silent and is the maximum volume.

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now