<?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[Audio Player:The QMediaPlayer object does not have a valid service]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am trying to develop an app (qml only) using the Audio object (QtMultimedia 5.5). Now I get this error:</p>
<p dir="auto">Audio Player:The QMediaPlayer object does not have a valid service</p>
<p dir="auto">what does it mean and how can I solve it?</p>
]]></description><link>https://forums.ubports.com/topic/730/audio-player-the-qmediaplayer-object-does-not-have-a-valid-service</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 07:10:47 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/730.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Nov 2017 15:01:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Tue, 21 Nov 2017 11:12:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wdehoog" aria-label="Profile: wdehoog">@<bdi>wdehoog</bdi></a> i'd love to develop stuff for ubports, but my skills not good enough. Also i have not so much free time at the moment to lern something <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=e9f7455a4ac" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto">Thanks for the link, i will take a look on the code.</p>
]]></description><link>https://forums.ubports.com/post/5507</link><guid isPermaLink="true">https://forums.ubports.com/post/5507</guid><dc:creator><![CDATA[stefwe]]></dc:creator><pubDate>Tue, 21 Nov 2017 11:12:59 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Tue, 21 Nov 2017 08:40:56 GMT]]></title><description><![CDATA[<p dir="auto">@Einstein212 I did not know about soundcloud and now see that it supports a lot of features. It will be no small effort. As it is of no use to me I am not going to work on it. If you are a developer yourself and need help I might be of use.</p>
<p dir="auto">There is a project on github that could be of interest to you <a href="https://github.com/lukedirtwalker/musikloud2" rel="nofollow ugc">https://github.com/lukedirtwalker/musikloud2</a> looks like a soundcloud client for sailfish maybe parts can be used for a ubports app.</p>
]]></description><link>https://forums.ubports.com/post/5505</link><guid isPermaLink="true">https://forums.ubports.com/post/5505</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Tue, 21 Nov 2017 08:40:56 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Tue, 21 Nov 2017 07:31:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wdehoog" aria-label="Profile: wdehoog">@<bdi>wdehoog</bdi></a> now i did a refresh and it's there. Nice work. Rock Antenne is running <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=e9f7455a4ac" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto"><a href="https://developers.soundcloud.com/" rel="nofollow ugc">https://developers.soundcloud.com/</a> here are some infos for developer, but i don't have api experience to say this informations makes it possible to build a programm around this.</p>
]]></description><link>https://forums.ubports.com/post/5504</link><guid isPermaLink="true">https://forums.ubports.com/post/5504</guid><dc:creator><![CDATA[stefwe]]></dc:creator><pubDate>Tue, 21 Nov 2017 07:31:25 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Mon, 20 Nov 2017 21:33:39 GMT]]></title><description><![CDATA[<p dir="auto">@Einstein212 did the icon not appear after refreshing home (pull down to refresh)?</p>
<p dir="auto">Does soundcloud have an API to browse/search and retrieve lists?</p>
]]></description><link>https://forums.ubports.com/post/5498</link><guid isPermaLink="true">https://forums.ubports.com/post/5498</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Mon, 20 Nov 2017 21:33:39 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Mon, 20 Nov 2017 21:28:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wdehoog" aria-label="Profile: wdehoog">@<bdi>wdehoog</bdi></a> I download and install the click package. But i don't get an icon on my home screen to start your program</p>
<p dir="auto">Do you think it is hard work to get a program made for soundcloud?</p>
]]></description><link>https://forums.ubports.com/post/5497</link><guid isPermaLink="true">https://forums.ubports.com/post/5497</guid><dc:creator><![CDATA[stefwe]]></dc:creator><pubDate>Mon, 20 Nov 2017 21:28:28 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Mon, 20 Nov 2017 21:10:22 GMT]]></title><description><![CDATA[<p dir="auto">First and maybe only release of the app is now available here: <a href="https://github.com/wdehoog/shoutcast-ubports/releases/download/0.1/shoutcast-ubports.wdehoog_0.1_all.click" rel="nofollow ugc">shoutcast-ubports.wdehoog_0.1_all.click</a></p>
<p dir="auto">It is a shoutcast browser and player. Sources and screenshots are on <a href="https://github.com/wdehoog/shoutcast-ubports/" rel="nofollow ugc">github</a></p>
<p dir="auto">Please give it a try. I only tested it on my moto g 2nd (thank you walidham) but like to know if it works on other devices before submitting it to the OpenStore.</p>
]]></description><link>https://forums.ubports.com/post/5495</link><guid isPermaLink="true">https://forums.ubports.com/post/5495</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Mon, 20 Nov 2017 21:10:22 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Wed, 15 Nov 2017 20:47:44 GMT]]></title><description><![CDATA[<p dir="auto">Installing my click using 'pkcon...' generates a different profile file then when done manually (aa-clicktool &amp; aa-easyprof see <a href="https://wiki.ubuntu.com/SecurityTeam/Specifications/ApplicationConfinement/Manifest" rel="nofollow ugc">https://wiki.ubuntu.com/SecurityTeam/Specifications/ApplicationConfinement/Manifest</a>). The manual way adds extra rules that allow the app to use the media-hub.</p>
<p dir="auto">I noticed that uninstalling the app did not remove the profile. Manually removing the profile (from /var/lib/apparmor/profiles and from /var/cache/apparmor/) and then reinstalling the click resulted in a profile that could actually work.</p>
<p dir="auto">After loading it (apparmor_parser -r) my app works!</p>
<p dir="auto">So I think that after adding the policies in the IDE and installing the new click the previous profile (without the policies) was still being used. Question is why? Maybe because the profiles are cached and I did not increase the version number of my app.</p>
]]></description><link>https://forums.ubports.com/post/5422</link><guid isPermaLink="true">https://forums.ubports.com/post/5422</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Wed, 15 Nov 2017 20:47:44 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Wed, 15 Nov 2017 19:17:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wdehoog" aria-label="Profile: wdehoog">@<bdi>wdehoog</bdi></a> said in <a href="/post/5380">Audio Player:The QMediaPlayer object does not have a valid service</a>:</p>
<blockquote>
<p dir="auto">@Einstein212 thanks. UTmedia does work on my phone but when I copy it's apparmor stuff it does not help. Maybe because UTmedia is a webapp and mine is qml.</p>
</blockquote>
<p dir="auto">Maybe you can find another open source, UT, audio app that is qml to check</p>
]]></description><link>https://forums.ubports.com/post/5419</link><guid isPermaLink="true">https://forums.ubports.com/post/5419</guid><dc:creator><![CDATA[doniks]]></dc:creator><pubDate>Wed, 15 Nov 2017 19:17:42 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Tue, 14 Nov 2017 19:23:34 GMT]]></title><description><![CDATA[<p dir="auto">sorry that should have been:</p>
<p dir="auto">#include &lt;abstractions/audio&gt;<br />
#include &lt;abstractions/dbus&gt;<br />
#include &lt;abstractions/dbus-session&gt;</p>
<p dir="auto">the -strict ones did not help</p>
]]></description><link>https://forums.ubports.com/post/5396</link><guid isPermaLink="true">https://forums.ubports.com/post/5396</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Tue, 14 Nov 2017 19:23:34 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Tue, 14 Nov 2017 19:20:07 GMT]]></title><description><![CDATA[<p dir="auto">It appears that when installing my click app there is a apparmor profile being made in /var/lib/apparmor/profiles/. It also appears none of the policies I added are being addressed in the generated profile.</p>
<p dir="auto">I edited the generated profile and added</p>
<p dir="auto">#include &lt;abstractions/audio&gt;<br />
#include &lt;abstractions/dbus-strict&gt;<br />
#include &lt;abstractions/dbus-session-strict&gt;</p>
<p dir="auto">reloaded the profile and now the Audio tag works.</p>
<p dir="auto">So how is this ever supposed to work?</p>
]]></description><link>https://forums.ubports.com/post/5395</link><guid isPermaLink="true">https://forums.ubports.com/post/5395</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Tue, 14 Nov 2017 19:20:07 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Mon, 13 Nov 2017 18:03:59 GMT]]></title><description><![CDATA[<p dir="auto">@Einstein212 thanks. UTmedia does work on my phone but when I copy it's apparmor stuff it does not help. Maybe because UTmedia is a webapp and mine is qml.</p>
<p dir="auto">Even if I add all policies in the IDE still using Audio is DENIED.</p>
<p dir="auto">Could it be the way I install it?<br />
I use 'pkcon --allow-untrusted install-local'.</p>
]]></description><link>https://forums.ubports.com/post/5380</link><guid isPermaLink="true">https://forums.ubports.com/post/5380</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Mon, 13 Nov 2017 18:03:59 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Mon, 13 Nov 2017 07:28:44 GMT]]></title><description><![CDATA[<p dir="auto">I don't know anything about apparmor.</p>
<p dir="auto">Did it help you to check the apparmor file from other programms? How they handle this?</p>
<p dir="auto"><a href="https://open.uappexplorer.com/app/utmedia.nfsprodriver" rel="nofollow ugc">https://open.uappexplorer.com/app/utmedia.nfsprodriver</a></p>
<p dir="auto"><a href="https://github.com/nfsprodriver/UTmedia/blob/master/UTmedia.apparmor" rel="nofollow ugc">https://github.com/nfsprodriver/UTmedia/blob/master/UTmedia.apparmor</a></p>
]]></description><link>https://forums.ubports.com/post/5369</link><guid isPermaLink="true">https://forums.ubports.com/post/5369</guid><dc:creator><![CDATA[stefwe]]></dc:creator><pubDate>Mon, 13 Nov 2017 07:28:44 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Sun, 12 Nov 2017 19:01:06 GMT]]></title><description><![CDATA[<p dir="auto">When completely disabling apparmor even the music app cannot play anmore. So back to apparmor.</p>
<p dir="auto">As explained here <a href="https://wiki.ubuntu.com/Touch/DeprecatedPorting" rel="nofollow ugc">https://wiki.ubuntu.com/Touch/DeprecatedPorting</a> one can disable it for click apps (application-click.conf). When I do that Audio works.</p>
<p dir="auto">Now I'd like to know how to detect which policy denies my app to play audio so I can add this to the apparmor file.</p>
]]></description><link>https://forums.ubports.com/post/5364</link><guid isPermaLink="true">https://forums.ubports.com/post/5364</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Sun, 12 Nov 2017 19:01:06 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Sun, 12 Nov 2017 14:13:08 GMT]]></title><description><![CDATA[<p dir="auto">After disabling apparmor (modified linux commandline in boot.img, apparmor=0 security="") these errprs are gone.</p>
<p dir="auto">Now the errors are:</p>
<p dir="auto">setMedia() media:   QUrl( "<a href="http://144.217.49.251:80/stream1" rel="nofollow ugc">http://144.217.49.251:80/stream1</a>" )<br />
virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const</p>
<p dir="auto">Setting media to:   QUrl( "<a href="http://144.217.49.251:80/stream1" rel="nofollow ugc">http://144.217.49.251:80/stream1</a>" )<br />
Failed to set media   QUrl( "<a href="http://144.217.49.251:80/stream1" rel="nofollow ugc">http://144.217.49.251:80/stream1</a>" )  :  org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.</p>
<p dir="auto">Can't the media thing behind the qml Audio item handle http url's? wget can handle this adres on the phone.</p>
]]></description><link>https://forums.ubports.com/post/5362</link><guid isPermaLink="true">https://forums.ubports.com/post/5362</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Sun, 12 Nov 2017 14:13:08 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Sun, 12 Nov 2017 11:36:09 GMT]]></title><description><![CDATA[<p dir="auto">It looks like apparmor is unhappy. Still no idea how to fix it.<br />
I added networking, audio and video but it is still not allowed.</p>
<p dir="auto">from the cache/upstart/ log:</p>
<p dir="auto">virtual QMediaService* AalServicePlugin::create(const QString&amp;) "org.qt-project.qt.mediaplayer"<br />
[TT 2017-11-12 11:31:32.904333] [service.cpp:29@instance]<br />
Failed to start a new media-hub player session:  org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.77286" (uid=32011 pid=3801 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene shou") interface="core.ubuntu.media.Service" member="CreateSession" error name="(unset)" requested_reply="0" destination="core.ubuntu.media.Service" (uid=32011 pid=3132 comm="media-hub-server ")<br />
Failed to create a new media player backend. Video playback will not function.</p>
<p dir="auto">Could not finish contructing new AalMediaPlayerService instance since m_hubPlayerSession is NULL<br />
virtual void QDeclarativeAudio::componentComplete()<br />
qml: shoutcast-ubports<br />
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.29030" (uid=32011 pid=3801 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene shou") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=2023 comm="NetworkManager ")"<br />
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.29030" (uid=32011 pid=3801 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene shou") interface="org.freedesktop.NetworkManager" member="GetDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=2023 comm="NetworkManager ")"<br />
"Object path cannot be empty"<br />
library "/vendor/lib/egl/libGLESv2S3D_adreno.so" not found</p>
]]></description><link>https://forums.ubports.com/post/5361</link><guid isPermaLink="true">https://forums.ubports.com/post/5361</guid><dc:creator><![CDATA[wdehoog]]></dc:creator><pubDate>Sun, 12 Nov 2017 11:36:09 GMT</pubDate></item><item><title><![CDATA[Reply to Audio Player:The QMediaPlayer object does not have a valid service on Sat, 11 Nov 2017 20:06:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wdehoog" aria-label="Profile: wdehoog">@<bdi>wdehoog</bdi></a> said in <a href="/post/5351">Audio Player:The QMediaPlayer object does not have a valid service</a>:</p>
<blockquote>
<p dir="auto">Player:The QMediaPlayer object does not have a valid service</p>
</blockquote>
<p dir="auto">Check if the <a href="https://forum.qt.io/topic/59008/qmediaplayer-object-does-not-have-a-valid-service/8" rel="nofollow ugc">this</a> help, it seems it might be related to gstreamer.<br />
Installing gstreamer-devel might help, as it seems in that topic.</p>
]]></description><link>https://forums.ubports.com/post/5357</link><guid isPermaLink="true">https://forums.ubports.com/post/5357</guid><dc:creator><![CDATA[vadrian89]]></dc:creator><pubDate>Sat, 11 Nov 2017 20:06:23 GMT</pubDate></item></channel></rss>