2015-11-12, 09:30
does this work with a free spotify account? does this work with a windows pc?
(2015-11-12, 09:30)Ed76 Wrote: does this work with a free spotify account? does this work with a windows pc?
OpenELEC:~ # ./jdk1.8.0_65/bin/java -jar SCPlayer.jar
./jdk1.8.0_65/bin/java: line 6: syntax error: unexpected ")"
2015-12-06 14:56:16 ERROR AudioPlayer:67 - onActive error
javax.sound.sampled.LineUnavailableException
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openImpl(PulseAudioMixer.java:714)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:588)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:584)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.open(PulseAudioMixer.java:579)
at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:94)
at org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine.open(PulseAudioSourceDataLine.java:75)
at org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine.open(PulseAudioSourceDataLine.java:90)
at com.shuffle.scplayer.core.AudioPlayer.onActive(AudioPlayer.java:62)
at com.shuffle.scplayer.core.AudioPlayer.onPlay(AudioPlayer.java:81)
at com.shuffle.scplayer.core.SpotifyConnectPlayerImpl$5.apply(SpotifyConnectPlayerImpl.java:190)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:485)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:515)
at com.sun.jna.Native.invokeInt(Native Method)
at com.sun.jna.Function.invoke(Function.java:390)
at com.sun.jna.Function.invoke(Function.java:323)
at com.sun.jna.Library$Handler.invoke(Library.java:236)
at com.sun.proxy.$Proxy0.SpPumpEvents(Unknown Source)
at com.shuffle.scplayer.core.SpotifyConnectPlayerImpl$1.run(SpotifyConnectPlayerImpl.java:118)
at java.lang.Thread.run(Thread.java:745)
(2015-11-21, 19:27)jijsselstijn Wrote: Hi there!
Great work so far, I haven't been able to find something so close to what Spotify Connect offers. Props for that!
Yet, I'm currently having issues using Java on Openelec 6.0
I followed all instructions posted by user stevellion. Until I encountered the following:
Whenever I try:
Code:OpenELEC:~ # ./jdk1.8.0_65/bin/java -jar SCPlayer.jar
it throws this error:
Code:./jdk1.8.0_65/bin/java: line 6: syntax error: unexpected ")"
Am I missing a step?
Quote:Installing SCPlayer is straightforward.. https://github.com/crsmoro/scplayer/tree/master
Download the latest jdk from the link. You need jdk-8u65-linux-arm64-vfp-hflt.tar.gz
Gunzip it on your laptop/PC and then sftp it onto your Pi
ssh onto your Pi and "tar xvf jdk-8u65-linux-arm64-vfp-hflt"
This will create you a jdk1.8.0_65 directory
"wget https://github.com/crsmoro/scplayer/raw/...Player.jar"
"wget https://github.com/sashahilton00/spotify..._shared.so"
You also need to create the API Key.. follow the instructions and then either wget it or sftp onto your Pi.
On OpenElec, also need to run this command: "echo snd_bcm2835 >> /storage/.config/modules-load.d/audio.conf"
then type "reboot" and once available, ssh in again
Then run ./jdk1.8.0_65/bin/java -jar SCPlayer.jar - then go look at your Pi's Address:4000
That should let you log in and test: It should show up on your other Spotify devices/Mac/PC etc and you should be able to play to it.
once you've tested that. remove the file credentials.json (maybe don't need to do this always) and then run in silent mode.
./jdk1.8.0_65/bin/java -Dusername=[spotifyusername] -Dpassword=[spotifypassword] -DplayerName=[name for the player] -Dstandalone=true &
That will run it in background and you then should be able to play to it from your other Spotify devices.