So I've gotten a request from a guy trying to use Rainmeter with a media player called
Spider Player. It looks pretty easy; my only question is whether this is worth integrating with NowPlaying, or is best left to a traditional WebParser-based skin.
Spider offers an API for third-party apps in the form of a locally-hosted web interface (e.g.
192.168.0.102:7777/API/1/), which displays a very RegExp-friendly plaintext readout. Example:
Code: Select all
STATE=PLAYING
VOLUME=10000
MUTE=0
REPEAT=1
REPEAT_MODE=PLAYLIST
SHUFFLE=1
TITLE=Here Comes The Flood
ARTIST=Peter Gabriel
ALBUM=Growing Up Live
TRACK=1/18
GENRE=Rock
YEAR=2003
DURATION=358752
POSITION=2409
In addition, commands can be sent to the player via HTTP requests (e.g.
server:port/API/1/PLAY,
server:port/API/1/NEXT,
server:port/API/1/SHUFFLE). This one's a little tricker to do with WebParser, but I think you could do it by having a MouseAction bang that activates the measure, thus sending the request, which then deactivates itself with a FinishAction.
One issue (of many, I'm sure) with baking this into NowPlaying is that we'd have to add syntax to supply the server address and port to the plugin. Given that Spider is not a major media player, and that all of this can be done with Rainmeter's existing utilities, I can see how it's not worth adding all the under-the-hood complexity. Nonetheless, I thought I should pass it along.