We have moved to a new Sailfish OS Forum. Please start new discussions there.

[Question] com.jolla.mediaplayer usage.

asked 2014-06-19 02:11:53 +0300

updated 2014-07-24 10:10:20 +0300

jiit gravatar image

Tried to write simple app with 3 buttons to control music player. Reading the jolla-mediaplayer *.qml files found com.jolla.mediaplayer module, imported it, but app still have no influence on player.

Is it legal to use this module and how?

UPD: As I can see, com.jolla.mediaplayer doesn't allow to control mediaplayer, but allows to use it to play media in the app.
So, is there any way to control mediaplayer outside?

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted

answered 2014-06-19 12:09:07 +0300

rcg gravatar image

I am doing this in my SkippingStones app. However, my solution to this issue requires to patch /usr/lib/qt5/qml/com/jolla/mediaplayer/AudioPlayer.qml. What I did is to simply add some dbus adapter and interface such that it is possible to interact with a running mediaplayer instance via dbus. You can find my patch against AudioPlayer.qml in my SkippingStones repository: https://github.com/ruedigergad/SkippingStones/blob/master/audioplayer_dbus.patch There you can also find examples on how I use this to interact with the mediaplayer. Please note, however, that the current version of this patch disables Bluetooth audio playback functionality.

edit flag offensive delete publish link more


I know about you patch and I've contacted you via e-mail ~month ago. Still trying to make It work on me, but unsuccessfully.

Edit: Done, thank you for your work! I've used patch incorrectly.

Van-ess0 ( 2014-07-17 01:13:14 +0300 )edit
Login/Signup to Answer

Question tools

1 follower


Asked: 2014-06-19 02:11:53 +0300

Seen: 305 times

Last updated: Jun 19 '14