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

Seeking is impossible after pausing video

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 6.2.0
    • Multimedia
    • None

      Steps to reproduce:

      1. Patch the mediaplayer example (to work around QTBUG-95397 and show another issue with position's change signal):
        diff --git a/examples/multimedia/video/mediaplayer/PlaybackControl.qml b/examples/multimedia/video/mediaplayer/PlaybackControl.qml
        index ee2ba6ed4..a71352017 100644
        --- a/examples/multimedia/video/mediaplayer/PlaybackControl.qml
        +++ b/examples/multimedia/video/mediaplayer/PlaybackControl.qml
        @@ -72,10 +72,10 @@ Item {
                 if (Qt.platform.os == "android" || Qt.platform.os == "ios")
                     return;
        
        -        if (playbackControlHoover.hovered || mediaPlayerState != MediaPlayer.PlayingState || !mediaPlayer.hasVideo)
        -            root.opacity = 1;
        -        else
        -            root.opacity = 0;
        +//        if (playbackControlHoover.hovered || mediaPlayerState != MediaPlayer.PlayingState || !mediaPlayer.hasVideo)
        +//            root.opacity = 1;
        +//        else
        +//            root.opacity = 0;
             }
        
             Connections {
        diff --git a/examples/multimedia/video/mediaplayer/main.qml b/examples/multimedia/video/mediaplayer/main.qml
        index 84e0e8647..64c91eed3 100644
        --- a/examples/multimedia/video/mediaplayer/main.qml
        +++ b/examples/multimedia/video/mediaplayer/main.qml
        @@ -79,6 +79,7 @@ Window {
                     muted: playbackControl.muted
                     volume: playbackControl.volume
                 }
        +        onPositionChanged: (position) => { print("position changed to", position) }
        
                 onErrorOccurred: { mediaErrorText.text = mediaPlayer.errorString; m
        
      2. Open https://bugreports.qt.io/secure/attachment/113067/bannerlord.mp4 from QTBUG-88693.
      3. It will start playing automatically; pause it.
      4. Seek to a position further back in the video. Notice that the position signal is also constantly emitted after doing so.
      5. Now press play to resume the video; it will start playing from where it was before you paused it, ignoring the position that was set by seeking.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes