Forums

OverviewV-Play 2 Support (Qt 5) › Video

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12096

    Phil

    Hi. I’m trying to add a video to my title screen that loops infinitely. Can you advise on how to achieve this? I see there’s a Video component, but there’s no loop property. AlphaVideo has a loops property, but my video does not appear correctly. I also found MediaPlayer, but this isn’t working for me:

     

        MediaPlayer {
            id: video
            source: "../../assets/myVideo.m4v"
            loops: MediaPlayer.Infinite
            autoPlay: true
            autoLoad: true
        }

     

    Thanks,

     

    Phil

    #12097

    Alex
    V-Play Team

    Hi Phil,

    That’s a good question! You have two possibilities: Use the Video item and implement looping by yourself (restart the video on the onStopped signal handler) or use the MediaPlayer item in conjunction with a VideoOutput item (MediaPlayer only handles playback but does not display anything).

    Best,

    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support