Whenever I try to use the seek() function it jumps to the new position and then back to a random point. The desired behaviour would be to simply jump to the new position. I have the following video qml type.
Video {
id: video
focus: true
MouseArea {
anchors.fill: parent
onClicked: {
video.playbackState === MediaPlayer.PlayingState ? video.pause() : video.play()
playButton.visible = false
}
}
}
Whenever I try to skip ahead by a certain amount (for example 1 second) by doing the following, the video does this and then jumps back roughly 0.5s.
RoundButton{
Layout.fillWidth: true
text: ">"
onClicked: {
video.seek(video.position + 1000)
}
}
When Paused the Video jumps to the correct location. As soon as the video is played again jumps back to a same seemingly random point which is roughly 0.5s earlier.
If a new position is beeing seeked while the video is playing this seems to happen instantly. So the video jumps to the correct location and then jumps back.
When playing the video for the first time i get the following error a bunch of times.
W MapperHal: buffer descriptor with invalid usage bits 0x2000
When I stop the video and start playing it again I get the following error once.
W MediaPlayerNative: info/warning (3, 0)
The goal is simply to be able to skip through the video in predefined timesteps.