<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[mediaplayer automatically skips ahead by a few seconds]]></title><description><![CDATA[<p dir="auto">I'm using mediaplayer on linux to play mp4 videos and the mediaplayer uses GStreamer as backend by default. After starting the playback, it automatically skips ahead by a few seconds. This issue does not always occur, and the amount of time the video skips forward is not consistent. When using the command-line tool gst-launch-1.0 provided by GStreamer to execute the same pipeline, I do not encounter the issue of the video jumping forward. Is this problem caused by Qt?</p>
<p dir="auto">here is the pipeline:</p>
<pre><code>gst-launch-1.0 playbin3 uri=file:///path/to/video.mp4
</code></pre>
<p dir="auto">When using mediaplayer, the source is set to the same pipeline.<br />
Actually, I'm using qml Loader to dynamicly load the mediaplayer from another qml file which contains a mediaplayer component and the source of the mediaplayer is set with onLoaded function.</p>
<pre><code>import QtQuick 2.15
import QtQuick.Controls 2.15


ApplicationWindow {
    visible: true
    width: 640
    height: 400
    Loader {
        id: playerLoader
        anchors.fill: parent
        source: "VideoPlayer.qml"
        onLoaded: {
            if (playerLoader.item) {
                playerLoader.item.source = "gst-pipeline: playbin3 uri=file:///path/to/video.mp4"
            }
        }
    }
}
</code></pre>
]]></description><link>https://forum.qt.io/topic/158521/mediaplayer-automatically-skips-ahead-by-a-few-seconds</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 21:14:20 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/158521.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Sep 2024 08:36:58 GMT</pubDate><ttl>60</ttl></channel></rss>