I can't reproduce the issue I encountered this afternoon...

Feel free to give this version a try. It hasn't been tested a lot, but
should basically work (trunk only). The key to integrating your data
with MIS is a function called getMusicInfoSCRCustomItems():


Code:
--------------------
    sub getMusicInfoSCRCustomItems {
        return {
                'BUFFER' => {
                        'cb' => 
\&Plugins::MusicInfoSCR::Info::getBufferFullness,
                        'cache' => 0
                },
                'NOTESYMBOL' => {
                        'cb' => sub {
                                        my $client = shift;
                                        return $client->symbols('notesymbol');
                        }
                }
        };
  }
--------------------


There are two parameters:
- 'cb': a reference to the function to be called. $client and $song
(the currently playing track object) are passed to that function.

- 'cache' can have one of two values: undef or a number >=0
* undef: update on song change only
* 0: don't cache
* 1+: cache for x seconds (eg. 3600 to update wheather forecast once
an hour)

In the above example you see that the buffer state is updated once a
second, while the notesymbol is updated on song change only (pure
laziness: it could be updated every 999999 seconds as well).


+-------------------------------------------------------------------+
|Filename: SlimStuff-MusicInfoSCR.tar.gz                            |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=2973|
+-------------------------------------------------------------------+

-- 
mherger

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=35997

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to