![]() |
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
Thanks for great player app.
Should pebble volume control work as well? For me peblled just logs error: ERROR WatchCommands - "Property org.mpris.MediaPlayer2.Player.Volume is read-only" |
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
Quote:
|
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
Quote:
|
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
Quote:
|
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
The point of dbus is that you can talk to programs with any language (able to send dbus message), without nailing your app to a specific library.
|
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
Which makes perfect sense from a systems perspective. but from an encapsulation and code reuse perspective writing a cpp library that handles the interface makes sense.
of course you can write your own, but for most people they're going to want some object that has the current volume, volup and voldown methods. |
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
Every good D-Bus access library (Qt included) automates wrapping D-Bus objects to library objects. D-Bus was modelled after KDE kbus to enable exactly this ease of use.
You just create QDBusInterface object wrapping /com/meego/mainvolume2 d-bus object com.Meego.MainVolume2 interface - and bam!, you have a local object to fiddle with its properties, sending signals - all with D-Bus messages working quietly in background. No additional library needed. |
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
Well there you go, learnt something new. Thanks Smoku
|
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
Quote:
Code:
[nemo@Jolla ~]$ tracker-control -se |
Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
Believe it or not smoku that actually looks fine.
you can watch the progress using tracker-control |
All times are GMT. The time now is 17:41. |
vBulletin® Version 3.8.8