MoviePlayer.AutoResize

From Xojo Documentation

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

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 AutoResize = 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 AutoResize.

Dim f As FolderItem
f = GetopenFolderItem(FileTypes1.VideoMp4)
If f <> Nil Then
MoviePlayer1.AutoResize = False
MoviePlayer1.movie = f.OpenAsMovie
End If