MoviePlayer.Speaker

From Xojo Documentation

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

Supported for all project types and targets.

Displays the speaker volume control.

Notes

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

Example

The following example turns off the speaker volume control before assigning a movie to the player.

Dim f As FolderItem

f = GetOpenFolderItem(FileTypes1.VideoMp4)
If f <> Nil Then
MoviePlayer1.AutoPlay = True
MoviePlayer1.Speaker = False
MoviePlayer1.Movie = f.OpenAsMovie
End If