red5 server使用笔记(一)

red5是什么?
red5是一个采用Java开发,开源的Flash流媒体服务器。它支持把音频(MP3)和视频(FLV)转换成播放流;录制客户端播放流(只支持FLV);共享对象;现场直播流发布;远程调用。Red5使用RSTP作为流媒体传输协议,在其自带的一些示例中演示了在线录制、flash流媒体播放、在线聊天、视频会议等一些基本功能。 程序员还可以基于red5、根据自己的需求开发自己的视频应用程序。

安装:从 http://code.google.com/p/red5 网址下载了 Red5 0.9.0 RC2 (03 November 2009)的 Windows 安装文件 setup-Red5-0.9.RC2.exe。在 Windows server 2003 下安装。Red5 0.9.0 RC2 与以前的版本不太相同,没有要求输入 JDK 的路径的信息,而只是要求输入 red5 server 的 IP 地址和端口。red5 和 JDK 是通过 JAVA_HOME 环境变量来集成的。red5 本身包含了 Tomcat6.0 应用服务器(包括Web服务器)。

由于没有安装 JDK,所以安装完成后启动 red5 时报告错误“JAVA_HOME environment variable not set!”。于是下载 JDK1.6 运行环境,文件是 jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe,安装到 C:\Java\jre6,然后配置系统环境变量 JAVA_HOME 等于 C:\Java\jre6,注意不要写成 C:\Java\jre6\bin。不用重新启动机器,red5 就可以启动了,启动后显示一个 DOS 窗口,不要关闭它!

测试一下是不是安装成功:运行 http://[ip]:[port],应当可以打开一个 red5 信息页面,内容如下:





This page is used to test the proper operation of the Red5 server after it has been installed. If you can read this page it means that the Red5 server installed at this site is working properly.
If you would like to watch an instructional video on Red5 and have access to YouTube, click here
If you prefer to jump right in, follow these steps:

- Install a ready-made application
- Launch a demo

Further information about Red5 can be found at any of these links: official homepage | wiki | old homepage
Be sure to subscribe the mailing list to get help or to be notified about new versions. You can also use the mailing list to ask questions about Red5.

其中“install”是个红色的链接,指向 http://[ip]:[port]/installer
其中“demo”也是个红色的链接,指向 http://[ip]:[port]/demos,要看这里的 demo,必须首先点击上面的链接安装。

进入管理页面:
red5 是个正在开发中的产品,0.9.0 RC2 也只是个候选版,所以功能不完善是可以想见的。为了进入其管理页面,必须预置一个管理帐号和密码,但安装后的 0.9.0 RC2 可是没有这个功能的。于是,搜素,找到一篇文章(网址:http://trac.red5.org/wiki/AppServer/Plugins),包含以下的内容:

Adding or modifying admin users:

This page will allow you to add or modify users, make sure you remove it when you are done since it allows anyone to add users to your admin.
Instructions:
1. Get the “helper” page here: http://red5.googlecode.com/files/admin.jsp。从这里下载到 admin.jsp 文件。
2. Start your red5 server
3. Put the “admin.jsp” file in “red5/webapps/root” directory
4. Request the page via browser - http://[ip]:[port]/admin.jsp
5. Enter your info and submit
6. Go to the admin panel and login

按照这里的提示做,就可以进入管理页面,但还是看不到什么很有用的功能。但这里的演示到是很有用的,分析一下它们的代码应该能学到很多东西的。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值