maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [WiP] SirenSong v0.4 - Music Player for SailfishOS (https://talk.maemo.org/showthread.php?t=93691)

junnuvi 2014-10-01 18:58

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"

r0kk3rz 2014-10-02 17:19

Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
 
Quote:

Originally Posted by junnuvi (Post 1441428)
Should pebble volume control work as well? For me peblled just logs error:
ERROR WatchCommands - "Property org.mpris.MediaPlayer2.Player.Volume is read-only"

No that doesnt work yet. I have yet to figure out how to influence the system volume on the jolla via an app. But once I do I will implement those functions properly and do some other cool stuff as well.

smoku 2014-10-06 18:38

Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
 
Quote:

Originally Posted by r0kk3rz (Post 1441600)
No that doesnt work yet. I have yet to figure out how to influence the system volume on the jolla via an app. But once I do I will implement those functions properly and do some other cool stuff as well.

https://lists.sailfishos.org/piperma...ly/004787.html

r0kk3rz 2014-10-08 07:52

Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
 
Quote:

Originally Posted by smoku (Post 1442101)

D-Bus interface hey, sounds like a good target for little library and blog post, unless someone has already done so?

smoku 2014-10-08 08:01

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.

r0kk3rz 2014-10-11 10:41

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.

smoku 2014-10-11 11:28

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.

r0kk3rz 2014-10-11 17:29

Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
 
Well there you go, learnt something new. Thanks Smoku

smoku 2014-10-17 14:05

Re: [WiP] SirenSong v0.3 - Music Player for SailfishOS
 
Quote:

Originally Posted by r0kk3rz (Post 1441225)
Sometimes tracker drops all the metadata and needs reindexing using 'tracker-control -se'

I tried it and I got:
Code:

[nemo@Jolla ~]$ tracker-control -se
Found 285 PIDs?
Found process ID 13285 for 'tracker-miner-fs'
  Killed process 13285
Found process ID 13294 for 'tracker-store'
  Killed process 13294
Setting database locations
Checking database directories exist
Checking database version
Checking database files exist
Removing all database/storage files
  Removing database:'/home/nemo/.cache/tracker/meta.db'
  Removing db-locale file:'/home/nemo/.cache/tracker/db-locale.txt'
Waiting one second before starting miners?
Starting miners?
Could not create proxy on the D-Bus session bus, Error calling StartServiceByName for org.freedesktop.Tracker1.Miner.Applications: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/libexec/tracker-miner-fs exited with status 1
  ? File System
  ? Extractor
No D-Bus proxy found for miner 'org.freedesktop.Tracker1.Miner.Applications'
  ? Applications (perhaps a disabled plugin?)

It doesn't look good, does it?

r0kk3rz 2014-10-18 15:51

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