Reply
Thread Tools
Posts: 80 | Thanked: 51 times | Joined on Feb 2010 @ Finland
#11
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"

Last edited by junnuvi; 2014-10-01 at 19:31.
 

The Following User Says Thank You to junnuvi For This Useful Post:
Posts: 440 | Thanked: 2,256 times | Joined on Jul 2014
#12
Originally Posted by junnuvi View Post
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.
__________________
SirenSong v0.5
Like my work? buy me a beer
 

The Following User Says Thank You to r0kk3rz For This Useful Post:
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#13
Originally Posted by r0kk3rz View Post
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
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following 2 Users Say Thank You to smoku For This Useful Post:
Posts: 440 | Thanked: 2,256 times | Joined on Jul 2014
#14
D-Bus interface hey, sounds like a good target for little library and blog post, unless someone has already done so?
__________________
SirenSong v0.5
Like my work? buy me a beer
 

The Following User Says Thank You to r0kk3rz For This Useful Post:
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#15
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.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following User Says Thank You to smoku For This Useful Post:
Posts: 440 | Thanked: 2,256 times | Joined on Jul 2014
#16
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.
__________________
SirenSong v0.5
Like my work? buy me a beer
 

The Following User Says Thank You to r0kk3rz For This Useful Post:
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#17
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.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following 4 Users Say Thank You to smoku For This Useful Post:
Posts: 440 | Thanked: 2,256 times | Joined on Jul 2014
#18
Well there you go, learnt something new. Thanks Smoku
__________________
SirenSong v0.5
Like my work? buy me a beer
 

The Following User Says Thank You to r0kk3rz For This Useful Post:
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#19
Originally Posted by r0kk3rz View Post
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?
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following User Says Thank You to smoku For This Useful Post:
Posts: 440 | Thanked: 2,256 times | Joined on Jul 2014
#20
Believe it or not smoku that actually looks fine.

you can watch the progress using tracker-control
__________________
SirenSong v0.5
Like my work? buy me a beer
 

The Following User Says Thank You to r0kk3rz For This Useful Post:
Reply

Tags
music player, sailfish os

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:40.