kaaholst / android-squeezer

Remote control for your Logitech Media Server ("Squeezeserver" etc) and players.
Apache License 2.0
75 stars 15 forks source link

Squeezer not able to play music #816

Closed brjhaverkamp closed 3 months ago

brjhaverkamp commented 3 months ago

I've been using squeezer (in combination with squeeze player) for several years without problems. But a month or so ago, it started behaving irradically. I have a Xiaomi M11 lite 5G Android 13, Miui 14.0.6 My son, on his phone has the same symptoms on a Oneplus Nord 2T 5G, OxygenOS 14 I can start and stop playing audio on my phone fine from the web interface, I can control volume from there as well. With squeezer, It looks like the volume is controlled, but no sound is heard, and after a few seconds, the volume bar resets to zero.

Any idea what can cause this? And of course how to fix it :-)

Kind regards,

Bert

kaaholst commented 3 months ago

The setup you describe is fully supported. I just tested using Squeezer and SqueezePlayer on a Xiaomi with Android 14. I'm able to play music from LMS on the phone and control the player from Squeezer.

From what I understand, you are able to play when controlling the SqueezerPlayer from the web interface. But when you control the player from Squeezer, there is no sound and the volume bar shows zero.

I'm not able to tell what's causing this, but you can try these, maybe it gives some clue as to what is happening.

  1. Try controlling SqueezePlayer from the web interface when Squeezer is running and showing the now playing screen for the SqueezePlayer. Does it work then, that is, can you hear the music on the phone? Does Squeezer show the correct volume, play/pause status and playing time when you change those from the web interface?
  2. When you control the SqueezePlayer using Squeezer, does Squeezer show the correct play/pause status and playing time? Does the web interface show the correct status?
brjhaverkamp commented 3 months ago

Hi Kurt,

Thanks for your detailed reply! To follow your numbering:

  1. When I start squeezeplayer on the phone, it can be controlled from the web interface. I can control the volume and pause start the music. Squeezer does not show the correct track and volume however. It is not showing any response to the activity in the web interface.

  2. When I control (or try to control) squeezeplayer from squeezer, Squeezer shows the time of the song, and it is counting up when playing, when I pause the song, it resets back to the start of the song. However there is no sound to be heard. I can browse my music library from squeezer just fine, and select an other artist and track. Even radio stations However no sound. When I try to adjust the sound from squeezer, it resets back to zero after a few seconds.

I can mention as well that the name of my phone is at the top of Squeezer, so it looks like it has found it as a player. But then it looks like it isn't properly connected and can't control it.

Since this happens on both phones in the house, it is quite possible to be caused by some thing on the server side. However I haven't update LMS in a while and it always worked flawless till recently. Any suggestion for futher debuging is welcome.

I'll continue my search here of course.

kaaholst commented 3 months ago

Maybe a silly question but are you sure Squeezer connects to the same LMS as SqueezePlayer and/or that Squeezer is showing the same SqueezePlayer as LMS?

brjhaverkamp commented 3 months ago

Hi Kurt, definitely not a weird question at this stage. But yes they are all connected to the same LMS on my NAS.

I did some more testing. And below are some screenshots of the process. It gets more complex/weirder, as when I start squeezer on both phones, things get working.

Let me reproduce the steps:

When I start squeezer without squeezeplayer, this is the view. Note that it just states "Squeezer" in the blue menubar and the Wallstreet shuffle in the player bar at the bottom Screenshot_2024-03-24-12-57-37-621_uk org ngo squeezer

This is the view when squeezeplayer is started. Note that it now states "Xiaomi M201K9G" in a large font in the blue menubar and the Wallstreet shuffle in the player bar at the bottom. The Xiaomi is my phone. Screenshot_2024-03-24-12-57-47-899_uk org ngo squeezer

Now it gets interesting. When I open players from the three-dot menu, this is the view. Note that the Wallstreet shuffle is still in the player bar at the bottom, but in the player, it mentions "I'm not in love". This is the song I had selected the day before in the web interface. So it seems squeezer is not synced with the LMS Screenshot_2024-03-24-12-58-01-728_uk org ngo squeezer

Now when I open squeezeplayer and squeezer on my sons phone, the view changes again. In the top bar the large font "Xiaomi M201K9G" changes to a lower font dropdown box that initially states "Mozzilla 192.168..". I presume this is the webinterface in my browser. I wasn't aware this could be a player as well. Screenshot_2024-03-24-13-02-25-328_uk org ngo squeezer

Finally, when I open the dropdown box in the bottom, I seem my own "Xiaomi M201K9G" and my sons Oneplus, but not the Mozilla line to chose from. At this point I can chose both players and control them correctly. Note that "I'm not in love is now in the player at the bottom" Screenshot_2024-03-24-13-02-39-762_uk org ngo squeezer

This reproducible as far as I tested it. When I close everything and start again, the something happens. I hope this helps narrowing it down, or triggers an idea on what I/we are doing wrong.

Regards,

Bert

kaaholst commented 3 months ago

Thanks for the detailed description, and the screenshots. I will have to try to reproduce this locally. In the meantime, I have one further question.

Does the order in which apps are started matter? You see the issue when Squeezer is started, and then SqueezePlayer. Do you also see the issue if SqueezePlayer is started, and then Squeezer?

brjhaverkamp commented 3 months ago

Hi Kurt,

I have some good news. I upgraded the LMS server to version 8.5.0. And things started working again. Now I start to think that a reboot of the old version could have fixed it as well. We'll never know. Anyways, thanks for your time and apologies for taking your time. Thanks for the great app!

Bert

brjhaverkamp commented 3 months ago

So this one can be closed

kaaholst commented 3 months ago

Hi Bert,

I'm glad you got it working, and thanks for the update🙂