rangehttpserver icon indicating copy to clipboard operation
rangehttpserver copied to clipboard

Can't stream mp3

Open vandys opened this issue 13 years ago • 2 comments

Hi,

Server runs OK, supplies index.html and lists a directory. But pointing mplayer at a URL for an MP3 just hangs?

vandys avatar Dec 17 '12 16:12 vandys

Honestly, this was written to support using the python webserver to serve yum repositories to anaconda-based installers. Are you trying to just load the MP3 at all, or are you trying to seek to specific time points? Does it work with the base HTTP server?

smgoller avatar Dec 17 '12 19:12 smgoller


[smgoller [email protected] writes:]

Honestly, this was written to support using the python webserver to serve yum repositories to anaconda-based installers. Are you trying to just load the MP3 at all, or are you trying to seek to specific time points?

mplayer wants to GET the bits sequentially (i.e., streaming) and I was looking for Range support so I can skip forward and back. Your server can't even serve the initial contents (which requires no skipping). So something basic seems wrong here.

Does it work with the base HTTP server?

Streaming works fine with SimpleHTTPServer, it just can't set position. But if you play an MP3 file at a URL, it works great.

Thanks for writing back; you can reach me directly:

[email protected]

Andy

vandys avatar Dec 17 '12 21:12 vandys