You can set up a user interface control for sound volume.
Wait for the MediaPlayer
instance to be in a valid state for this command.
Any state except for RELEASED or ERROR is valid.
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.