On Mon, 15 Oct 2007 21:29:29 +0200, Tore D. wrote:
I am trying to figure out the best way to stream audio from a rails
app, however all I can find are flash based mp3 streaming options. I
was looking at the XSPF Web Music Player, which does flash based mp3
streaming with XSPF playlists (musicplayer.sourceforge.net), which
could work, however I’m looking for alternatives that would be capable
of streaming ogg vorbis files.
I once wrote a simple Rails app that used DRb to trigger a server that,
turn, used ruby-shout/libshout (?) to trigger icecast to play a file.
wasn’t too hard; in fact, the only trickiness was using a mutex to make
sure I didn’t try to run two “play” commands at once.
I don’t have it anymore, but again, it wasn’t too hard to write (and I
a total Rails novice at the time).
I -think- Icecast can play .ogg files. I also -think- that, in general,
you send down the right content-type, most embedded players will start
streaming automatically these days.
Jay L. |
Boston, MA | My character doesn’t like it when they
Faster: jay at jay dot fm | cry or shout or hit.
http://www.jay.fm | - Kristoffer