« Happy Birthday Canada! Where's my bike? | Main | Artificial Intelligence? »

Seeking in streamed MP3's!

  • Well, with some insight from Lincoln Stein, author of the Apache::MP3 Perl module, I've successfully implemented seeking in my MP3 engine. Turns out that out of XMMS and WinAMP, only WinAMP supports seeking in HTTP/1.1 streams so far, but XMMS will follow I'm sure. So you can now jump to different parts of a song, even when it's streamed!
  • The trick is that when you move the seekbar in WinAMP to seek in a song, WinAMP sends an HTTP/1.1 header that looks like:


  • Range: bytes=192345-

    to the server, which I can then parse, use the byte offset to do a seek on the file handle, and then send that back to the client.

    w00t! as some might say. :)

    TrackBack

    TrackBack URL for this entry:
    http://www.enfusion-group.org/cgi-bin/mt/mt-tb.cgi/21

    Post a comment

    (If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

    About

    This page contains a single entry from the blog posted on July 3, 2001 2:18 PM.

    The previous post in this blog was Happy Birthday Canada! Where's my bike?.

    The next post in this blog is Artificial Intelligence?.

    Many more can be found on the main index page or by looking through the archives.