当前位置: 首页 > ops >正文

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

    按照这里的提示做,就可以进入管理页面,但还是看不到什么很有用的功能。但这里的演示到是很有用的,分析一下它们的代码应该能学到很多东西的。







本文转自网眼51CTO博客,原文链接:http://blog.51cto.com/itwatch/286430,如需转载请自行联系原作者

http://www.xdnf.cn/news/11445.html

相关文章:

  • TVM Operator Inventory (TOPI)简介
  • 操作系统(2)操作系统概述
  • WebGIS入门
  • Visual Studio 2005 IDE 技巧和窍门
  • StrictMode总结
  • this.Invoke((EventHandler)(delegate { }); 简解,(有误解恳亲指出
  • 海得服务器虚拟机,海得PLC远程编程调试流程
  • 不想要网页默认的右键菜单栏,怎么封装一个可以自定义的右键菜单组件?
  • asp八大开源cms比较汇总
  • 基于 .NET 6 开发的英雄联盟插件
  • AS3接口详解
  • 主机屋 linux,如何主机屋中发布网站?
  • tbody的解释及用法
  • 【虹科干货】TWAMP:什么是双向主动测量协议?
  • 科技类 企业网站 自适应整站前端html源码,50个页面,值得学习
  • 什么是静态网页
  • Error:kCFStreamErrorCodeKey=-2102 Domain=kCFErrorDomainCFNetwork Code=-1001 - iOS
  • 【CSS】font-weight设置为500显示不出加粗效果
  • WeX5学习笔记
  • 关于斐波拉契数列(Fibonacci)
  • 基数统计算法--HyperLogLog
  • 当 IDENTITY_INSERT 设置为 OFF 时,不能为表中的标识列插入显式值
  • serverlet学习
  • [全程动图]解决Offline Explorer崩溃闪退的问题和一些小技巧(如何下载js、100线程下载)
  • <html> 从0到1的教学实践分享(全网最全)
  • 数据哪里找?200个源数据网站全给你!
  • 如何在路由器上设置PPPoE(ADSL虚拟拨号)上网,即(宽带拨号)?
  • 海量数据处理之Bloom Filter详解
  • MAX10片内User Flash的使用
  • WebWork介绍