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. How do I loop video??
Forum Updated to NodeBB v4.3 + New Features

How do I loop video??

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 715 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.
  • D Offline
    D Offline
    deales
    wrote on last edited by
    #1

    Hi All,

    Could somebody please explain how I can modify the code below so that the video loops infinitely.

    Many Thanks

    @ Rectangle {
    id: mainpane
    x: 20
    y: 160
    width: 1295
    height: 736
    color: "#ffffff"
    border.color: "#4e86c6"
    border.width: 5

        Video {
            id: video
            x: 8
            y: 8
            width: 1280
            height: 720
            autoPlay: true
            source: "/pathtovideo"
            }
    
    
        }
    }@
    
    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Maybe something like this:
      @
      OnStopped : {position == duration ? Position =0 ;position = position
      Play()
      }
      @

      Didn't test this though

      Hope this helps

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0

      • Login

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