maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   "Now Playing" app (https://talk.maemo.org/showthread.php?t=45931)

F2thaK 2010-03-02 14:25

Re: "Now Playing" app
 
this app rox, you cud use it for other notifications maybe??

reminders/// etc

tuminoid 2010-03-02 17:17

Re: "Now Playing" app
 
Quote:

Originally Posted by f2thak (Post 552481)
this app rox, you cud use it for other notifications maybe??

reminders/// etc

Care to elaborate more? Reminders aka alarms already have quite extensive apps around them.

Trancedancer 2010-03-02 17:47

Re: "Now Playing" app
 
Hi, and thanks for your reply!
It's good to know! Wish it could be fixed somehow!
Now Playing Notifications is a superapp!

/Trancedancer

Quote:

Originally Posted by qwerty12 (Post 552472)
You've stumbled upon a bug in the Media Player widget, unrelated to Now Playing Notifications: https://bugs.maemo.org/show_bug.cgi?id=5894


qwerty12 2010-03-02 18:28

Re: "Now Playing" app
 
I've committed support for showing the filename if the tag information isn't available.

Quote:

Originally Posted by generationally (Post 551293)
My request would be that instead of showing some media player icon together with the artist and song, it would show the actual album art if available. Doable?
]

Nope. The notification plugin used by the N900 doesn't support being given an explicit path to an image.
A workaround would be to get the image, resize it (multiple times for the small notification and for the larger notification), put the resulting images in the folders that the notification plugin does look for images and hope that we don't encounter a race condition. Doing all this, BTW, would make the N900 rather slow when pressing the "next track" button repeatedly.

@tuminoid

I'm looking at https://garage.maemo.org/pm/task.php...roject_id=2599 .

It wouldn't take long to add statusbar applet functionality (I've written a few of those already =)) to the notifier.

This is what I've come up with:
http://imgur.com/9Rt5J.png

The album art is real, is from MAFW and resizing it is no problem.
Ignore "Example Title" and "Value"; you already know that we can get those filled in by MAFW.

Trancedancer 2010-03-02 18:39

Re: "Now Playing" app
 
Wow, you are really productive out there, guys! Wonderful!
Wish I could help out, but it's not my thing... :-(

The statusapplet-function is a great idea!!!
This way, maybe it could be possible to turn the Notification On/Off??? :-)

tuminoid 2010-03-02 18:56

Re: "Now Playing" app
 
Quote:

Originally Posted by Trancedancer (Post 552779)
The statusapplet-function is a great idea!!!
This way, maybe it could be possible to turn the Notification On/Off??? :-)

There is a real settings applet in the works for configuring all aspects of notifications, including on/off, I don't see benefit for having us taking space in menu, there are pelnty of useful applets to put there instead.

tuminoid 2010-03-02 19:06

Re: "Now Playing" app
 
Quote:

Originally Posted by qwerty12 (Post 552768)
I've committed support for showing the filename if the tag information isn't available.

Thanks, looked at the code and it seems really clean.

Quote:

Originally Posted by qwerty12 (Post 552768)
Nope. The notification plugin used by the N900 doesn't support being given an explicit path to an image.
A workaround would be to get the image, resize it (multiple times for the small notification and for the larger notification), put the resulting images in the folders that the notification plugin does look for images and hope that we don't encounter a race condition. Doing all this, BTW, would make the N900 rather slow when pressing the "next track" button repeatedly.

Thats sad and a bit surprising too.

Though I got this (sick) idea of having the configuration applet have a button, which would gather the album art from MAFW and batch process it to suitable icons. It'd take time, but since it would be in the applet and explicitly started by user, consuming time is no problem. Do you see problems with this approach?

Quote:

Originally Posted by qwerty12 (Post 552768)
@tuminoid

I'm looking at https://garage.maemo.org/pm/task.php...roject_id=2599 .

It wouldn't take long to add statusbar applet functionality (I've written a few of those already =)) to the notifier.

This is what I've come up with:
http://imgur.com/9Rt5J.png

The album art is real, is from MAFW and resizing it is no problem.
Ignore "Example Title" and "Value"; you already know that we can get those filled in by MAFW.

I was merely meaning that some evaluation should be made if there is difference having the notifier as standalone daemon or to make it a plugin (without any icon/buttons). This way we could get rid of dsmetool and Xsession scripts and use more standard way.

