MoviePlayer

  1. 3 days ago

    Bob G

    Nov 14 Pre-Release Testers, Xojo Pro Minneapolis

    In a very simple app, user clicks a couple of button and sees a movie clip. The window is set to show full screen and the movie player control resizes along with the window. The movie then fills most of the screen.

    Works fine on Mac.
    On Windows, the movie plays in a much smaller rectangle in the middle of the player surrounded by large black borders.

    Anyone have any clues?

    -Bob

    From a quick test it seems like the video doesn't scale past 100% unless you double click to go to fullscreen so it remains in a central bordered position if its smaller than the screen.

    You can change this with the following code:

    Dim obj As OLEObject = MoviePlayer1.MovieController
    obj.Value("stretchToFit") = True
  2. Julian S

    Nov 14 Pre-Release Testers, Xojo Pro Answer UK

    From a quick test it seems like the video doesn't scale past 100% unless you double click to go to fullscreen so it remains in a central bordered position if its smaller than the screen.

    You can change this with the following code:

    Dim obj As OLEObject = MoviePlayer1.MovieController
    obj.Value("stretchToFit") = True
  3. Bob G

    Nov 14 Pre-Release Testers, Xojo Pro Minneapolis

    Julian,

    Thanks for the answer. It does solve the problem.

    If someone is listening, I think this should be added to the documentation in an obvious place.

    -Bob

or Sign Up to reply!