Can ruby record sound and play it directly from webpage?


#1

Can ruby record sound and play it directly from webpage?
I dont know how ruby can do it?
Any one can tell me ruby can do it?


#2

No.

More correctly: depends what you mean. Ruby is just a programming
language. There is no current setup for Ruby to run like Java Applets
(AFAIK) and actually execute an application in the web browser, which
is fundamentally different than the way most webpages work. (With
javascript being the weirdo between the two worlds). That’s the only
way a webpage is going to be able to “record sound”. Otherwise,
webpages just show information and handle formatting. All A/V stuff
within a webbrowser is just a trick.

You’d need a Java Applet. But, if you really wanted it to be in Ruby,
you could perhaps compile from Ruby to Java and with a little salt, hot
sauce, and love turn it into an applet.

-hampton catlin.


#3

Hampton wrote:

You’d need a Java Applet.

Or Flash. Same issues, though there are tools for using Ruby to create
Flash objects.

James

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools