Notices


Poll: Would you like to see a "now playing" notification?
Poll Options
Would you like to see a "now playing" notification?

Reply
Thread Tools
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#11
Originally Posted by tuminoid View Post
I'm working on a package for this and hoping I can find spare time to put a package to -devel today/tomorrow/monday at latest. Let me know Faheem if you're working on your code still, I'd hate to waste my/your time to do same thing over again.
I'm not working on it. It's code from something of mine that never saw the light of day, the code itself being butchered from the Last.fm Scrobbler (GPL V.2 licensed) and some code I wrote for Transmission to display the notifications. So I thought I may as well put it up in the hope that somebody can fix it up.

Hopefully, you'll get the time to fix the number of problems with it (if you've compiled it, I'm sure you will know what I mean...).

Last edited by qwerty12; 2010-02-27 at 18:14.
 
tuminoid's Avatar
Posts: 188 | Thanked: 185 times | Joined on Dec 2009 @ Finland
#12
I put a project application in to Garage admins as well, so this thing is taking baby steps forward See the sig: behold the nowplayingd (yeah, I suck at inventing project names... :P)
__________________
My wiki: User:Tuminoid
cpumem-applet: home | packages - status: 0.0.3 in Extras

cell-modem-ui: home | packages - status: 0.5.1-1 in Extras
nowplayingd: home | packages - status: 0.1-2 in extras-devel
custom-pwkmenu: home - no packages yet.
 

The Following 3 Users Say Thank You to tuminoid For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#13
Originally Posted by tuminoid View Post
I put a project application in to Garage admins as well, so this thing is taking baby steps forward See the sig: behold the nowplayingd (yeah, I suck at inventing project names... :P)
No I think it's catchy and understandable. I would've put something like "what the hell is that song?! -app"
 

The Following User Says Thank You to For This Useful Post:
tuminoid's Avatar
Posts: 188 | Thanked: 185 times | Joined on Dec 2009 @ Finland
#14
Originally Posted by mottis View Post
No I think it's catchy and understandable. I would've put something like "what the hell is that song?! -app"
Thats just a nerd-engineer project name - apps friendly name is yet to be determined and your suggestion sounds much groovier than mine B-)
__________________
My wiki: User:Tuminoid
cpumem-applet: home | packages - status: 0.0.3 in Extras

cell-modem-ui: home | packages - status: 0.5.1-1 in Extras
nowplayingd: home | packages - status: 0.1-2 in extras-devel
custom-pwkmenu: home - no packages yet.
 
Posts: 961 | Thanked: 565 times | Joined on Jul 2007 @ Tyneside, North East England
#15
Originally Posted by qwerty12 View Post
Something like this?

Code is here: http://slexy.org/view/s2FoAoHW5M

(gcc mafw.c `pkg-config --cflags --libs hildon-notify glib-2.0 mafw mafw-shared` -Wall)

Because there are so many things wrong with it, I won't insult people by uploading a binary. I up'ed the shitty code in hope that someone who actually knows what they're doing can improve it and fix its problems.

On the plus side, it does show the name and artist of the song if it is properly tagged and pressing the notification does bring up the media player. Those are probably the only good points...

I'd probably like to see this, too, but for a more nostalgic reason: My W810i used to do this.
How did you do this on an N810 then? Please do tell< as this sounds like a useful and fun little trick.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#16
Originally Posted by gazza_d View Post
How did you do this on an N810 then? Please do tell< as this sounds like a useful and fun little trick.
I still have my N800 around, so I'll see if I can find any ways to get the currently playing song name. The notifications would be of the "recieved a new IM" type.

But MAFW's predecessor - osso-media-server - is much, much less documented and extensible compared to MAFW so I can't promise anything.

Last edited by qwerty12; 2010-02-28 at 08:37.
 
Posts: 961 | Thanked: 565 times | Joined on Jul 2007 @ Tyneside, North East England
#17
Originally Posted by qwerty12 View Post
I still have my N800 around, so I'll see if I can find any ways to get the currently playing song name. The notifications would be of the "recieved a new IM" type.

But MAFW's predecessor - osso-media-server, is much, much less documented and extensible compared to MAFW so I can't promise anything.
Actually, just re-read the posts, and initially mis-read W810i as meaning the 810 wimax! Oops and sorry, mind you if this is doable, it'd be great.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#18
Originally Posted by gazza_d View Post
Actually, just re-read the posts, and initially mis-read W810i as meaning the 810 wimax! Oops and sorry, mind you if this is doable, it'd be great.


Still needs packaging, however; will upload to extras-devel when done.

Some notes:
  • Only works with songs that are tagged.
  • Due to the way Diablo handles notifications, you have to press the home key to see them. I'll add an option (by way of editing its init.d script) that lets you use HildonBanner instead (bubbles in the right with a blue 'i').

(Though I take back what I said about OMS - I just used DBus-GLib for this. Much nicer than bloody MAFW.)

Last edited by qwerty12; 2010-02-28 at 13:04.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 961 | Thanked: 565 times | Joined on Jul 2007 @ Tyneside, North East England
#19
Originally Posted by qwerty12 View Post


Still needs packaging, however; will upload to extras-devel when done.

Some notes:
  • Only works with songs that are tagged.
  • Due to the way Diablo handles notifications, you have to press the home key to see them. I'll add an option (by way of editing its init.d script) that lets you use HildonBanner instead (bubbles in the right with a blue 'i').

(Though I take back what I said about OMS - I just used DBus-GLib for this. Much nicer than bloody MAFW.)
Blooming magic - Top Man!
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#20
Originally Posted by qwerty12 View Post
Still needs packaging, however; will upload to extras-devel when done.
Now Playing Notifier 0.1 is in Diablo extras-devel.

I imagine tuminoid is working on the Fremantle version.

By default, notifications hide after 10 seconds, they hide when the track is stopped and, of course, they hide when the track is changed.

By default, it uses this type of notification:


But it can be configured to use a HildonBanner, instead:


If you wish to change the timeout and the type of notification:
Edit the file /etc/default/now-playing-notifier and change NPN_OPTIONS as required.
E.g., to make it use a HildonBanner with a timeout of 20 seconds: NPN_OPTIONS="-u -t 20"

When using the IM-type notifications, a timeout of '0' means it will stay on the screen forever (until destroyed upon the changing/stopping of the track).

Oh, and it only works on tracks with artist and title tags. If someone knows a way to get the filename of the currently playing track from the Media Player, let me know.

Last edited by qwerty12; 2010-02-28 at 20:22.
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:59.