<?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[Playing QML Audio or Multimedia from qrc not working on Android]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I was trying to play a sound file with the QML Audio or MultiMedia components from qrc, but it doesn't work on Android.</p>
<p dir="auto">Running the same code on Windows works.</p>
<p dir="auto">Based on "this bug report":<a href="https://bugreports.qt-project.org/browse/QTBUG-31422" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt-project.org/browse/QTBUG-31422</a>, playing audio files from resources should work since Qt 5.2.1. I tried both with Qt 5.2.1 and the latest Qt 5.3 RC but only get this onError output:</p>
<p dir="auto">@ErrorCode: 5<br />
ErrorString: (Unknown error/Insufficient resources)<br />
@</p>
<p dir="auto">and this error pops up in the console too:<br />
@E/MediaPlayer(17306): Error (1,-2147483648)@</p>
<p dir="auto">I tested on a Sony Ericsson Xperia and Huawei Ascend, both the same errors.</p>
<p dir="auto">Anyone experiencing the same issues or has a fix for this?</p>
<p dir="auto">Cheers,<br />
Chris</p>
]]></description><link>https://forum.qt.io/topic/41457/playing-qml-audio-or-multimedia-from-qrc-not-working-on-android</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 07:12:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/41457.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 May 2014 17:06:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Playing QML Audio or Multimedia from qrc not working on Android on Tue, 24 Jun 2014 10:35:45 GMT]]></title><description><![CDATA[<p dir="auto">My mistake (of course), the qrc prefix was the same as the folder name and I didn't use both in the url.  DOH, sorry folks.</p>
]]></description><link>https://forum.qt.io/post/233189</link><guid isPermaLink="true">https://forum.qt.io/post/233189</guid><dc:creator><![CDATA[MartynW]]></dc:creator><pubDate>Tue, 24 Jun 2014 10:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to Playing QML Audio or Multimedia from qrc not working on Android on Fri, 16 May 2014 12:15:07 GMT]]></title><description><![CDATA[<p dir="auto">Using the Audio or MultiMedia QML elements to play from resources also does not work on iOS and Mac! You can give this issue a vote in the bug tracker here: <a href="https://bugreports.qt-project.org/browse/QTBUG-36175" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt-project.org/browse/QTBUG-36175</a></p>
]]></description><link>https://forum.qt.io/post/228769</link><guid isPermaLink="true">https://forum.qt.io/post/228769</guid><dc:creator><![CDATA[feldifux]]></dc:creator><pubDate>Fri, 16 May 2014 12:15:07 GMT</pubDate></item></channel></rss>