如何向我的 Rails 应用程序添加视频聊天功能?
我一直在谷歌上搜索如何完成 Rails 应用程序的在线聊天,并且我已经使用 Juggernaut 实现了文本聊天版本。但是对于视频聊天,我只发现flash&red5可能是我的解决方案,但它是flash和java,我相对不擅长。有更好的解决方案吗?
I've been googling about how to accomplish oneline chat for rails application and I've implemented a text chat version using Juggernaut. But for video chat, I only find flash&red5 might be a solution for me, but it's flash and java, which I'm relatively not good at. Is there a better solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我对此进行了一些研究,但选择并不是很好。
有一些看起来很漂亮的套餐需要花费真金白银。 Tokbox.com、ooVoo(http://www.oovoo.com,乍一看是免费的,但免费版本已经限制),VideoWhisper.com 看起来很有趣——他们似乎以一次性费用出售 2 路视频聊天包,但它是基于 PHP 的。
一个简单的基于 Flash 的解决方案绝对是一个好方法。 Flash 具有良好的视频支持,几乎每个人都已经安装了它。学习足够的 Flash 基础知识来进行简单的双向视频聊天并不难(请参阅 http://www.derekentringer.com/blog/fms-video-chat/ 一个简单的视频聊天脚本示例,大约 30 行代码)。而且您无需学习 Java 即可使用 Red5,除非您想自定义它 — Red5 是开源视频流服务器,因此您无需购买昂贵的 Adobe Media Streaming 服务器系统。您只需要了解足够的知识即可设置并运行它。
我确信有一个开源或低成本的 Flash 脚本可以处理基本的双向视频聊天,但我还没有找到它。如果有人这样做,请发布!
I have researched this a little and the options are not great.
There are some nice-looking packages that cost real money. Tokbox.com, ooVoo (http://www.oovoo.com, looks free at first but free version has limits), VideoWhisper.com looks interesting -- they seem to sell a 2-way video chat package for a one-time fee, but it is PHP-based.
A simple Flash-based solution is definitely a good way to go. Flash has good video support and virtually everyone has it installed already. It's not that hard to learn enough Flash basics to do a simple 2-way video chat (see http://www.derekentringer.com/blog/fms-video-chat/ for an example of a trivial video chat script that is something like 30 lines of code). And you don't need to learn Java to use Red5 unless you want to customize it -- Red5 is the open-source video streaming server that makes it so you don't need to buy really a expensive Adobe Media Streaming server system. You just need to learn enough to set it up and get it running.
I'm certain there's an open-source or low-cost Flash script out there that handles a basic 2-way video chat, but I have yet to find it. If anyone does, please post it!
这是 tokbox 的 Rails 实现:
http://github.com/njacobeus/tokboxer/
Here is a rails implementation of tokbox:
http://github.com/njacobeus/tokboxer/
尝试使用 Raydash。有一个 Rails gem 可以在 https://github.com/gersh/Raydash-Ruby-轨道上。您只需在 http://www.raydash.com 注册即可使用。
Try using Raydash. There is a rails gem available at https://github.com/gersh/Raydash-Ruby-on-Rails. You just need to register at http://www.raydash.com to use it.