当前位置: 首页>>代码示例>>Java>>正文


Java IPendingServiceCall.getServiceMethodName方法代码示例

本文整理汇总了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)) {

    }
}
 
开发者ID:Red5,项目名称:red5-client,代码行数:25,代码来源:StreamingProxy.java

示例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();
		}
	}
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:16,代码来源:RTMPClientPublish.java

示例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++;
	}
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:39,代码来源:LoadTestRtmpClient.java


注:本文中的org.red5.server.api.service.IPendingServiceCall.getServiceMethodName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。