Is there a way to call the MoviePlayer to go into full screen without having to right-click and choose full screen from the menu?
The example project starts the movie in full screen, but I cannot figure out how. I have mine embedded in a window with other controls. I was hoping there was a little maximize button contained on the player like the play/pause/stop buttons.
Building on Windows but deploying to both Mac and Windows
I tested this yesterday (on the Mac) and there is no Fullscreen option, nor is there a contextual menu. I’ve also looked at the Apple documentation for the underlying movie player that Xojo uses on the Mac and there isn’t even a function for making a movie player go full screen (for reference Xojo use a AVPlayerLayer not a AVPlayerView).
IMHO, I feel that the most viable x-plat solution that would be to create a secondary window that goes into full screen when opened, then set the movie of the fullscreen player to be the same movie as your document, set the position and then play.
Just make sure that you give people a button to close the fullscreen window and also capture the escape key ( asc( 27 ) IIRC ), which you then use to close the window. When coming out of fullscreen, set the position on the document movieplayer to be that of the fullscreen window.
I hope that this helps.
Thanks Sam! I think I understand what you’re suggesting. I’ll give it a go hopefully this weekend and see how it goes. Thanks again!
Hi Sam. Just circling back. Finally got around to trying this out. Your suggestion worked great! Thanks for the help!