Provide volume control

You can set up a user interface control to adjust the volume for the video.

  1. In the callback routine for the volume control interface element, ensure that the player is in a valid status for this command.

    TIP

    Any status, except for RELEASED is valid.

  2. Call setVolume to set the audio volume.

    For example:

    void setVolume(int volume) throws MediaPlayerException;
    

    The value for the volume represents the requested volume expressed as a proportion of the maximum volume, where 0 is silent and 1 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