Red 5 可以与所有演示应用程序配合使用,但当我尝试添加自己的应用程序时,它就崩溃了。发生了什么事?
我在我的 Windows 7 计算机上安装了 Red 5 1.0 媒体服务器 - 希望在部署到服务器之前使用它进行开发。我费了很大的劲才把服务器启动并运行起来。我能够在 localhost:5080 安装示例应用程序并且它们可以工作。例如,我可以使用示例应用程序从网络摄像头录制视频。
现在,我想为 Red 5 编写自己的 Java 应用程序。我找到了一些教程,但没有一个有效。例如:
- http://blog.cirtex.com/2010/06/21/creating-an-application-with-flash-and-red5-is-simple-with-this-tutorial/
- http://sunil-gupta.blogspot.com /2007/03/how-to-create-sample-application-using.html
这些都不能单独工作,但我设法将它们拼凑成一个简单的演示应用程序,可以在Eclipse 或 ANT,有一个 JAR 文件和一个与演示类似的目录结构。
有趣的是。当我将其复制到 webapps 目录并重新启动服务时,所有演示都会中断。 (要重新启动,我只是在管理工具中使用服务管理器。)服务器仍然在端口 5080 上响应并显示示例网页 - 但所有媒体都不起作用。所有演示应用程序都会抛出“无法连接”的错误,甚至欢迎电影也无法播放。
我放入其中的每个自制应用程序都是这种情况 - 即使是最简单的 Hello World 应用程序。
那么:有人可以帮我弄清楚发生了什么吗?
另外,1.0 的最新教程、演示等是什么。我能找到的所有内容似乎都适用于旧版本,并且很难将它们组合成任何有关 Red5 工作原理的连贯图片。
顺便说一句,我使用 Windows 安装程序安装了 Red5,而不是在机器上构建它。我只是尝试在计算机上构建应用程序并将它们复制到正在运行的服务器中。
感谢您提供的任何帮助。你会成为一个救星!
I installed Red 5 1.0 media server on my Windows 7 computer - hoping to use it for development before deploying to a server. With great difficulty, I got the server up and running. I am able to install the sample apps at localhost:5080 and they work. For example, I am able to record video from my webcam using the sample apps.
Now, I want to write my own Java app for Red 5. I've found a couple of tutorials, but none of them works. E.g.:
- http://blog.cirtex.com/2010/06/21/creating-an-application-with-flash-and-red5-is-simple-with-this-tutorial/
- http://sunil-gupta.blogspot.com/2007/03/how-to-create-sample-application-using.html
None of these fully works on its own, but I managed to cobble together a composite of these into a simple demo app that compiles fine in Eclipse or ANT, has a JAR file, and a directory structure that looks just like the demos.
Here's the funny thing. When I copy this into the webapps directory and restart the service, ALL of the demos break. (To restart, I'm just using Services Manager in Admin tools.) The server still responds on port 5080 and shows the sample webpage -- but none of the media works. All of the demo apps throw an error along the lines of "Can't connect", and even the welcome movie doesn't play.
This is the case with every home-made application I've dropped in there -- even the simplest Hello World app.
So: Can anybody help me figure out what's going on?
Also, what's the latest tutorial, demo, etc. for 1.0. Everything I can find seems to apply to older versions and it's extremely hard to put it together into any coherent picture of how Red5 works.
By the way, I installed Red5 using the installer for Windows -- not building it on the machine. I'm only trying to build the apps on the machine and copy them into the running server.
Thanks for any help you can provide. You'd be a life saver!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也尝试安装red5 1.0 RC版本。所有演示都不起作用。然后我坚持使用red5 0.9最终版本。效果很好。现在尝试开发一些东西,尽管 red5 的文档很糟糕。这是我能找到的最好的。但它是在 2007 年完成的:) http://dl.fancycode.com/red5 /api/overview-summary.html
I also tried installing red5 1.0 RC version. None of the demos worked. Then I stuck to the red5 0.9 final version. It works fine. Now trying to develop something even though red5 has bad documentation. This was the best I could find. But it was done in 2007 :) http://dl.fancycode.com/red5/api/overview-summary.html
对于您的开发机器(您正在构建 red5 应用程序的地方),我建议您下载服务器“trunk”。在下载中,您将找到两个文件,它们将帮助您创建新的 red5 项目:util.xml 和 project.zip。要使用它们,只需在 trunk 目录的命令行中键入:
ant -f util.xml
这将为您提供使用选项。一旦你创建了框架,你就可以将项目导入到 eclipse 中,然后就可以开始工作了。
如需其他帮助,您可以在 stacktrace 上发布此处,订阅用户列表 ( http://groups.google.com /group/red5interest ),使用论坛 ( http://www.red5.org/forums/ ),或 wiki ( http://wiki.red5.org/ )。
最后,另一个选择是 eclipse 插件,您可以在这里找到它: http://wiki.red5.org/wiki /Red5插件
For your development machine (where youre building your red5 app), I suggest that you download the server "trunk". In the download you will find two files that will help you create a new red5 project: util.xml and project.zip. To use these, simply type this on the command line in the trunk directory:
ant -f util.xml
This will give you the usage options. Once you have the skeleton created you import the project into eclipse and go to town.
For addtional help you can post here on stacktrace, subscribe to the users list ( http://groups.google.com/group/red5interest ), use the forums ( http://www.red5.org/forums/ ), or the wiki ( http://wiki.red5.org/ ).
Lastly, another option is the eclipse plugin which you can find here: http://wiki.red5.org/wiki/Red5Plugin