View Full Version : Plugin for alternative volume and now playing displays
Here's a plugin I wrote as a demo of some new 6.5 features for plugin writers. I'm posting it here as people may like the alternative displays it gives.
The plugin provides alternative displays for volume, now playing, and the second screen of tranporter. You need the latest version of 6.5 or 7.0 [latest nightly should do]
Install the plugin ensuring all files go in the plugin directory, then go to player settings - plugins - custom displays and select the alternative displays to use.
http://forums.slimdevices.com/attachment.php?attachmentid=1611&d=1157027113
Feedback welcome.
Adrian
Adrian
Don't know why my first answer to the developpers list never showed up...
So I'll give it one more try. Because...
> The plugin provides alternative displays for volume, now playing, and
> the second screen of tranporter.
This is great! I especially like the volume screen as some of my boxes are
quite a few meters from where I'm using the remote. Is this a plugin you
will maintain or is it worth stealing that code and integrating it into my
screensaver? :-)
--
Michael
-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)
Feel free to steal. I hadn't planned to maintain it, but needed to write something to prove the display code did what I wanted. I had your screensaver in mind when I added some of it anyway!
If there is interest I could maintain it, but as I don't have a web site it would need hosting somewhere...
Patrick Dixon
2006-08-30, 11:35
I like it too - don't like the volume control font much but do like the progress bar with total and elapsed time.
If only I could perl ...
> Feel free to steal.
I'll do, thanks! The only problem I'll have is the need to bundle a fonts
file. How do you create those files? Is this a photoshop thing?
> If there is interest I could maintain it, but as I don't have a web
> site it would need hosting somewhere...
Couldn't you upload it as an attachment to the wiki?
--
Michael
-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)
I had a quick look at the code and if I understands this correctly the plugin actually changes stuff in the "Now Playing" screen without re-implementing all the "Now Playing" screen logic ?
Michael, does this mean that it would be possible to have an option in the MusicInfoSCR screen saver that it should replace the ordinary "Now Playing" display ?
I would really love this, because this would meen that I don't have to set the screen saver to 5 seconds or less to see the TrackStat ratings without to long delay (they are viewed through the MusicInfoSCR as a custom title format today)
I'm editting the font files in gimp on linux, but anything which can edit a black and white bmp should be OK. [gimp is better than ms paint though]
Patrick - the font is editable - just edit the bitmap and edit the appropriate characters. The format of the bitmap is 33 pixels high and as long as necessary. The lowest pixel defines when one character ends and the next starts. Character 0 and 10 are reservered, others are in asci positions except I have stolen the letters for the volume bar. Edit the font file and restart the server to see the changes.
OK I'll post this plugin to the wiki after any more feedback.
I had a quick look at the code and if I understands this correctly the plugin actually changes stuff in the "Now Playing" screen without re-implementing all the "Now Playing" screen logic ?
Yes - this plugin is a demonstration of the facility I added for a plugin to replace the standard now playing screen with its own display. So should be able to make MusicInfo appear as the default now playing.
cbemoore
2006-08-30, 13:14
The new volume control is brilliant! Thanks Triode!
I also like the new Now Playing screen. But when you cycle through the display options (by pressing "Now Playing") the screen only changes every 3rd press.
This is because originally there were 3 separate screens (no progress info, time elapsed and time remaining) which all display the same information on the new Now Playing screen.
Would this be easy to fix this? I'd try doing it myself, but my Perl skills are nonexistent.....
> If only I could perl ...
What would you do then? You can still enable the plugin without using the
volume bar.
--
Michael
-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)
> Michael, does this mean that it would be possible to have an option in
> the MusicInfoSCR screen saver that it should replace the ordinary "Now
> Playing" display ?
As Triode said, this would be possible. Now I only have to find out _how_
to do it :-)
--
Michael
-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)
when you cycle through the display options (by pressing "Now Playing") the screen only changes every 3rd press.
I didn't plan to implement the other modes. Unless there is demand.. You can remove options from the now playing list by going to the web page and setting the ones not used to blank. This would mean the options line up with the plugin..
Patrick Dixon
2006-08-31, 03:48
Adrian, I know you don't plan to maintain this plugin but I had a crash when I powered down my SB:-
2006-08-30 22:57:17.0619 Use of uninitialized value in hash element at /usr/loca
l/6.5/server/Slim/Schema.pm line 1306.
2006-08-30 22:57:19.0304 Use of uninitialized value in hash element at /usr/loca
l/6.5/server/Slim/Schema.pm line 1306.
Can't call method "isa" on an undefined value at /usr/local/6.5/server/Plugins/C
ustomDisplay/Plugin.pm line 24.
Not sure what the Schema.pm error is, the log seems to have quite a few of them.
Just updated to hopefully fix the crash - please see 1st post for latested versions.
This won't fix the: 2006-08-30 22:57:17.0619 "Use of uninitialized value in hash element at /usr/loca
l/6.5/server/Slim/Schema.pm line 1306 messages" though, nothing to do with this plugin...
> Adrian, I know you don't plan to maintain this plugin but I had a crash
> when I powered down my SB:-
As I'm very probably going to integrate it in MusicInfoSCR, I had a quick
look:
> Can't call method "isa" on an undefined value at
> /usr/local/6.5/server/Plugins/CustomDisplay/Plugin.pm line 24.
Yep, the plugin doesn't check whether there's actually a player or not.
Let's blame it to the demo state of the code :-).
Add something like
return unless (defined $client);
on line 20
--
Michael
-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.