Announcement

Collapse
No announcement yet.

Adding mp4 start-up movie

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding mp4 start-up movie

    Hello friends,
    I'm trying to create a screen with buttons that will be able to play 4 different mp4 HD movies.
    But before showing the this screen I want to be able to play automatically, a splash movie, about 30 sec long, full screen (mp4 format).

    Please advice (I'm kinda novice, so please be patient :lol)

    Thank you!

  • #2
    OK, I tired the build-in Start-up Movie option. Nothing is happening! Video wont play at all.
    I Tried mp4, mp1, mp2, wmv.

    Any idea? maybe trough a script? I need the mp4 format to play.

    Thank you

    Comment


    • #3
      The Video object won't play these files, but the Media Player plugin might. However, as MP4 is not a video format or encoding, but actually a container, I recommend that you bundle an external player with your project, so you aren't depending on the codecs installed on the target system. If the MP4 uses a codec for video or audio which wasn't previously installed on the target system, the file won't play. For this reason, you may want to consider adding "Media Player Classic" (or a similar player which comes with all current codecs and doesn't require installation) to your resources, and call the player with "/fullscreen /close" command line parameters, so it will play the video and close when finished. You would run this external program in the "On Startup" script, wait until the program finished playing back the video, and then continue the initialization showing the first page of your application.

      Ulrich

      Comment


      • #4
        Ulrich, thank you very much for your answer.
        I'm really a novice at this, can you please give me a sample of a script on how to add the "media player" plug-in and then call the video to play?.

        Arie

        Comment


        • #5
          I have attached a sample project, with only one page, and one DialogEx. The DialogEx is used to show the MP4 HD video in fullscreen. The dialog is configured to be shown as "flat", so it doesn't have a title bar. Via script, it is resized to fill the whole desktop, while the Media Player Object plugin is resized to the best size fitting into the available space, without distortion, and centered on the dialog.

          The Lua script is documented, please read and attempt to understand what was done. It shouldn't be too hard to follow, but ask if you run into trouble.

          Ulrich
          Attached Files
          Last edited by Ulrich; 11-13-2014, 06:16 AM. Reason: Updated attachment

          Comment


          • #6
            Seem's to work for me
            Plugins or Sources MokoX
            BunnyHop Here

            Comment


            • #7
              WOW...WOW...WOW!!!
              Thank you!

              Comment


              • #8
                Ulrich, I have one more question please:
                How can I use this script and attach it also to a button? After the splash movie is finishing, I would like to present 4 buttons on home scree. Each of them represents 4 deterrent short HD movies. Pushing each button will play the movie in full screen mode.
                clicking the movie while playing will stop and will bring back to home screen.

                Many tahnks

                Comment


                • #9
                  You can certainly do this, but you would need to change the script of the DialogEx slightly. Instead of using a fixed name of the video in the script, you would use a global variable, setting it to the path of the video to be played. This is really a simple modification, and a good exercise.

                  Ulrich

                  Comment

                  Working...
                  X