Note: project has been discontinued due to the lack of code quality and the lack of available free time to improve it... If you're interested in the source code despite this, contact me and feel free to refactor it.
jSomaPlayer is a pure java shoutcast stream player (mp3) for the soma fm web radio. It can be used in command-line mode but it can also be controlled via a web browser since it includes a small web-server (jReflectServer). The browser GUI is optimized for mobile devices (using jo javascript framework). Works perfectly on the Raspberry Pi.
jSomaPlayer targets the Raspberry Pi since it uses Pi4J (http://pi4j.com).
Start with java:
java -jar jSomaPlayer.jar [options]
Options:
Other options: see below.
Example: java -jar jSomaPlayer.jar -if:wlan0 -gpin:32 -gpout:7
GPIO options on Raspberry Pi (e.g. in command-line mode):
-gpin:nm
-gpout:n
(n,m are integer numbers)
Example Raspberry Pi: java -jar jSomaPlayer.jar -play -gpin:32 -gpout:7
(start in command-line mode, use input pins 3 and 2 to switch channels,
use output pin 7, e.g. for LED light).
- See http://pi4j.com/usage.html for more information about GPIO.
- Make sure to use an ARM optimized JVM, see
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
(Player typically uses about 30-35% CPU on the Pi)
- If sound doesn't work (Source Data Line problems) try "sudo modprobe snd_bcm2835"
http://sourceforge.net/projects/jsomaplayer/
Icons provided by http://www.glyfx.com.