HTTP Stream: Tracks switch every second

Need help with MPD?
Post Reply
thomas
Posts: 3
Joined: February 15th, 2021, 6:41 am

HTTP Stream: Tracks switch every second

Post by thomas »

Hi,

I use HTTP stream (mpd 0.22.4), here is my very basic config:

Code: Select all

audio_output {
  type    "httpd"
  name    "MPD"
  encoder   "lame"    # optional
  port    "8000"
  bitrate   "256"     # do not define if quality is defined
  format    "44100:16:2"
  always_on       "yes"     # prevent MPD from disconnecting all listeners when playback is stopped.
  tags            "yes"     # httpd supports sending tags to listening streams.
  max_clients "0"     # optional 0=no limit
}
When playing current track after a "long" pause (more than a minute), tracks switch to the next very quickly (every second). At this time, sometimes I can still listen tracks with my client even if I pause it, sometimes client exited. It happens also if I stop client myself.
To fix that, I have to stop my streaming client, and pausing current track. Then I can restart playing and start client.
There is nothing in logs about that.

This issue happens very often but I don't know what to do. Can you help me please?
max
Forum team
Posts: 1222
Joined: January 15th, 2013, 3:43 pm

Re: HTTP Stream: Tracks switch every second

Post by max »

I don't understand. Can you rephrase, and be more specific? Maybe a verbose log would help.
thomas
Posts: 3
Joined: February 15th, 2021, 6:41 am

Re: HTTP Stream: Tracks switch every second

Post by thomas »

OK, sorry, english is not my first language.
Even with "log_level" to verbose, there is nothing interesting , but I understand a little more what happened.

Here the steps to reproduce the issue:
  1. I start playing music:

    Code: Select all

    mpc play ; mpv http://localhost:8000
    It works!
  2. Then I pause music:

    Code: Select all

    mpc pause
    So "mpc status" tells mpd is in "[paused]".
  3. I wait 10 minutes in pause mode then I listen music again :

    Code: Select all

    mpc play
    But it plays immediatly the track it should play 10 minutes later, like if mpd was not in pause mode.
I hope it's easier to understand. Thanks!
max
Forum team
Posts: 1222
Joined: January 15th, 2013, 3:43 pm

Re: HTTP Stream: Tracks switch every second

Post by max »

"mpc play" re-starts playback at whatever song is the current song. This is not the proper way to resume playback after "pause". You can use "mpc toggle" to resume playback properly.
thomas
Posts: 3
Joined: February 15th, 2021, 6:41 am

Re: HTTP Stream: Tracks switch every second

Post by thomas »

Hi,

I said I use "mpc pause" and "mpc play" to be specific/explicit, but in reality, I only use "mpc toggle". But it doesn't change anything at the issue.
max
Forum team
Posts: 1222
Joined: January 15th, 2013, 3:43 pm

Re: HTTP Stream: Tracks switch every second

Post by max »

So your instructions above were wrong. They were very specific, but they were wrong. That's not helpful. It's a waste of time. Now we need to start from scratch analyzing your problem.
Post Reply