Difference between revisions of "MoviePlayer.HasVolumeControl"

From Xojo Documentation

 
Line 28: Line 28:
 
End If
 
End If
 
</rbcode>
 
</rbcode>
 +
 +
[[Category:API 2.0]]

Latest revision as of 15:57, 7 October 2019

Property (As Boolean )
aMoviePlayer.HasVolumeControl = newBooleanValue
or
BooleanValue = aMoviePlayer.HasVolumeControl

New in 2019r2

Supported for all project types and targets.

Displays the speaker volume control.

Notes

When set in code, this takes effect the next time the MoviePlayer control is assigned a movie.

Example

The following example hides the volume control before assigning a movie to the player.

Var f As FolderItem

f = FolderItem.ShowOpenFileDialog(FileTypes1.VideoMp4)
If f <> Nil Then
MoviePlayer1.AutoPlay = True
MoviePlayer1.HasVolumeControl = False
MoviePlayer1.Movie = Movie.Open(f)
End If