<?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 player not work in child dialog. Error:Failed to activate video surface]]></title><description><![CDATA[<p dir="auto">From my video analysis project, In <code>MainWindow</code>, I have one <code>QMediaPlayer</code> and <code>setVideoOutput(subclassVideoSurface)</code> to play video. It is work well. And a button to show one child dialog, this dialog also has <code>QMediaPlayer</code> and <code>setVideoOutput(subclassVideoSurface)</code> to play another video. but, it was not work after MainWindow's palyer had some operate. eg: i paused MainWindow's player before child dialog to show.</p>
<p dir="auto">I found the demo(Qt5.7.0/Examples/Qt-5.7/multimediawidgets/customvideosurface/customvideowidget) to test my problem.</p>
<p dir="auto">It had the same question.</p>
<p dir="auto">If the first player not play video, the child dialog's player can work well.<br />
If the first player played one video and pause it, the child dialog's player can not to work. and had the <code>Error message: Failed to activate video surface</code></p>
<p dir="auto">I modified the demo at here, you can download it to test the problem.</p>
<p dir="auto"><a href="https://files.cnblogs.com/files/zi-xing/customvideowidget.zip" target="_blank" rel="noopener noreferrer nofollow ugc">Download test demo</a></p>
]]></description><link>https://forum.qt.io/topic/84070/video-player-not-work-in-child-dialog-error-failed-to-activate-video-surface</link><generator>RSS for Node</generator><lastBuildDate>Sat, 27 Jun 2026 03:23:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/84070.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Oct 2017 02:32:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Video player not work in child dialog. Error:Failed to activate video surface on Thu, 12 Oct 2017 20:01:50 GMT]]></title><description><![CDATA[<p dir="auto">That's why I'm suggesting to test a more recent version current is 5.9.2.</p>
]]></description><link>https://forum.qt.io/post/420458</link><guid isPermaLink="true">https://forum.qt.io/post/420458</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 12 Oct 2017 20:01:50 GMT</pubDate></item><item><title><![CDATA[Reply to Video player not work in child dialog. Error:Failed to activate video surface on Thu, 12 Oct 2017 00:55:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">I used Mac, I let one friend to test it on Windows10, It had not the problem. So it is maybe the cause of operating system.</p>
]]></description><link>https://forum.qt.io/post/420278</link><guid isPermaLink="true">https://forum.qt.io/post/420278</guid><dc:creator><![CDATA[joeQ]]></dc:creator><pubDate>Thu, 12 Oct 2017 00:55:14 GMT</pubDate></item><item><title><![CDATA[Reply to Video player not work in child dialog. Error:Failed to activate video surface on Wed, 11 Oct 2017 22:03:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">What OS/Distribution are you running on ? Can you also check with the latest version of Qt ?</p>
]]></description><link>https://forum.qt.io/post/420262</link><guid isPermaLink="true">https://forum.qt.io/post/420262</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 11 Oct 2017 22:03:17 GMT</pubDate></item><item><title><![CDATA[Reply to Video player not work in child dialog. Error:Failed to activate video surface on Wed, 11 Oct 2017 05:03:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a></p>
<pre><code>mainwindow----&gt; obj1 = new player ---&gt; sur1 = new surface ----&gt; obj1.setVideoOutpus(sur1)
child dialog-----&gt;  obj2 = new player ---&gt; sur2 = new surface ----&gt; obj2.setVideoOutpus(sur2)
</code></pre>
<p dir="auto">same subclass surface, different object to used.</p>
]]></description><link>https://forum.qt.io/post/420044</link><guid isPermaLink="true">https://forum.qt.io/post/420044</guid><dc:creator><![CDATA[joeQ]]></dc:creator><pubDate>Wed, 11 Oct 2017 05:03:19 GMT</pubDate></item><item><title><![CDATA[Reply to Video player not work in child dialog. Error:Failed to activate video surface on Wed, 11 Oct 2017 04:17:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joeq">@<bdi>joeQ</bdi></a> Do you set same surface in both QMediaPlayers?</p>
]]></description><link>https://forum.qt.io/post/420035</link><guid isPermaLink="true">https://forum.qt.io/post/420035</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 11 Oct 2017 04:17:08 GMT</pubDate></item></channel></rss>