1 package com.netease.nimlib.sdk.rts;
17 import java.util.List;
30 return RTSManagerImpl.InstanceHolder.instance;
67 public abstract String
start(String account, List<RTSTunnelType> tunTypes,
RTSOptions options,
209 public abstract void setMute(String sessionId,
boolean mute);
216 public abstract boolean isMuted(String sessionId);
223 public abstract void setSpeaker(String sessionId,
boolean enable);
230 public abstract boolean isSpeakerOn(String sessionId);
abstract boolean isMuted(String sessionId)
是否静音
abstract boolean observeCalleeAckNotification(String sessionId, Observer< RTSCalleeAckEvent > observer, boolean register)
注册/注销发起会话后,被叫方的响应(接听、拒绝、忙)
abstract boolean observeChannelState(String sessionId, RTSChannelStateObserver observer, boolean register)
注册/注销通道状态变化的通知
会话类型(需要支持的通道类型:语音通道、数据通道)
被叫方操作通知 如果对方同意,SDK自动启动所有需要的通道,启动也可能失败,请见参数
abstract boolean close(String sessionId, RTSCallback< Void > callback)
(接受方)拒绝会话或者结束会话
abstract String start(String account, List< RTSTunnelType > tunTypes, RTSOptions options, RTSNotifyOption notifyOption, RTSCallback< RTSData > callback)
**************************** 控制请求接口 *******************************
abstract boolean observeTimeoutNotification(String sessionId, Observer< RTSTimeOutEvent > observer, boolean register)
注册/注销到来的会话或者自己发起的会话(自己或者对方无响应)超时的通知,默认超时时间为40秒 ...
abstract boolean sendControlCommand(String sessionId, String data, RTSCallback< Void > callback)
发送控制指令
abstract boolean accept(String sessionId, RTSOptions options, RTSCallback< Boolean > callback)
(接收方)接受会话
Created by huangjun on 2015/8/5.
abstract boolean observeControlNotification(String sessionId, Observer< RTSControlEvent > observer, boolean register)
注册/注销会话控制消息
abstract void setNetworkProxy(RTSNetworkProxy proxy)
设置网络代理,需要在发起会话前设置
abstract RTSNetworkProxy getNetworkProxy()
获取已经设置的网络代理
static RTSManager getInstance()
获取抽象类具体实现对象
abstract void setMute(String sessionId, boolean mute)
**************************** 音频控制 *******************************
abstract boolean sendData(RTSTunData data)
**************************** 数据通道收发 *******************************
abstract void observeIncomingSession(Observer< RTSData > observer, boolean register)
****************************** 通知接口 **********************************
数据通道收发的数据 Created by huangjun on 2015/7/1.
abstract boolean isSpeakerOn(String sessionId)
是否打开扬声器
abstract boolean observeOnlineAckNotification(String sessionId, Observer< RTSOnlineAckEvent > observer, boolean register)
注册/注销同时在线的其他端对主叫方的响应
abstract void setSpeaker(String sessionId, boolean enable)
扬声器开关
abstract boolean observeHangUpNotification(String sessionId, Observer< RTSCommonEvent > observer, boolean register)
注册/注销会话对方挂断的通知
abstract boolean observeReceiveData(String sessionId, Observer< RTSTunData > observer, boolean register)
注册/注销对方从某个通道发来的数据