I also see very little advantage of having the statusmenu button for notifier. It requires user to actively seek it and is pretty much the same if user would go to desktop and look at mediaplayer widget which is showing the exact same things. Agree?

qwerty12 2010-03-02 19:26

Re: "Now Playing" app
 
Quote:

Originally Posted by tuminoid (Post 552820)
Thats sad and a bit surprising too.

Though I got this (sick) idea of having the configuration applet have a button, which would gather the album art from MAFW and batch process it to suitable icons. It'd take time, but since it would be in the applet and explicitly started by user, consuming time is no problem. Do you see problems with this approach?

I wouldn't have a problem, no, but it'd have to be manually synced and optified of course =)

Quote:

Originally Posted by tuminoid (Post 552820)
I was merely meaning that some evaluation should be made if there is difference having the notifier as standalone daemon or to make it a plugin (without any icon/buttons). This way we could get rid of dsmetool and Xsession scripts and use more standard way.

I also see very little advantage of having the statusmenu button for notifier. It requires user to actively seek it and is pretty much the same if user would go to desktop and look at mediaplayer widget which is showing the exact same things. Agree?

Yes, agreed. Apologies, I'm going overboard here. I do have to admit that I would like a statusmenu applet because I'm too lazy to go to the deskop but that is outside the scope of the notifier. Maybe in my own time... :)

I'm not bothered either way, TBH. It's much nicer to test it as a daemon, though. :)

Scottlfa 2010-03-02 19:47

Re: "Now Playing" app
 
Thanks for the notification app look forward to other apps [powerkey menu] for example :)

Thiis 2010-03-02 20:00

Re: "Now Playing" app
 
Got it!
Thx alot! Good work!
Like the app, as simple as it can be, I don't miss anything. If I read it right you also wanted to implement a next-trackbutton in the notify. To me, that'd be the only thing further needed, but I dont know if its possible and if its gonna be easy to make a good difference between tapping it to go to the mediaplayer and tapping 'next track'.
Perhaps repeat track could also be usefull.

That's one more opinion for ya guys;)

tuminoid 2010-03-02 20:54

Re: "Now Playing" app
 
Quote:

Originally Posted by qwerty12 (Post 552858)
I wouldn't have a problem, no, but it'd have to be manually synced and optified of course =)

Yup, but thats nothing impossible, just time consuming and close to borderline of "too much work/risk for little gain". I guess its one of the last things to implementa, sugar on top.

Quote:

Originally Posted by qwerty12 (Post 552858)
Yes, agreed. Apologies, I'm going overboard here. I do have to admit that I would like a statusmenu applet because I'm too lazy to go to the deskop but that is outside the scope of the notifier. Maybe in my own time... :)

That my friend sounds like a perfect plugin: a simple mediaplayer applet. Shove play/pause and nexttrack buttons + artist/title in a statusmenu item and its an instant hit! I'd be happy to retire the mediaplayer desktop widget!

Quote:

Originally Posted by qwerty12 (Post 552858)
I'm not bothered either way, TBH. It's much nicer to test it as a daemon, though. :)

That is definitely true and it makes very little difference to end-user, so I'll put that idea on hold until I can figure a compelling reason to do so.

tuminoid 2010-03-02 20:58

Re: "Now Playing" app
 
Quote:

Originally Posted by Thiis (Post 552898)
Got it!
Thx alot! Good work!
Like the app, as simple as it can be, I don't miss anything. If I read it right you also wanted to implement a next-trackbutton in the notify. To me, that'd be the only thing further needed, but I dont know if its possible and if its gonna be easy to make a good difference between tapping it to go to the mediaplayer and tapping 'next track'.
Perhaps repeat track could also be usefull.

That's one more opinion for ya guys;)

Repeat is not possible or useful even. Next track is simple but configuration applet takes some time to create. Note that there is only single action happening when you click the notification, its not like we can add buttons there :)

b666m 2010-03-02 21:04

Re: "Now Playing" app
 
