MoviePlayer.AutoAdjustToMovieSize

From Xojo Documentation

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

New in 2019r2

Supported for all project types and targets.

If True, the MoviePlayer control resizes itself to fit the size of the movie. The default is True.

Notes

Because movie loading is asynchronous, you should not have AutoAdjustToMovieSize = True if you are also manually modifying the Width and Height as it is possible that the auto resizing will occur after you have changed the size.

Sample Code

This example turns off AutoAdjustToMovieSize.

Var f As FolderItem
f = FolderItem.ShowOpenFileDialog(FileTypes1.VideoMp4)
If f <> Nil Then
MoviePlayer1.AutoAdjustToMovieSize = False
MoviePlayer1.movie = Movie.Open(f)
End If