<?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[QMediaPlayer with QVideoProbe android]]></title><description><![CDATA[<p dir="auto">Hi, I have a problem with grab frames from QMediaPlayer with QVideoProbe<br />
Look, I have MediaPlayer in QML:</p>
<pre><code>    MediaPlayer {
        id: player
        objectName: "qmlPlayer"
        source: "qrc:/imgs/ebalo.mp4"

    }
       VideoOutput {
           id: output
           source: player
           x: 0
           y: 0
           anchors.fill : parent
           width: parent.width
           height: parent.height
}
</code></pre>
<p dir="auto">And i'm cast this into QMediaPlayer in qt side:</p>
<pre><code>    QQmlEngine * engin = QQmlEngine::contextForObject(this)-&gt;engine();
    QQmlApplicationEngine *engine = qobject_cast&lt;QQmlApplicationEngine*&gt;(engin);
    QObject *qmlMedia = engine-&gt;rootObjects().at(0)-&gt;findChild&lt;QObject*&gt;("qmlPlayer");
    player = qvariant_cast&lt;QMediaPlayer *&gt;(qmlMedia-&gt;property("mediaObject"));
    connect(&amp;probe,&amp;QVideoProbe::videoFrameProbed,this,&amp;ClassBuilder::handleFrame);
    qDebug()&lt;&lt;probe.setSource(player)&lt;&lt;"player"&lt;&lt;player&lt;&lt;player-&gt;errorString();
    probe.setSource(player);
</code></pre>
<p dir="auto">QDebug output is: false player QMediaPlayer(0xbe1ac010) ""<br />
why is setSource returns false?<br />
Replacing the MediaPlayer with the QCamera everything works as it should, maybe grabbing frames via QVideoProbe from QMediaPlayer is not supported on android?</p>
]]></description><link>https://forum.qt.io/topic/135200/qmediaplayer-with-qvideoprobe-android</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 08:51:21 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/135200.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Mar 2022 12:14:16 GMT</pubDate><ttl>60</ttl></channel></rss>