Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-12-23 Thread mvz


Thank you for your detailed explanation which now gives me a little more
clarity on how all fits together.

Even if I got a few more gray hairs, I can still say: the day was not in
vain, again learned something :)

Thank you and happy holidays!



mvz's Profile: http://forums.slimdevices.com/member.php?userid=12965
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-12-23 Thread bpa


mvz wrote: 
> Yippee!! After numerous further attempts I was able to fix the error.
> 
> As suspected, it was not the LMS, edomi or the mp3. The error was in my
> firewall settings. I was not aware that all players (!) also need access
> to the location of the mp3 - in my case the edomi server. I assumed that
> this is only needed by the server (LMS).
> 
> Now that I have adjusted the firewall accordingly, I can play all mp3s
> via http again - even with sound :cool:

Well done.
It's unfortunate the Busybox version of wget has no "verbose" or debug
facility. There may be a full version of wget in the PCP extension but
with problem solved there is no need to look.

If the stream has a compatible audio format, SB players can play the
sdtream direct (i.e. audio stream goes direct from source server/station
-> player).
Stream will be handled by LMS (i.e. server/station->LMS->player) if
format is not compatible, stream is synced or player wants stream
proxied.

So the alternative solution to your issue to force stream through LMS
would be to set the player to be proxied (e.g. LMS WebUI
Settings/Player//Audio/Streaming Method/Proxied Streaming.)



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-12-23 Thread mvz


Yippee!! After numerous further attempts I was able to fix the error.

As suspected, it was not the LMS, edomi or the mp3. The error was in my
firewall settings. I was not aware that all players (!) also need access
to the location of the mp3 - in my case the edomi server. I assumed that
this is only needed by the server (LMS).

Now that I have adjusted the firewall accordingly, I can play all mp3s
via http again - even with sound :cool:

Thank you for the assistance received in resolving this issue.



mvz's Profile: http://forums.slimdevices.com/member.php?userid=12965
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-12-19 Thread bpa


mvz wrote: 
> Hi,
> 
> I run a LMS on a Raspberry (piCorePlayer v8.2.0 on raspberry pi) and
> squeezelite-esp32 (ESP32 Wrover) as player. Unlike Rothaar, I run edomi
> on a separat server (centos 7) instead of openHAB.
> 
> In a Fritzbox environement everything works as expected. Via http I am
> able to play mp3's stored on the edomi server (in a tmp directory).
> 
> Now I have upgraded my network and setup VLANs - one VLAN for the edomi
> server and one VLAN for the LMS plus player. Everything works perfectly,
> with one exception. Whenever I enter a http path in the radio http
> section on the LMS and try to play a mp3 file stored on the edomi
> server, there is no sound and I get the same error msg in my log as
> Rothaar did:
> 
> > 
Code:

  >   > Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed 
calling Slim::Networking::Slimproto::client_readable: Can't locate object 
method "protocolHandler" via package "Slim::Player::SongStreamController" at 
/usr/local/slimserver/Slim/Networking/Slimproto.pm line 622.
  > ; fh=IO::Socket::INET=GLOB(0x5f80948)

> > 
> 
> Since I can download the mp3 via wget from the edomi server to the LMS
> as well as play the mp3 in a browser or via VLC, most firewall
> settings should be ok - but unfortunately not all :(
> 
> @Rothaar: even though I don't use docker and my environment is
> different, can you give me more details on how you fixed the bug on
> your end?
> 
> Unfortunately I can't find any more information in the LMS log, even
> though I have increased the log level to the max.
> 
> Thank you very much for any advice. I've been trying to get everything
> to work for several days now and am getting desperate.


Did you try Rothaars solution ?

In the meantime - what si the URL you are using and what are the http
headers and mime setting.  Use wget with debugging and header dumping,
then copy exactly what appears to a post



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-12-19 Thread mvz


Hi,

I run a LMS on a Raspberry (piCorePlayer v8.2.0 on raspberry pi) and
squeezelite-esp32 (ESP32 Wrover) as player. Unlike Rothaar, I run edomi
on a separat server (centos 7) instead of openHAB.

In a Fritzbox environement everything works as expected. Via http I am
able to play mp3's stored on the edomi server (in a tmp directory).

Now I have upgraded my network and setup VLANs - one VLAN for the edomi
server and one VLAN for the LMS plus player. Everything works perfectly,
with one exception. Whenever I enter a http path in the radio http
section on the LMS and try to play a mp3 file stored on the edomi
server, there is no sound and I get the same error msg in my log as
Rothaar did:


Code:

Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed 
calling Slim::Networking::Slimproto::client_readable: Can't locate object 
method "protocolHandler" via package "Slim::Player::SongStreamController" at 
/usr/local/slimserver/Slim/Networking/Slimproto.pm line 622.
  ; fh=IO::Socket::INET=GLOB(0x5f80948)



Since I can download the mp3 via wget from the edomi server to the LMS
as well as play the mp3 in a browser or via VLC, most firewall settings
should be ok - but unfortunately not all :(

@Rothaar: even though I don't use docker and my environment is
different, can you give me more details on how you fixed the bug on your
end?

Unfortunately I can't find any more information in the LMS log, even
though I have increased the log level to the max.

Thank you very much for any advice. I've been trying to get everything
to work for several days now and am getting desperate.



mvz's Profile: http://forums.slimdevices.com/member.php?userid=12965
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-02-02 Thread Rothaar


Yes, issue is solved.



Rothaar's Profile: http://forums.slimdevices.com/member.php?userid=71905
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-02-02 Thread bpa


Rothaar wrote: 
> The stream provided by openHAB is an mp3. The issue was with the host
> url, which I could fix. :)

Does this mean the problem is solved. 

The place to look is the URL and the associated MIME  - as it looks like
LMS is interpreting it as one that requires a protocolHandler ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-02-02 Thread Rothaar


The stream provided by openHAB is an mp3. The issue was with the host
url, which I could fix. :)



Rothaar's Profile: http://forums.slimdevices.com/member.php?userid=71905
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-02-02 Thread bpa


Rothaar wrote: 
> I increased the log level in LMS, which helped me to narrow down the
> issue.
> 
> Could then solve it by manually setting the redirect url for the audio
> streaming in openHAB. It used for standard an docker managed ip, which I
> changed to the host one.

Any "protocolHandler" message indicate a problem playing a non native
URL (e.g. Spotify, Deezer, Audio announcements, HLS) for which there is
a special handler.  
Clearly something is broken.  First needs to determine is it part of
standard LMS or a 3rd party addon.

What are you trying to play ?  What is the URL you are trying to play ?
Have you installed any plugin specifically for "openHAB" related stuff ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-02-02 Thread Rothaar


I increased the log level in LMS, which helped me to narrow down the
issue.

Could then solve it by manually setting the redirect url for the audio
streaming in openHAB. It used for standard an docker managed ip, which I
changed to the host one.



Rothaar's Profile: http://forums.slimdevices.com/member.php?userid=71905
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-02-02 Thread Man in a van


Rothaar wrote: 
> Hi,
> 
> I am running a LMS v8.2.0 as well as openHAB v3.2 in docker on the same
> host.
> 
> The LMS binding in openHAB per se seems to work. When I trigger a sound
> action there, the volume on the squeezelite player is altered as
> requested but the audio is not playing.
> I get the following error msg in the lms log:
> > 
Code:

  >   > Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed 
calling Slim::Networking::Slimproto::client_readable: Can't locate object 
method "protocolHandler" via package "Slim::Player::SongStreamController" at 
/lms/Slim/Networking/Slimproto.pm line 622.
  > ; fh=IO::Socket::INET=GLOB(0x4a9e0b0)

> > 
> 
> Does anyone have an idea, what is going wrong?
> 
> Thanks in advance!

I don't know anything about "Dockers"

I did have some comms last year, with a chap on the raspberry pi forum,
here is his solution

https://forums.raspberrypi.com/viewtopic.php?t=25778=300#p1859314

If your nmap is already 0 then try changin it to 1

Nothing to lose :)

ronnie



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


[SlimDevices: SqueezeCenter] Cannot play audio from openHAB

2022-02-02 Thread Rothaar


Hi,

I am running a LMS v8.2.0 as well as openHAB v3.2 in docker on the same
host.

The LMS binding in openHAB per se seems to work. When I trigger a sound
action there, the volume on the squeezelite player is altered as
requested but the audio is not playing.
I get the following error msg in the lms log:

Code:

Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed 
calling Slim::Networking::Slimproto::client_readable: Can't locate object 
method "protocolHandler" via package "Slim::Player::SongStreamController" at 
/lms/Slim/Networking/Slimproto.pm line 622.
  ; fh=IO::Socket::INET=GLOB(0x4a9e0b0)



Does anyone have an idea, what is going wrong?

Thanks in advance!



Rothaar's Profile: http://forums.slimdevices.com/member.php?userid=71905
View this thread: http://forums.slimdevices.com/showthread.php?t=115885

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter