smgoller / rangehttpserver

Python module that implements a simple HTTP server that understands the HTTP Range header.
GNU General Public License v2.0
68 stars 18 forks source link

Can't stream mp3 #2

Open vandys opened 11 years ago

vandys commented 11 years ago

Hi,

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

smgoller commented 11 years ago

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?

vandys commented 11 years ago

[smgoller notifications@github.com 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:

ajv-863-557-3055@vsta.org

Andy