bandwidthdetection.java.svn-base
来自「Java例子 flv传送实例 Flv to send examples」· SVN-BASE 代码 · 共 36 行
SVN-BASE
36 行
package org.red5.demos.bwcheck;import java.util.Map;import org.red5.server.api.IConnection;import org.red5.server.api.Red5;import org.slf4j.Logger;import org.slf4j.LoggerFactory;/** * * @author The Red5 Project (red5@osflash.org) * @author Dan Rossi */public class BandwidthDetection { protected static Logger log = LoggerFactory .getLogger(BandwidthDetection.class); public BandwidthDetection() { } public Map<String, Object> onClientBWCheck(Object[] params) { ClientServerDetection clientServer = new ClientServerDetection(); return clientServer.onClientBWCheck(params); } public void onServerClientBWCheck(Object[] params) { IConnection conn = Red5.getConnectionLocal(); ServerClientDetection serverClient = new ServerClientDetection(); serverClient.checkBandwidth(conn); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?