gilles-chanteperdrix / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

spotify does not play on tunneled connections to LMS #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. squeezelite running on remote host, external to firewalled/NAT'ed LMS local 
ip 192.168.1.10 
2. ports 9000, 9005, 3483 tunneled thru firewall to NAT'ed LMS server
3. play spotify stream

What is the expected output? blessed joy of hearing Spotify stream
What do you see instead?
[12:24:06.419613] test_open:159 playback open error: Invalid argument
[12:24:06.419697] output_init:1359 unable to open output device
[user@host ~/squeezelite]$ ./squeezelite -d all=debug -o front 127.0.0.1
[12:24:08.926641] stream_init:264 init stream
[12:24:08.926812] stream_init:265 streambuf size: 2097152
[12:24:08.927992] output_init:1305 init output
[12:24:08.928045] output_init:1308 outputbuf size: 3528000
[12:24:08.928102] output_init:1340 requested buffer_time: 20000 period_count: 4 
format: any mmap: 1
[12:24:08.942427] output_init:1366 output: front maxrate: 192000
[12:24:08.942478] output_init:1374 unable to lock memory: Cannot allocate memory
[12:24:08.944531] output_init:1397 unable to set output sched fifo: Operation 
not permitted
[12:24:08.944551] decode_init:101 init decode
[12:24:08.944599] output_thread:583 open output device: front
[12:24:08.946530] load_faad:557 loaded libfaad.so.2
[12:24:08.951665] load_vorbis:234 loaded libvorbisfile.so.3
[12:24:08.953621] load_flac:196 loaded libFLAC.so.8
[12:24:08.953632] register_pcm:191 using pcm
[12:24:08.954670] load_mad:292 loaded libmad.so.0
[12:24:08.954721] slimproto:683 connecting to 127.0.0.1:3483
[12:24:08.955032] slimproto:705 connected
[12:24:08.955045] slimproto:721 local player
[12:24:08.955057] sendHELO:109 mac: 00:23:ae:7f:94:3f
[12:24:08.955068] sendHELO:111 cap: 
Model=squeezelite,ModelName=SqueezeLite,AccuratePlayPoints=1,HasDigitalOut=1,Max
SampleRate=192000,aac,ogg,flc,aif,pcm,mp3,loc
[12:24:08.955439] alsa_open:269 opened device front using format: S32_LE sample 
rate: 44100 mmap: 1
[12:24:08.955521] alsa_open:317 buffer time: 20317 period count: 4 buffer size: 
896 period size: 224
[12:24:08.957406] ALSA snd_pcm_hw_start:587 SNDRV_PCM_IOCTL_START failed (-32)
[12:24:08.981454] process:407 strm
[12:24:08.981473] process_strm:219 strm command q
[12:24:08.981486] output_flush:1411 flush output buffer
[12:24:08.981502] sendSTAT:151 STAT: STMf
[12:24:09.016477] process:407 audg
[12:24:09.016495] process_audg:355 audg gainL: 20992 gainR: 20992 adjust: 1
[12:24:09.016513] process:407 strm
[12:24:09.016525] process_strm:219 strm command s
[12:24:09.016536] process_strm:284 strm s autostart: 3 transition period: 10 
transition type: 0
[12:24:09.016549] sendSTAT:151 STAT: STMf
[12:24:09.016604] codec_open:150 codec open: 'p'
[12:24:09.016614] pcm_open:172 pcm size: 2 rate: 44100 chan: 2 bigendian: 0
[12:24:09.016630] stream_sock:352 connecting to 192.168.1.10:9005
hangs for 3 minutes...
[12:27:18.004859] stream_sock:355 unable to connect to server

What version of the product are you using? On what operating system?
squeezelite-i386 1.1 4/12/2013 Linux Mint 14

Internet radio and music files play fine

Original issue reported on code.google.com by tanw...@gmail.com on 22 Apr 2013 at 4:50

GoogleCodeExporter commented 8 years ago
Awesome code - runs great on my RPi too!

Original comment by tanw...@gmail.com on 22 Apr 2013 at 4:52

GoogleCodeExporter commented 8 years ago
Maybe this issue is more appropriate for noting in LMS 3rd party spotify plugin?

Original comment by tanw...@gmail.com on 22 Apr 2013 at 4:55

GoogleCodeExporter commented 8 years ago
If this doesn't work it should be treated as a limitation with the spotify 
plugin not squeezeplay.  Please raise the details on the forum for this:
http://forums.slimdevices.com/showthread.php?79706-Announce-Spotify-Premium-Plug
in-%28Beta%29/page483

Closing this case.

Original comment by trio...@btinternet.com on 22 Apr 2013 at 5:54

GoogleCodeExporter commented 8 years ago
Was able to make this work by (ugly) hack in a line before line #298 in 
slimproto.c:

ip=slimproto_ip; // new line - hardwire the ip
stream_sock(... 

Line will only fix tunneled spotify connections, however, sounds like the 
2.2.13 spotify plugin will fix this anyway

Original comment by tanw...@vt.edu on 20 May 2013 at 6:21