am i blind?
or is this app missing a menu where it can be deactivated?
it's great if you're browsing or doing something on a desktop where the media player widget isn't on...
but i would like to deactivate it for some time too :)
(couldn't find a button in the statusbar and no point in the settings :/ )

Trancedancer 2010-03-02 22:49

Re: "Now Playing" app
 
No, there is no option to deactivate it...I pointed that out too earlier...that maybe it could be in settings somehow, or in the statusapplet.
I would hate to uninstall it, I love it!

daddeddad 2010-03-02 23:07

Re: "Now Playing" app
 
Stable. Works good even with heavy stresstesting.
thanx!

tuminoid 2010-03-03 03:45

Re: "Now Playing" app
 
Quote:

Originally Posted by b666m (Post 552997)
am i blind?
or is this app missing a menu where it can be deactivated?
it's great if you're browsing or doing something on a desktop where the media player widget isn't on...
but i would like to deactivate it for some time too :)
(couldn't find a button in the statusbar and no point in the settings :/ )

Nowplayingd is in development and is not yet having such feature. Disabling happens by uninstalling (well, you can disable it until reboot from Xterm, as root say "dsmetool -k /usr/bin/nowplayingd", re-run it with "dsmetool -f /usr/bin/nowplayingd")

Settings applet will be added soon.

MohammadAG 2010-03-03 11:35

Re: "Now Playing" app
 
Thanks for the app, wonderful job :)
Wouldn't it be better/cleaner/easier (w/e :)) to use this instead of the notification method?
http://i46.tinypic.com/2eppq14.jpg

Edit: Well it would disable the click to open media player function.
Just thought of another thing, might look at the code and edit/learn to edit C code :)
Thinking of adding a LED notification (traffic light pattern that doesn't repeat itself), sure it wouldn't help with the original idea of the program but it might be considered as an improvement.

qwerty12 2010-03-03 11:39

Re: "Now Playing" app
 
Quote:

Originally Posted by MohammadAG (Post 553719)
Thanks for the app, wonderful job :)
Wouldn't it be better/cleaner/easier (w/e :)) to use this instead of the notification method?
http://i46.tinypic.com/2eppq14.jpg

Check the tasks at https://garage.maemo.org/projects/nowplayingd/ (can't give you a direct link, sorry; behind a firewall that blocks anything and everything). We do plan to add an option to make it use HildonBanner instead but I guess it's not a priority ATM.

tissot 2010-03-03 13:36

Re: "Now Playing" app
 
I do definitely like the notification way nicer, but if there will be option at some point it wont hurt anybody :)

generationally 2010-03-03 13:36

Re: "Now Playing" app
 
Quote:

Originally Posted by tuminoid (Post 552820)

Though I got this (sick) idea of having the configuration applet have a button, which would gather the album art from MAFW and batch process it to suitable icons. It'd take time, but since it would be in the applet and explicitly started by user, consuming time is no problem. Do you see problems with this approach?

I

I somehow don't like the idea of creating/polluting the filesystem with thousands of small album art images. I sure hope they won't show up in the image gallery ;)

How does the media player widget handle this? I guess it creates the album art of the current playing song on the fly.

Couldn't this be done by the 'now playing' daemon also? Or would it create a too long delay before the notification is displayed? I wouldn't mind an extra second or so delay before the notification is shown.

QbAnYtO 2010-03-03 13:44

Re: "Now Playing" app
 
Quote:

Originally Posted by tuminoid (Post 547689)
Whats wrong with Mediaplayer desktop widget thats part of the standard Mediaplayer?


this just might only be me, but i have to keep adding songs to my playlist to play them. and most times when i press play, i wont play. its just there for nuthin. possible bug? i love the widget but its unstable atleast for me
.

Hardknox 2010-03-03 14:10

Re: "Now Playing" app
 
I installed a now playing from deb, grabbed the phone after installation reboot but nothing happens as if it was not working, what could be the cause?

tuminoid 2010-03-04 18:04

Re: "Now Playing" app
 
Quote:

Originally Posted by Hardknox (Post 553968)
I installed a now playing from deb, grabbed the phone after installation reboot but nothing happens as if it was not working, what could be the cause?

Whats the output of
Code:

ps ax | grep nowplayingd
and
Code:

dpkg -l | grep nowplayingd
?

Hardknox 2010-03-09 17:48

Re: "Now Playing" app
 
