set Volume To Percentage
Sets the volume to the given percentage value. If showVolumeBar is true, shows the volume bar.
Return
true if the volume was successfully set, false otherwise
Parameters
percentage
the percentage value to set the volume to, as a double between 0 and 1
show Volume Bar
whether to show the volume bar or not