本文整理汇总了Java中org.red5.server.api.service.IPendingServiceCall.getServiceMethodName方法的典型用法代码示例。如果您正苦于以下问题:Java IPendingServiceCall.getServiceMethodName方法的具体用法?Java IPendingServiceCall.getServiceMethodName怎么用?Java IPendingServiceCall.getServiceMethodName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.red5.server.api.service.IPendingServiceCall
的用法示例。
在下文中一共展示了IPendingServiceCall.getServiceMethodName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: resultReceived
import org.red5.server.api.service.IPendingServiceCall; //导入方法依赖的package包/类
@Override
public void resultReceived(IPendingServiceCall call) {
String method = call.getServiceMethodName();
log.debug("resultReceived: {}", method);
if ("connect".equals(method)) {
//rtmpClient.releaseStream(this, new Object[] { publishName });
timer.schedule(new BandwidthStatusTask(), 2000L);
} else if ("releaseStream".equals(method)) {
//rtmpClient.invoke("FCPublish", new Object[] { publishName }, this);
} else if ("createStream".equals(method)) {
setState(StreamState.PUBLISHING);
Object result = call.getResult();
if (result instanceof Number) {
streamId = (Number) result;
log.debug("Publishing: {}", state);
rtmpClient.publish(streamId, publishName, publishMode, this);
} else {
rtmpClient.disconnect();
setState(StreamState.STOPPED);
}
} else if ("FCPublish".equals(method)) {
}
}
示例2: resultReceived
import org.red5.server.api.service.IPendingServiceCall; //导入方法依赖的package包/类
@Override
public void resultReceived(IPendingServiceCall call) {
String method = call == null ? null : call.getServiceMethodName();
logger.trace("call ### get Method Name " + method);
if ("createStream".equals(method)) {
if (call.getResult() != null) {
publishScreen.setStreamId((Integer)call.getResult());
publish(publishScreen.getStreamId(), id, "live", this);
publishScreen.setStartPublish(true);
publishScreen.start();
} else {
connectionClosed();
}
}
}
示例3: resultReceived
import org.red5.server.api.service.IPendingServiceCall; //导入方法依赖的package包/类
@Override
public void resultReceived(IPendingServiceCall call) {
String method = call == null ? null : call.getServiceMethodName();
System.err.println("method "+method);
if (method == null) {
return;
}
if ("connect".equals(method)) {
isConnected = true;
}
if ("loadTestSyncMessage".equals(method)) {
CallObject tCallObject = calls.get(counterCalls);
if (tCallObject == null) {
for (Entry<Integer, CallObject> tCallObjectEntry : calls.entrySet()) {
System.err.println("Key " + tCallObjectEntry.getKey()
+ "tCallObjectEntry "
+ tCallObjectEntry.getValue().getStarted());
}
throw new RuntimeException(
"tCallObject is null currentCountReturn "
+ counterCalls + " list size "
+ calls.size());
}
tCallObject.setEnded(new Date());
calls.put(counterCalls, tCallObject);
System.err.println("Call received " + counterCalls
+ " instanceId: " + instanceId);
counterCalls++;
}
}