资源简介
详细整合请看博客, 希望可以帮到你们。 http://blog.csdn.net/dao2012/article/details/51700367
代码片段和文件信息
package org.red5.demos.oflaDemo;
import java.util.*;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IConnection;
import org.red5.server.api.scope.IScope;
import org.red5.server.api.stream.IServerStream;
public class Application extends ApplicationAdapter {
private IScope appScope;
private IServerStream serverStream;
/** {@inheritDoc} */
@Override
public boolean appStart(IScope app) {
super.appStart(app);
log.info(“oflaDemo appStart“);
System.out.println(“oflaDemo appStart“);
appScope = app;
return true;
}
/** {@inheritDoc} */
@Override
public boolean appConnect(IConnection conn object[] params) {
log.info(“oflaDemo appConnect“);
IScope appScope = conn.getScope();
log.debug(“App connect called for scope: {}“ appScope.getName());
// getting client parameters
Mapject> properties = conn.getConnectParams();
if (log.isDebugEnabled()) {
for (Map.Entryject> e : properties.entrySet()) {
log.debug(“Connection property: {} = {}“ e.getKey() e.getValue());
}
}
// Trigger calling of “onBWDone“ required for some FLV players
// commenting out the bandwidth code as it is replaced by the mina filters
//measureBandwidth(conn);
// if (conn instanceof IStreamCapableConnection) {
// IStreamCapableConnection streamConn = (IStreamCapableConnection) conn;
// SimpleConnectionBWConfig bwConfig = new SimpleConnectionBWConfig();
// bwConfig.getChannelBandwidth()[IBandwidthConfigure.OVERALL_CHANNEL] =
// 1024 * 1024;
// bwConfig.getChannelInitialBurst()[IBandwidthConfigure.OVERALL_CHANNEL] =
// 128 * 1024;
// streamConn.setBandwidthConfigure(bwConfig);
// }
// if (appScope == conn.getScope()) {
// serverStream = StreamUtils.createServerStream(appScope “live0“);
// SimplePlayItem item = new SimplePlayItem();
// item.setStart(0);
// item.setLength(10000);
// item.setName(“on2_flash8_w_audio“);
// serverStream.addItem(item);
// item = new SimplePlayItem();
// item.setStart(20000);
// item.setLength(10000);
// item.setName(“on2_flash8_w_audio“);
// serverStream.addItem(item);
// serverStream.start();
// try {
// serverStream.saveAs(“aaa“ false);
// serverStream.saveAs(“bbb“ false);
// } catch (Exception e) {}
// }
return super.appConnect(conn params);
}
/** {@inheritDoc} */
@Override
public void appDisconnect(IConnection conn) {
log.info(“oflaDemo appDisconnect“);
if (appScope == conn.getScope() && serverStream != null) {
s
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-06-17 17:04 red5 1.0.7整合tomcat6+maven+oflaDemo\
目录 0 2016-06-17 16:59 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\
文件 257 2016-06-15 17:05 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\.gitignore
文件 393 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\.project
目录 0 2016-06-17 16:57 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\.settings\
文件 57 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\.settings\org.eclipse.core.resources.prefs
文件 90 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\.settings\org.eclipse.m2e.core.prefs
文件 11523 2016-06-15 17:05 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\LICENSE
文件 73 2016-06-15 17:05 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\README.md
目录 0 2016-06-17 17:00 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\
文件 2543 2016-06-15 17:11 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.classpath
文件 1230 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.project
目录 0 2016-06-17 16:57 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\
文件 639 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\.jsdtscope
文件 327 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\org.eclipse.core.resources.prefs
文件 736 2016-06-15 17:12 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\org.eclipse.jdt.core.prefs
文件 90 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\org.eclipse.m2e.core.prefs
文件 1133 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\org.eclipse.wst.common.component
文件 252 2016-06-15 17:11 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 50 2016-06-15 17:08 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\.settings\org.eclipse.wst.validation.prefs
文件 524 2016-06-15 17:05 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\README.md
文件 7125 2016-06-15 17:05 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\pom.xm
目录 0 2016-06-17 16:57 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\src\
目录 0 2016-06-17 16:57 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\src\main\
目录 0 2016-06-17 16:57 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\src\main\groovy\
文件 1632 2016-06-15 17:05 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\src\main\groovy\main.groovy
目录 0 2016-06-17 16:57 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\src\main\java\
目录 0 2016-06-17 16:57 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\src\main\java\org\
目录 0 2016-06-17 16:57 red5 1.0.7整合tomcat6+maven+oflaDemo\red5-examples\oflaDemo\src\main\java\org\red5\
............此处省略1278个文件信息
评论
共有 条评论