简体   繁体   English

使用RED5服务器应用程序为客户端请求创建RTMP流

[英]Create RTMP streams for the client requests using RED5 server application

I am working on code snippet where I want to create an RED5 rtmp stream using RED5 server application. 我正在研究要使用RED5服务器应用程序创建RED5 rtmp流的代码段。 I have been searching since 5 days to get a good tutorial about the same. 自5天以来,我一直在搜索以获取有关此内容的优质教程。

All the tutorials or questions on the stackoverflow discuss about either RTMP client side code or isssues with streaming using oflademo. 关于stackoverflow的所有教程或问题都讨论了RTMP客户端代码或使用oflademo进行流传输的问题。

What I have achieved ? 我取得了什么?

  1. I have successfully installed and ran RED5 on my ubuntu box. 我已经在Ubuntu盒子上成功安装并运行RED5。
  2. I have installed RED5 Eclipse IDE plugin and created one sample project with RED5 runtime code generation 我已经安装了RED5 Eclipse IDE插件,并创建了一个带有RED5运行时代码生成的示例项目
  3. I could see oflademo app streaming videos on rtmp 我可以在rtmp上看到Oflademo应用流式传输视频

What I want to achieve ? 我想实现什么?

  1. Have a server side jsp page showing number of connections i have received. 在服务器端的jsp页面上显示我已收到的连接数。

    • For this i did one small test like I defined welcome-file in web.xml withing the project i generated using plugin. 为此,我做了一个小测试,就像我在web.xml中定义了我使用插件生成的项目一样,欢迎文件。 But i couldnt reach to that file but at the same time if I create a project using simple eclipse wizard for tomcat my welcome file thing works. 但是我无法访问该文件,但是同时,如果我使用tomcat的简单eclipse向导创建一个项目,那么我的欢迎文件就可以正常工作。
  2. After getting each request I want to start an rtmp stream for that client. 收到每个请求后,我想为该客户端启动rtmp流。

    • I tried reading code of oflademo but really couldnt understand the code. 我尝试阅读oflademo的代码,但实际上无法理解该代码。 Most of the things are commented or probably something I am missing while reading that code. 在阅读该代码时,大多数事情都会被注释,或者我可能会丢失。

Thanks in advance. 提前致谢。

One solution I found is to go back to 0.9 version, 1.0 RC has some issues. 我发现的一种解决方案是回到0.9版本,1.0 RC存在一些问题。 I switched back to 0.9 and everything seems working. 我切换回0.9,一切似乎正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM