Red5环境搭建

 

 

把red5安装目录lib包中的所有jar包 拷贝到我们的RED5源码结构中的LIB里面

然后在ECLIPSE把这个LIB中的所有JAR加入到build path中.

记住还加入junit.jar(myeclipse自带)

以及GroboUtils .jar http://red5.googlecode.com/svn/repository/GroboUtils-5-core.jar

spring-test2.5.5.jar http://red5.googlecode.com/svn/repository/spring/spring-test-2.5.5.jar

spring-croe.jar

有可能还有groovy的zip http://dist.groovy.codehaus.org/distributions/groovy-binary-1.7.5.zip

 

 

Scope

The GlobalScope is the parent of all WebScopes.

If the scope is a leaf node, it is called a BasicScope

There're two pre-defined BasicScopes in Red5, SharedObject Scope and BroadcastStream Scope

 

system properties

These system properties are available to you within Red5

  • red5.root - This is the location from which Red5 was launched or is installed
  • red5.lib_root - The common library directory
  • red5.config_root - The configuration directory
  • red5.plugins_root - The plug-ins directory
  • red5.webapp.root - The web applications directory

In code you may access them like so:

String prop = System.getProperty("red5.root");
 
拿到ApplicationAdpter
IContext context = scope.getContext();
ApplicationContext appCtx = context.getApplicationContext();
Application app = (Application) appCtx.getBean("web.handler");
或者ApplicationContext appCtx = (ApplicationContext) getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
或者this.application = (Application) appCtx.getBean("web.handler"); 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值