标签:and ade 获取 class ace 接受 video intel 取消
关键类整理 ---> ConferenceClient、ConferenceClientObserver.
ConferenceClient是一个应用程序在视频会议通信中用来交流的异步类。
该类实现了
ConferenceClientObserver :会议室客户端观察者 (接口)
ConferenceStreamAction : 会议室流表现形式(枚举)
RoomState :会议室的状态(枚举)
公共成员方法总结:
| ConferenceClient (ConferenceClientConfiguration configuration) | |
| 这个构造函数执行的是会议的初始化工作 | |
| void | addObserver (ConferenceClientObserver observer) |
| 给会议客户端添加一个观察者 | |
| void | removeObserver (ConferenceClientObserver observer) |
| 移除会议客户端的观察者 | |
| void | join (final String token, final ActionCallback< User > callback) |
| 连接到特定的房间,并加入会议。 | |
| void | join (final String token, final ConnectionOptions options, final ActionCallback< User > callback) |
| 连接到特定的房间,并加入会议(附加连接时的属性配置) | |
| synchronized void | publish (final Publishable stream, final PublishOptions option, final ActionCallback< Void > callback) |
| 发布当前的流(一般是本地流,附加发布时的属性配置)到当前的房间 | |
| synchronized void | publish (final Publishable stream, final ActionCallback< Void > callback) |
| 发布当前的流(一般是本地流)到当前的房间 | |
| void | addExternalOutput (final String serverUrl, final ActionCallback< ExternalOutputAck > callback) |
| 将会议室中的媒体流指向指定的目标 | |
| void | addExternalOutput (final String serverUrl, final ExternalOutputOptions options, final ActionCallback< ExternalOutputAck > callback) |
| 将会议室中的媒体流指向指定的目标 | |
| void | removeExternalOutput (final String serverUrl, final ActionCallback< Void > callback) |
| 停止将会议室中的媒体流指向指定的目标 | |
| void | updateExternalOutput (final String serverUrl, final ActionCallback< ExternalOutputAck > callback) |
| 更新会议室中的媒体流指向指定的目标 | |
| void | updateExternalOutput (final String serverUrl, final ExternalOutputOptions options, final ActionCallback< ExternalOutputAck > callback) |
| 更新会议室中的媒体流指向指定的目标 | |
| synchronized void | unpublish (final Publishable stream, final ActionCallback< Void > callback) |
| 撤销发布当前房间的流 | |
| synchronized void | subscribe (RemoteStream stream, SubscribeOptions option, ActionCallback< RemoteStream > callback) |
| 订阅当前房间的流 | |
| synchronized void | subscribe (final RemoteStream stream, final ActionCallback< RemoteStream > callback) |
| 订阅当前房间的流 | |
| synchronized void | unsubscribe (final RemoteStream stream, final ActionCallback< Void > callback) |
| 取消订阅当前房间的流。如果之前没有订阅,则会直接返回。 | |
| void | startRecorder (final ActionCallback< RecordAck > callback) |
| 开始在视频会议服务器上记录流。 | |
| void | startRecorder (final RecordOptions opt, final ActionCallback< RecordAck > callback) |
| 开始在视频会议服务器上记录视频流 | |
| void | stopRecorder (final RecordOptions opt, final ActionCallback< RecordAck > callback) |
| 停止在视频会议服务器上记录视频流Stop stream recorder on MCU server. More... | |
| void | leave (ActionCallback< Void > callback) |
| 离开当前会议 | |
| void | getConnectionStats (Stream stream, ActionCallback< ConnectionStats > callback) |
| 获取统计数据从当前的指定流的链接 | |
| void | send (String message, ActionCallback< Void > callback) |
| 发送一个消息到当前的房间 | |
| void | send (String message, String receiver, final ActionCallback< Void > callback) |
| 发送一个消息到指定的接受者 | |
| void | pauseVideo (Publishable stream, final ActionCallback< Void > callback) |
| 暂停已发布视频流轨道的播放 | |
| void | pauseVideo (RemoteStream stream, final ActionCallback< Void > callback) |
| 暂停订阅视频流轨道的播放 | |
| void | playVideo (Publishable stream, final ActionCallback< Void > callback) |
| 将之前暂停的发布的视频轨道流播放 | |
| void | playVideo (RemoteStream stream, final ActionCallback< Void > callback) |
| 将之前暂停的订阅的视频轨道流播放 | |
| void | pauseAudio (Publishable stream, final ActionCallback< Void > callback) |
| 暂停发布流的音轨流的播放 | |
| void | pauseAudio (RemoteStream stream, final ActionCallback< Void > callback) |
| 暂停订阅流的音轨流的播放 | |
| void | playAudio (Publishable stream, final ActionCallback< Void > callback) |
| 播放之前暂停的发布流的音轨流 | |
| void | playAudio (RemoteStream stream, final ActionCallback< Void > callback) |
| 播放之前暂停的订阅流的音轨流 | |
| List< User > | getUsers () |
| 获取已经加入该房间的用户们 | |
| List< RemoteStream > | getRemoteStreams () |
| 获取之前已经在该房间发布的远端流 | |
| void | getRegion (RemoteStream stream, final ActionCallback< String > callback) |
| 获取远端流的区域ID | |
| void | setRegion (RemoteStream stream, String region, final ActionCallback< Void > callback) |
| 设置远端流的区域ID | |
| void |
onMessage (boolean local, String id, String message) |
公共成员方法:
| void | onServerDisconnected () |
| 当会议服务器连接断开的时候触发. | |
| void | onStreamAdded (RemoteStream remoteStream) |
| 当一个远端流被添加的时候触发. | |
| void | onStreamRemoved (RemoteStream remoteStream) |
| 当远端流被移除的时候被触发. | |
| void | onUserJoined (User user) |
| 当一个客户端加入这个房间的时候被触发. | |
| void | onUserLeft (User user) |
| 当一个客户端离开这个房间的时候被触发. | |
| void | onMessageReceived (String sender, String message, boolean broadcast) |
| 当接受到其他人发送的一个消息. | |
| void | onRecorderAdded (String recorderId) |
| 当会议聊天服务器添加一个记录器的时候被触发. | |
| void | onRecorderRemoved (String recorderId) |
| 当会议聊天服务器移除一个记录器的时候被触发. | |
| void | onRecorderContinued (String recorderId) |
| 当会议聊天服务器继续一个记录器的时候被触发. | |
WebRTC 学习之 Intel® Collaboration Suite for WebRTC 整理(一)
标签:and ade 获取 class ace 接受 video intel 取消
原文地址:http://www.cnblogs.com/renhui/p/6368462.html