Provide volume control
You can set up a user interface control to adjust the volume for the video.
- In the callback routine for the volume control interface element, ensure that the player is in a valid status for this command.Any status, except for RELEASED is valid.
- 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.