Playing a wav file in RoR

Hi RoR Folks,

Have a MySQL database with a blob datytype with .wav files loaded into
them. Would like to have a button on a form that toggles between play
and pause when clicked and will play the .wav file.

Any suggestions on the best way to implement this?

Thanks!

Have a MySQL database with a blob datytype with .wav files loaded into
them. Would like to have a button on a form that toggles between play
and pause when clicked and will play the .wav file.

Any suggestions on the best way to implement this?

I believe from the server, you can just use sendfile.

This Flash player should load in the full file but only pause when
the user wants, like how YouTube works.
http://www.1pixelout.net/code/audio-player-wordpress-plugin/
http://www.bloglines.com/about/news

You’ll need to see if it can do wav in addition to mp3.

        - dan


Dan K. mailto:[email protected]
http://www.dankohn.com/ tel:+1-415-233-1000

Thanks for the excellent suggestions.

I’m still not clear how to have the source of a .wav file a blob column
in a MySQL database table.

Any ideas?

Thanks Again for the help.

Dan W. wrote:

Have a MySQL database with a blob datytype with .wav files loaded into
them. Would like to have a button on a form that toggles between play
and pause when clicked and will play the .wav file.

Any suggestions on the best way to implement this?

Purchase Intent Data for Enterprise Tech Sales and Marketing | TechTarget

YouTube uses flash as well.