Tuminoid when i install from .deb on x-term
wrote starting nowplayingd and restart phone, and when i log to ssh on phone and there dpkg -i nowplaying... was fine, but after reboot deamon not started and another time apt-get remove and install... this is bug or something wrong with .deb file ?

tuminoid 2010-03-11 06:33

Re: "Now Playing" app
 
Quote:

Originally Posted by Hardknox (Post 561503)
Tuminoid when i install from .deb on x-term
wrote starting nowplayingd and restart phone, and when i log to ssh on phone and there dpkg -i nowplaying... was fine, but after reboot deamon not started and another time apt-get remove and install... this is bug or something wrong with .deb file ?

I'm not offering .deb file for download anywhere, its available from extras-devel repository. So where did you get the deb?

The reboot with 0.1-2 is not intended, it is caused probably by a bug in dsmetool (I've seen similar issues with other daemons as well in certain circumstances), but its fixed in unreleased version of nowplayingd, by supplying a different flags to dsmetool (it gives up instead of rebooting).

I have no idea why the daemon would not be running after reboot, if deb was installed successfully, as its started by dsmetool, and given the flags in 0.1-2 it guarantees the daemon starts, or device reboots.

If you are installing unreleased 0.2 from GIT directly, then it might be a case where dsmetool has already given up and daemon won't be running. I'll look into it before sending 0.2 to -devel.

M A S T E R 2010-03-12 06:20

Re: "Now Playing" app
 
Quote:

Originally Posted by QbAnYtO (Post 553910)
this just might only be me, but i have to keep adding songs to my playlist to play them. and most times when i press play, i wont play. its just there for nuthin. possible bug? i love the widget but its unstable atleast for me
.

It is slightly unstable but believe it or not everytime you turn your n900 off with the widget on it freezes it. i dont know why but anyway all you should have todo is exit the widget out and put it back on. i know its lame but thats how it works for me and i noticed it only does it when the n900 is turned off with the widget on.

I also notice that when u do that and u try to play something or u remove it too fast while the phone is still turning on it resets all the widgets =(

MASTER

hawaii 2010-03-19 04:29

Re: "Now Playing" app
 
Seems that nowplayingd isn't run after fresh reboot for me, with 0.1-2

Works just fine if I start it on my own. Is it being started by init?

tuminoid 2010-03-19 06:08

Re: "Now Playing" app
 
Quote:

Originally Posted by hawaii (Post 572817)
Seems that nowplayingd isn't run after fresh reboot for me, with 0.1-2

Works just fine if I start it on my own. Is it being started by init?

There is issues with starting system currently. I've been extremely busy at work lately, and didn't have time to make changes in nowplayingd. I'm hoping I can release new version to -devel this weekend.

hawaii 2010-03-19 19:11

Re: "Now Playing" app
 
No worries at all. Good work you guys have been doing.

NightShift79 2011-01-13 19:10

Re: "Now Playing" app
 
Hi Guys.

I'm using this lil' addition since day 2 i guess. I wonder if it's still that popular.
For me it is. And i thought if the devs are still interested to expand or update the "now playing notifications"

- Could you imagine a way to customize the the notifications position?
Like, pop it up on the bottom, left, right side of the screen... move it from left to right side.... scrolltext...
...something like that.

I also photoshopped together some styles of notification I could imagine.^^
tooo bad I'm just a graphics guy...

http://img151.imageshack.us/img151/8...tification.png
http://img17.imageshack.us/img17/8061/notification2.png

...any thoughts?
Would be great to see Tuomo or qwerty12 back in here.

Lota respect for you guys.

gazza_d 2011-01-13 19:58

Re: "Now Playing" app
 
Quote:

Originally Posted by NightShift79 (Post 919698)
Hi Guys.

I'm using this lil' addition since day 2 i guess. I wonder if it's still that popular.
For me it is. And i thought if the devs are still interested to expand or update the "now playing notifications"

- Could you imagine a way to customize the the notifications position?
Like, pop it up on the bottom, left, right side of the screen... move it from left to right side.... scrolltext...
...something like that.

I also photoshopped together some styles of notification I could imagine.^^
tooo bad I'm just a graphics guy...

http://img151.imageshack.us/img151/8...tification.png
http://img17.imageshack.us/img17/8061/notification2.png

...any thoughts?
Would be great to see Tuomo or qwerty12 back in here.

Lota respect for you guys.

This was installed on my N810 as soon as Qwerty12 released it, and was one of the first on my N900.

Dunno about Tuomo, but Qwerty stormed off after a bust up last year, leaving some closed sourcemedia player control package with a massive rant.

1 thing I'd like to have the option of would be to have the artist and track announced. That would be nice when listening on headphones with the N900 in the pocket or pack.

Addison 2011-12-16 02:26

Re: "Now Playing" app
 
Quote:

Originally Posted by generationally (Post 551293)
Thanks guys!

Just installed it and it works nicely so far!

My request would be that instead of showing some media player icon together with the artist and song, it would show the actual album art if available. Doable?

Edit: This is how it looks for me if anyone is interested ;)

http://farm5.static.flickr.com/4030/...8d1acbf1_o.png

I'm interested.

How did you do this? :)

