Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Stops playing
#24
(11-15-2023, 09:52 PM)Nutul Wrote:
(11-15-2023, 09:10 PM)Tim Curtis Wrote: MPD stop responding to input commands when it encounters a particular remote connection state.
What state is that (or are those...)?
Does MPD report something particular that leads you to understand such situation has happened? Just curious... could it be that, for some obscure reason, the port gets requested for something else, hence maybe changing the port to 6700 might solve the issue? Again, just wandering in the wild...

I'm referring to inducing the "remote connection state" by first playing FluxFM Chillout radio then clicking on BBC 6 and before it actually starts audibly playing something I click the pause button. This almost always creates the condition where MPD hangs on responding to any command on port 6600 and thus the WebUI which is in an AJAX while loop with MPD on port 6600 (engine-mpd.php) on the server also hangs :-0 Give it a try.

I'm not sure whats happening inside MPD because it's still able to log messages. Maybe something to do with its input thread and CURL waiting for some sort of server handshake to complete that never happens.

In any case the monitor daemon is straight forward and I can make use of a session variable to determine what file was queued up and thus only monitor when the file is a radio station i.e. starts with http. I'll prolly add some options like threshold, sleep interval, and resume play Y/N. Something like that.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Stops playing - by funnyf - 11-06-2023, 12:19 PM
RE: Stops playing - by Tim Curtis - 11-06-2023, 12:34 PM
RE: Stops playing - by funnyf - 11-06-2023, 12:39 PM
RE: Stops playing - by Tim Curtis - 11-06-2023, 06:16 PM
RE: Stops playing - by funnyf - 11-06-2023, 07:02 PM
RE: Stops playing - by the_bertrum - 11-07-2023, 08:08 AM
RE: Stops playing - by funnyf - 11-07-2023, 12:15 PM
RE: Stops playing - by the_bertrum - 11-07-2023, 01:25 PM
RE: Stops playing - by funnyf - 11-07-2023, 04:13 PM
RE: Stops playing - by the_bertrum - 11-07-2023, 05:00 PM
RE: Stops playing - by Tim Curtis - 11-07-2023, 04:26 PM
RE: Stops playing - by the_bertrum - 11-07-2023, 04:52 PM
RE: Stops playing - by funnyf - 11-07-2023, 02:30 PM
RE: Stops playing - by marek.marakesh - 11-11-2023, 01:28 AM
RE: Stops playing - by the_bertrum - 11-13-2023, 11:41 AM
RE: Stops playing - by the_bertrum - 11-07-2023, 03:58 PM
RE: Stops playing - by funnyf - 11-07-2023, 06:21 PM
RE: Stops playing - by Tim Curtis - 11-07-2023, 07:58 PM
RE: Stops playing - by funnyf - 11-11-2023, 09:15 AM
RE: Stops playing - by grandfunk69 - 11-15-2023, 01:15 PM
RE: Stops playing - by Tim Curtis - 11-15-2023, 01:17 PM
RE: Stops playing - by grandfunk69 - 11-16-2023, 12:33 PM
RE: Stops playing - by Tim Curtis - 11-16-2023, 02:22 PM
RE: Stops playing - by Tim Curtis - 11-15-2023, 09:10 PM
RE: Stops playing - by Nutul - 11-15-2023, 09:52 PM
RE: Stops playing - by Tim Curtis - 11-15-2023, 10:46 PM
RE: Stops playing - by Nutul - 11-15-2023, 11:11 PM
RE: Stops playing - by TheOldPresbyope - 11-15-2023, 11:11 PM
RE: Stops playing - by Tim Curtis - 11-15-2023, 11:18 PM
RE: Stops playing - by Tim Curtis - 11-16-2023, 05:47 PM

Forum Jump: