Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138417

QML MediaPlayer does not accept loop values of 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.0
    • Multimedia
    • None

      When media is playing with loop set to MediaPlayer.Infinite, there is no way to stop looping the video immediately. Setting a value of 0 does nothing (as documented), and setting a value of 1 causes the video to loop once before stopping.

      This is required to toggle between looping media continuously and not looping at all.

      This appears to have previously worked in Qt 5, and if I had to guess, the property is probably decremented when the video starts, such that an initial value of 1 only plays the video once, but changing the value during playback to 1 means it reaches the end with a loop remaining and it loops again. 

        1. 138417.qml
          1 kB
        2. 138417.webm
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtmultimediateam Qt Multimedia Team
            olib Oliver Beard
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes