I made a remote player

General discussions.

Moderator: moderators

I made a remote player

Postby jverheye » Wed May 29, 2013 7:05 pm

Hi

I made a remote player for the Subsonic Server.
It's a Java program that gets the current playing song via the API for a certain player id.
With this system, you can install multiple players around your house, or make a jukebox without the subsonic jukebox feature, if your server does not support audio.

How to use it?

Download the zip file: http://www.projectv.be/downloads/SubsonicPlayer.zip

Unzip Subsonic Player.zip
open config.properties with a text editor and edit the values as following:

subsonic.userName=your_user (change this to your subsonic userName)
subsonic.password=your_pass (change this to your subsonic password)
subsonic.playerId=1 (to know this, see *)
subsonic.pollingInterval=1000 (this is the interval in milliseconds the player will poll subsonic for the current song. don't change this, unless you know what you're doing)
subsonic.serverUrl=http://localhost:4040 (change this to your subsonic server url)

* how to know the player id ? Open the Subsonic web interface, go to settings, select the player you wish to use (should be a web player) and hover over the 'delete player' or 'clone player' link. In the status bar of your browser you should see something like http://localhost:4040/playerSettings.view?delete=52 or http://localhost:4040/playerSettings.view?clone=52
where 52 is your player id

When finished the editing, save the config.properties en run start.sh (on a Linux or Mac system) or start.bat on a windows system.
Ensure yourself Java is installed and in your path.

Now go into your Subsonic web interface, select the player you configured in the config.properties, mute it, and play a song. The remote player should pick it up.
Note: there is no support for stopping the player yet. You should close the program or play a silent mp3 :)

If you have any questions or trouble, please ask here.
jverheye
 
Posts: 4
Joined: Sun Dec 09, 2012 4:53 pm

Re: I made a remote player

Postby billbacadill » Sat Jun 22, 2013 6:20 pm

Hi,

I am trying to use your remote player on a Windows XP box.

The java version on this box should be close to the latest as shown here:
==================================================================================
C:\$wlb\JukeBox Software\Subsonic-WebBased\SubsonicPlayer\Subsonic Player>java -showversion
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
==================================================================================

I am getting the following error when trying to start it:
===========================================================================================================================
C:\$wlb\JukeBox Software\Subsonic-WebBased\SubsonicPlayer\Subsonic Player>java -cp subsonic-player-1
.0.jar subsonic.player.application.Application config.properties
Exception in thread "main" java.lang.UnsupportedClassVersionError: subsonic/player/application/Appli
cation (Unsupported major.minor version 51.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
========================================================================================================

Any help is appreciated.

Thanks, Bill
billbacadill
 
Posts: 7
Joined: Wed May 29, 2013 2:15 am

Re: I made a remote player

Postby wendigo » Sat Jun 29, 2013 12:27 pm

Actually, the latest versions of Java are 1.7.0_25 for Java 7 or 1.6.0_41 for Java 6, so you're nowhere near the latest one ;)
wendigo
 
Posts: 26
Joined: Sun Dec 11, 2011 11:50 am


Return to General

Who is online

Users browsing this forum: No registered users and 13 guests