Red5 RTMP 流媒体
我对 RTMP 流媒体非常陌生,正在寻求帮助。足以让我开始。
我已经用谷歌搜索了大约 5-7 个小时,但仍然无法确定我的答案!
Red5的文档有限,根本找不到任何支持!即使与我类似的问题在 stackoverflow 上也没有得到解答:(
我的问题是:
- 为什么我不能简单地放置一个 .mp3 在red5的服务器内root并运行 它?
- 通过以下方式提供简单的 MP3 文件 RTMP。我需要写一个Java吗 应用?
- 如果是这样,有什么指示吗?
更糟糕的是,我几乎没有 Java 经验。
请帮助ST。
I'm very new to RTMP streaming and am seeking help. Just enough to get me started.
I have been Googling for about 5-7 hours now and still cannot determine my answer!
The documentation of Red5 is limited and cannot find any support at all! Even similar questions to mine are unanswered on stackoverflow :(
My questions are:
- Why can't I simply place an .mp3
inside red5's server root and play
it? - To serve a simple MP3 file over
RTMP. Do I need to write a Java
application? - If so, any pointers?
To make matters worse, I have little to none Java experience.
Please help ST.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
完成您想要的操作的最简单方法是安装 oflaDemo。启动您的 red5 服务器并转到 http://localhost:5080/installer
如果您尚未安装,则需要在那里选择“oflaDemo”并安装它。接下来将您的 mp3 或其他任何内容放在以下位置
Red5 home 将是您安装 Red5 的目录。因此,如果您使用安装程序,它可能如下所示:
要在不编写任何 flash 或 java 代码的情况下播放 mp3,请转到以下网址:
http://localhost:5080/demos/ofla_demo.html
连接并从列表中选择您的文件即可。
The easiest way to do what you want to is to install the oflaDemo. Start your red5 server and go to http://localhost:5080/installer
You need to select "oflaDemo" there and install it, if you don't already have it installed. Next place your mp3's or whatever in the following location
Red5 home will be the directory where you installed Red5. So if you used an installer it may look like this:
To play your mp3 without writing any code flash or java, next go to this url:
http://localhost:5080/demos/ofla_demo.html
Connect and select your file from the list and thats it.
我也在玩 red5,我认为这两个资源非常有帮助:
I'm also playing with red5, and I've considered these two resources very helpful:
你安装了 RED5 附带的演示吗?您不必使用 java 进行编码,但必须在 flash 中打开连接才能传输 mp3,RED5 安装附带的演示应该包含这些示例。
have you got the Demos that come with RED5 installed? You won't have to code in java but you will have to open up a connection in flash in order to stream the mp3, the demos that comes with RED5 installation should have those examples.
我觉得Wowza更容易。 Wowza 有一个免费版本,最多允许 10 个连接。但在那之后你就开始砸钱了。但绝对比FMS少!这很容易。只需几个步骤即可设置,您就可以拥有自己的 RTMP 应用程序流式传输 mp3 :) 如果您确实找到了如何在 Red5 上流式传输 RTMP 的答案,请告诉我!
I felt Wowza easier. There is a free version of Wowza which allows upto 10 connections. But after that you have start shelling money. But definitely lesser than FMS! And it is very easy. Just a few steps to setup and you can have your very own RTMP application streaming mp3 :) And if you do find the answer of how to stream RTMP on Red5, please do let me know!
对于流式传输 mp3 文件,您不需要 red5 服务器的任何功能,网络服务器就足够了。
如果您仍然需要从 red5 服务器加载它:
for streaming an mp3 file you don't need any functionality of the red5 server, a webserver should be enough.
if you still have to load it from the red5 server: