RedDom
05-11-05, 06:19 AM
I've created a basic plugin for lcd smartie, to get info from JRMC and display it on any LCD supported by smartie. Its my first shot at JRMC development, .Net development and smartie plugin development, its also only been tested on my dev machine and my media pc. so expect it not to work, but post any feedback here and I'll try and fix it. I don't have much time to work on it but I'll do my best.
I don't have anywhere to host it so will attach to this message (I think you will need to be logged in to download it)
Thx
RD
JRMC_Now plugin for LCD Smartie
by Dominic Stubbins
This should be considered Alpha quality code, I wrote it for my own system, where i use it with JRMC11 and netremote. It has a number of known Bugs:
1)You may find you end up with some rougue media center processes running. I cant get it to shutdown properly when you close media center.
2)the plugin is not threaded, smartie will hang if it cant talk to jrmc for a while, if for example you are using the jrmc UI!
3) Many others I'm sure.
Prerequisites
JRMC (only tested 11, should work on some earlier ones)
.Net
LCDSmartie 5.3 (lcdsmartie.sourceforge.net)
Install:
Copy JRMC_Now.dll, interop.mediajukebox.dll into the lcdSmartie\Plugins directory.
USage.
There Are two functions in the plugin
Function 1, returns all the information about the current track in playing now.
you specify, dll name,FunctionNo (Number) ,Fieldname (String),Formatted (String)
dllname=JRMC_Now.dll
functionno=1
Fieldname, can be any of the fields in your database, for example. (Album,Artist,Albumartist,Name,Duration,Bitrate,genre,custom 1 all work, as do some others),
formatted should be set to "TRUE" or "False", this will format the response, so for example duration, will either be returned as min:seconds or just seconds if formatted=false
examples of lcdsmartie entries
$dll(JRMC_Now.dll,1,artist,true) displays artist
$dll(JRMC_Now.dll,1,duration,true) displays 3:24
$dll(JRMC_Now.dll,1,duration,false) displays 204
Function = 2, returns the state of the current system, it has two options, Position or status. Position returns the current track time, either in seconds, or formatted. Status returns the current play status, stopped (0) paused (1) ,playing(2) or waiting(3) either as a number or formatted as text
$dll(JRMC_Now.dll,2,status,true) displays "Playing"
$dll(JRMC_Now.dll,2,status,false) displays "2"
$dll(JRMC_Now.dll,2,position,true) displays 1:24
$dll(JRMC_Now.dll,2,position,true) displays 84
I don't have anywhere to host it so will attach to this message (I think you will need to be logged in to download it)
Thx
RD
JRMC_Now plugin for LCD Smartie
by Dominic Stubbins
This should be considered Alpha quality code, I wrote it for my own system, where i use it with JRMC11 and netremote. It has a number of known Bugs:
1)You may find you end up with some rougue media center processes running. I cant get it to shutdown properly when you close media center.
2)the plugin is not threaded, smartie will hang if it cant talk to jrmc for a while, if for example you are using the jrmc UI!
3) Many others I'm sure.
Prerequisites
JRMC (only tested 11, should work on some earlier ones)
.Net
LCDSmartie 5.3 (lcdsmartie.sourceforge.net)
Install:
Copy JRMC_Now.dll, interop.mediajukebox.dll into the lcdSmartie\Plugins directory.
USage.
There Are two functions in the plugin
Function 1, returns all the information about the current track in playing now.
you specify, dll name,FunctionNo (Number) ,Fieldname (String),Formatted (String)
dllname=JRMC_Now.dll
functionno=1
Fieldname, can be any of the fields in your database, for example. (Album,Artist,Albumartist,Name,Duration,Bitrate,genre,custom 1 all work, as do some others),
formatted should be set to "TRUE" or "False", this will format the response, so for example duration, will either be returned as min:seconds or just seconds if formatted=false
examples of lcdsmartie entries
$dll(JRMC_Now.dll,1,artist,true) displays artist
$dll(JRMC_Now.dll,1,duration,true) displays 3:24
$dll(JRMC_Now.dll,1,duration,false) displays 204
Function = 2, returns the state of the current system, it has two options, Position or status. Position returns the current track time, either in seconds, or formatted. Status returns the current play status, stopped (0) paused (1) ,playing(2) or waiting(3) either as a number or formatted as text
$dll(JRMC_Now.dll,2,status,true) displays "Playing"
$dll(JRMC_Now.dll,2,status,false) displays "2"
$dll(JRMC_Now.dll,2,position,true) displays 1:24
$dll(JRMC_Now.dll,2,position,true) displays 84