Active Topics

 



Notices


Reply
Thread Tools
Posts: 5 | Thanked: 0 times | Joined on Jan 2010 @ Vienna
#1
hey folks,

how can i get information of the current song/playlist from osso-media-player?

i found dbus howtos for controlling the player, but nothing for getting infos from it.

i want to get:
- title, album, artist from playing song
- same infos for the playlist entries or at least there path and filename
- playing position (and play/pause status)
- volume would be also nice

reason:
i want to write a small script/app that changes my mpd playlist at home to the maemo one and start playing the same track at the same position.
perhaps i could start it automatically when login into my home wifi
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#2
Does it broadcast DBus messages when the song changes? Might be worth a look.
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Jan 2010 @ Vienna
#3
Yes, it broadcast huge amount of infos when starting or changing track,
but logging all infos about playlist and track when starting/changing track doesn't seem to be the way todo imo.

Nevertheless thanks for the hint.
 
Posts: 662 | Thanked: 653 times | Joined on Feb 2010
#4
Isn't there an application named "Now Playing" that shows a notification every time a song changes with the title/artist of the song?

May be wrong about the name.

Surely you could ask that developer for some assistance.
 

The Following 2 Users Say Thank You to Reffyyyy For This Useful Post:
Posts: 59 | Thanked: 10 times | Joined on Dec 2010 @ / Puerto Rico/ Arecibo
#5
i know for the N810 there is a "now playing" noification, works well too ;-) i use it too
__________________
the world beyond is what i discovered when i found Maemo,,,...© [°I__ I ] © Thank you LORD 4 ALL XD



About eneitten usr XD

Location
mississippi /\&\/ Puerto Rico
Operating System
Maemo4 (Penguin SMASHING windows lmbo]
Mobile Phone
it doesnt matter i still gotta wait to get a nokia what else...,,,,waiting..,,,,,,
Handhelds
15 months N810 all day everyyyyyy day thats it!!: g eek:
 
Posts: 5 | Thanked: 0 times | Joined on Jan 2010 @ Vienna
#6
Yes i know this app, but I need the information on a specific moment not only when song changes. Getting information about song changes would be easy, it is broadcasted on dbus.
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#7
Are you a good developer? If so, your prayers can be answered by downloading the following:

http://repository.maemo.org/pool/fre...6-1+0m5.tar.gz

And read the MAFW documentation when you get stuck.

Good luck!
__________________
N9: Go white or go home
 

The Following 4 Users Say Thank You to daperl For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#8
Originally Posted by kelvan View Post
hey folks,

how can i get information of the current song/playlist from osso-media-player?
osso-media-player isn't that the media player on the n8x0?
If you mean the n900 mediaplayer, take a look at
my media player widget, it uses the Mafw- framework for
obtaining this information. (Current playing song, playlist
and metadata).

regards
Nicolai
 

The Following 2 Users Say Thank You to nicolai For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Jan 2010 @ Vienna
#9
MAFW sounds good, I'll have a look on the python bindings.
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#10
Originally Posted by kelvan View Post
MAFW sounds good, I'll have a look on the python bindings.
No useable Python bindings for MAFW. You'll have to steal code from MediaBox to make MAFW clib calls inside Python.
__________________
N9: Go white or go home
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:06.