Addison 2011-12-16 19:16

Re: "Now Playing" app
 
I can't get this to go to the HildonBanner, it only shows in the Task Manager and setting the time limit doesn't seem to take either.

I have this in my config file.


NPN_OPTIONS="-u -t 4"


Diablo. Version 0.1. And yeah, I even rebooted.

gazza_d 2011-12-17 10:14

Re: "Now Playing" app
 
Quote:

Originally Posted by Addison (Post 1138456)
I can't get this to go to the HildonBanner, it only shows in the Task Manager and setting the time limit doesn't seem to take either.

I have this in my config file.


NPN_OPTIONS="-u -t 4"


Diablo. Version 0.1. And yeah, I even rebooted.

It is NPN_OPTS not NPN_OPTIONS.....

change that and you should be good to go...

Addison 2011-12-17 19:16

Re: "Now Playing" app
 
No, that didn't work at all.

It's not accepting anything it that config file.

I even changed the permissions to user/users for it and it's still not a go.

Any ideas?

gazza_d 2011-12-17 23:40

Re: "Now Playing" app
 
Quote:

Originally Posted by Addison (Post 1138813)
No, that didn't work at all.

It's not accepting anything it that config file.

I even changed the permissions to user/users for it and it's still not a go.

Any ideas?

have you tried editing it as root? If not, then try as root and it should let you..

What editor are you using? nano or vi?

youmeego 2011-12-18 01:30

Re: "Now Playing" app
 
i ma upset than some talented maemo developers didnt get free n9(50). nokia in my country give away ten free n9 in a lucky draw.

Addison 2011-12-18 02:11

Re: "Now Playing" app
 
Yeah, I edit it as root using Emelfm2.

I save the file just fine.

But for some reason, the option for Hildonbanner and the timer don't change the default settings.

gazza_d 2011-12-18 10:34

Re: "Now Playing" app
 
2 Attachment(s)
Have you rootsh installed? If not, then install it.

Try editing it in Xterm;
1. open xterm from the utilities menu.
2. type root - this will change you to be the "superuser/administrator"
3. type nano /etc/default\now-playing-notifier -this will open the file for text editing in the nano text editor.
4. make the changes, and save by pressing ctrl-x - this will save and close the file.
5. type /etc/init.d/now-playing-notifier restart - This will restart the service and save you from rebooting.

test by opening mediaplayer and playing a music track. Note that the track needs the metadata like artist, title otherwise it won't display anything

Addison 2011-12-18 20:19

Re: "Now Playing" app
 
I really don't get this. :)

sudo etc/init.d/now-playing-notifier restart
Restarting Now Playing Notifier:

It just hangs on this without ever giving me a new command line.

After running that and having this
NPN_OPTS="-u -t 2"
in my config file. No notifications anymore.

Here is my complete config file now.

# Default settings for now-playing-notifier. This file is sourced by /bin/sh from
# /etc/init.d/now-playing-notifier.

# -u will make now-playing-notifier use a HildonBanner instead
# -t <number> allows you to adjust the time that the notification is displayed on-screen for (default: 10)

# Options to pass to now-playing-notifier
NPN_OPTIONS="-u -t 2"

I receive notifications but they appear like so.

http://img59.imageshack.us/img59/715...1121815024.png

Current permissions and owners of the config file.

http://img193.imageshack.us/img193/9...1121815065.png

Thanks for helping me with this gazza. :)


All times are GMT. The time now is 08:14.

vBulletin® Version 3.8.8