Cc-ing upstream (Warren + dev mailing list) on this.

Erich Schubert <[EMAIL PROTECTED]> wrote:
> Package: mpd
> Version: 0.11.5-5.1
> Severity: normal
> 
> Hi,
> I've added some internet radio streams to my mpd playlist, and I have a
> button linked to "mpc toggle". While this button works perfectly with
> MP3s, it doesn't work properly with streams: MPC pauses the stream, and
> when you e.g. a few minutes later resume the stream it continues playing
> where it had stopped before; when the buffer is emptied the stream
> stops.
> Instead it should discard any outdated part of the buffer (read: with a
> two second buffer, when it was paused for one second it should discard
> the first second of the buffer) - usually all of the buffer - and then
> continue with the new data instead (i.e. reconnect etc.)

This is definitely a problem mpd has with internet radio streams.  The
length of the pause is also taken into account, too; as short pauses
(which may set your entire program back a few seconds) should be
perfectly acceptable.  What mpd should probably do after a long pause is
to continue to play the buffered data, and then attempt to reopen the
stream it was playing if the connection is dropped.

For playback of static files over HTTP, full seeking/pausing should be
supported.  We just haven't gotten around to it.  Perhaps there can
be a pausable flag or have it somehow tied to the seekable flag.

I ran into this while rewriting the HTTP code for the input-buffering
thread in mpd-uclinux.

> Also I've had a couple of crashes with MPD and some web streams, but the
> one I had crashes with suddenly works fine for me now.

Could you tell us which streams these are?  Crashes shouldn't happen
with mpd, ever.  (ok, besides when using mikmod with corrupted files :).
Any information in the logs would be very helpful, too.

> And it would be nice if MPD could playback this stream:
> mms://213.254.239.60/swr3$livestream.wma
> Totem can play that stream just fine (it's a german radio station, you
> can use it for testing, too; go to swr3.de and click on the "live"
> button in the upper right corner, which will eventually give you that
> URL above)
 
mpd will support this when someone writes a Free, clean and orthogonal
patch for it and Warren approves it.  Last I checked, depending on large
mega-frameworks like xine or gstreamer (either of which totem can use)
is not option for MPD.  I'm personally not interested in supporting
proprietary codecs at all.

-- 
Eric Wong

Attachment: signature.asc
Description: Digital signature

Reply via email to