maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Get playing song from osso-media-player (https://talk.maemo.org/showthread.php?t=68301)

kelvan 2011-01-13 15:30

Get playing song from osso-media-player
 
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

lardman 2011-01-13 15:43

Re: Get playing song from osso-media-player
 
Does it broadcast DBus messages when the song changes? Might be worth a look.

kelvan 2011-01-13 17:05

Re: Get playing song from osso-media-player
 
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.

Reffyyyy 2011-01-13 17:21

Re: Get playing song from osso-media-player
 
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.

eneitten usr XD 2011-01-13 17:37

Re: Get playing song from osso-media-player
 
i know for the N810 there is a "now playing" noification, works well too ;-) i use it too:cool:

kelvan 2011-01-13 19:11

Re: Get playing song from osso-media-player
 
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 2011-01-13 20:10

Re: Get playing song from osso-media-player
 
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!

nicolai 2011-01-13 20:12

Re: Get playing song from osso-media-player
 
Quote:

Originally Posted by kelvan (Post 919564)
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

kelvan 2011-01-13 22:29

Re: Get playing song from osso-media-player
 
MAFW sounds good, I'll have a look on the python bindings.

daperl 2011-01-14 00:08

Re: Get playing song from osso-media-player
 
Quote:

Originally Posted by kelvan (Post 919822)
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.

kelvan 2011-01-14 14:03

Re: Get playing song from osso-media-player
 
really? :/ i've just began to look into pymaemo and already get a few infos about the playlist and shuffle/repeat mode. at which point the binding get unuseable? (except the non-pythonic syntax)

daperl 2011-01-14 14:39

Re: Get playing song from osso-media-player
 
Quote:

Originally Posted by kelvan (Post 920220)
really? :/ i've just began to look into pymaemo and already get a few infos about the playlist and shuffle/repeat mode. at which point the binding get unuseable? (expect the non-pythonic syntax)

The maintainers abandoned the project before it became usable for an actual media player. You might get lucky for your needs, but don't be surprised if you hit a brick wall.

See this post for more details.


All times are GMT. The time now is 00:31.

vBulletin® Version 3.8.8