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. Video can play only one video
Qt 6.11 is out! See what's new in the release blog

Video can play only one video

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 1 Posters 369 Views
  • 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.
  • M Offline
    M Offline
    Mihaill
    wrote on last edited by Mihaill
    #1

    Hi!
    I can set source video for QML Video and play one video.
    And when I set new source for QML Video, then I see first video frame and can't playing.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mihaill
      wrote on last edited by Mihaill
      #2

      And ihave error:

      Texture 0x7f8af4262a90 () used with different accesses within the same pass, this is not allowed.
      

      but first video laying with this error

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mihaill
        wrote on last edited by
        #3

        I fix this using this code

            function playVideo() {
                videoStep.position = 0
        //        videoStep.play()
                videoStep2.position = 0
                if (videoStep.visible) {
                    videoStep.visible = false
                    videoStep.stop()
                    videoStep2.visible = true
                    videoStep2.play()
                } else {
                    videoStep2.visible = false
                    videoStep2.stop()
                    videoStep.visible = true
                    videoStep.play()
                }
            }
        
        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