Red5 RTMP 流媒体

发布于 2024-08-18 23:30:25 字数 362 浏览 11 评论 0原文

我对 RTMP 流媒体非常陌生,正在寻求帮助。足以让我开始。

我已经用谷歌搜索了大约 5-7 个小时,但仍然无法确定我的答案!

Red5的文档有限,根本找不到任何支持!即使与我类似的问题在 stackoverflow 上也没有得到解答:(

我的问题是:

  1. 为什么我不能简单地放置一个 .mp3 在red5的服务器内root并运行 它?
  2. 通过以下方式提供简单的 MP3 文件 RTMP。我需要写一个Java吗 应用?
  3. 如果是这样,有什么指示吗?

更糟糕的是,我几乎没有 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:

  1. Why can't I simply place an .mp3
    inside red5's server root and play
    it?
  2. To serve a simple MP3 file over
    RTMP. Do I need to write a Java
    application?
  3. If so, any pointers?

To make matters worse, I have little to none Java experience.

Please help ST.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

独享拥抱 2024-08-25 23:30:25

完成您想要的操作的最简单方法是安装 oflaDemo。启动您的 red5 服务器并转到 http://localhost:5080/installer

如果您尚未安装,则需要在那里选择“oflaDemo”并安装它。接下来将您的 mp3 或其他任何内容放在以下位置

%RED5_HOME%/webapps/oflaDemo/streams

Red5 home 将是您安装 Red5 的目录。因此,如果您使用安装程序,它可能如下所示:

C:\Program Files\Red5\webapps\oflaDemo\streams

要在不编写任何 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%/webapps/oflaDemo/streams

Red5 home will be the directory where you installed Red5. So if you used an installer it may look like this:

C:\Program Files\Red5\webapps\oflaDemo\streams

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.

二货你真萌 2024-08-25 23:30:25

你安装了 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.

花开浅夏 2024-08-25 23:30:25

我觉得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!

星軌x 2024-08-25 23:30:25

对于流式传输 mp3 文件,您不需要 red5 服务器的任何功能,网络服务器就足够了。

如果您仍然需要从 red5 服务器加载它:

  • 该文件可以在您的浏览器中访问吗?例如 http://[red5-server]/file.mp3
  • 然后只需使用此网址在Flash中加载mp3文件,因为这不起作用我想在我的jsp中包含url我该怎么做以及我必须使用什么播放器

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:

  • is the file accessible in your browser? e.g. http://[red5-server]/file.mp3
  • then just use this url when loading the mp3 file in flash as this is not working i want to include url in my jsp how can i do that and what player i have to use
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文