MoviePlayer.HasVolumeControl

From Xojo Documentation

Revision as of 15:57, 7 October 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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