<?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[Video shows &quot;no content&quot;!]]></title><description><![CDATA[<p dir="auto">Hello, I try to use video item to play .flv video. However, the result shows "no content". The code is as following:</p>
<pre><code>             Video {
                id: video1;
                anchors.fill: parent;
                source: "rafael.flv";
                MouseArea {
                anchors.fill: parent;
                onClicked: {
                    if(video1.hasVideo){
                        video1.play();
                    }
                    else{
                        console.log("no content");
                    }
                }
            }

            focus: true;
            Keys.onSpacePressed: video1.playbackState == MediaPlayer.PlayingState ? video1.pause() : video1.play();
            Keys.onLeftPressed: video1.seek(video1.position - 5000);
            Keys.onRightPressed: video1.seek(video1.position + 5000);
        }
</code></pre>
<p dir="auto">Could anyone tell me the reason? Thanks in advance!</p>
]]></description><link>https://forum.qt.io/topic/83016/video-shows-no-content</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 16:52:14 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/83016.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Sep 2017 02:13:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Video shows &quot;no content&quot;! on Wed, 06 Sep 2017 13:28:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/small_bird">@<bdi>small_bird</bdi></a> I have knowed that I have to install DirectShow on my OS!!</p>
]]></description><link>https://forum.qt.io/post/413931</link><guid isPermaLink="true">https://forum.qt.io/post/413931</guid><dc:creator><![CDATA[small_bird]]></dc:creator><pubDate>Wed, 06 Sep 2017 13:28:06 GMT</pubDate></item><item><title><![CDATA[Reply to Video shows &quot;no content&quot;! on Wed, 06 Sep 2017 13:15:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">That's a relative path, are you sure it's in the same folder as the executable ?</p>
]]></description><link>https://forum.qt.io/post/413927</link><guid isPermaLink="true">https://forum.qt.io/post/413927</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 06 Sep 2017 13:15:40 GMT</pubDate></item></channel></rss>