Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
6.2.0
-
None
Description
Steps to reproduce:
- 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
- Open https://bugreports.qt.io/secure/attachment/113067/bannerlord.mp4 from QTBUG-88693.
- It will start playing automatically; pause it.
- Seek to a position further back in the video. Notice that the position signal is also constantly emitted after doing so.
- 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.
Attachments
Issue Links
- duplicates
-
QTBUG-97152 QMediaPlayer 'play' jumps to wrong position after seek
-
- Closed
-