Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Playing video in a loop
Forum Updated to NodeBB v4.3 + New Features

Playing video in a loop

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zeroc8
    wrote on 11 Mar 2013, 21:28 last edited by
    #1

    Hi guys,

    I'm trying to play a video in an endless loop, using QtQuick 2.0 and QtMultimedia 5.0 on Win8/32Bit.

    The video plays until it reaches the end. The debug message is thenshown, but the video does not restart. Also tried to reset video position to 0, but that didn't help either.

    Any idea what's wrong here?

    @Video {
    id: video1
    source: "C:/Users/zeroc8/Videos/freeride.wmv"
    autoPlay: false
    anchors.fill: parent
    opacity: 0.6
    focus: true
    onStopped: {
    console.debug("Video stopped")
    video1.play()
    }

        }@
    
    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zeroc8
      wrote on 12 Mar 2013, 08:30 last edited by
      #2

      Got it, all I need to do is to set the video source again.

      1 Reply Last reply
      0

      1/2

      11 Mar 2013, 21:28

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved