hyphenate_SDK3.0
3.5.0
hyphenatejavaIMSDK
|
类 | |
enum | EMConferenceRole |
enum | EMConferenceType |
class | Role |
Public 成员函数 | |
void | addConferenceListener (EMConferenceListener listener) |
void | removeConferenceListener (EMConferenceListener listener) |
void | getConferenceInfo (final String confId, final String password, final EMValueCallBack< EMConference > callback) |
void | createAndJoinConference (final EMConferenceType type, final String password, final EMValueCallBack< EMConference > callback) |
void | createAndJoinConference (final EMConferenceType type, final String password, final EMStreamParam param, final EMValueCallBack< EMConference > callback) |
void | joinConference (final String confId, final String password, final EMValueCallBack< EMConference > callback) |
void | joinConference (final String confId, final String password, final EMStreamParam param, final EMValueCallBack< EMConference > callback) |
void | joinConferenceWithTicket (final String ticket, final EMStreamParam param, final EMValueCallBack< String > callback) |
void | inviteUserToJoinConference (final String confId, final String password, final String username, final String extension, final EMValueCallBack callback) |
void | grantRole (final String confId, final EMConferenceMember member, final EMConferenceRole toRole, final EMValueCallBack< String > callback) |
void | destroyConference (final EMValueCallBack callback) |
void | exitConference (final EMValueCallBack callback) |
void | publish (EMStreamParam param, final EMValueCallBack< String > callback) |
void | unpublish (String pubStreamId, final EMValueCallBack< String > callback) |
void | subscribe (final EMConferenceStream stream, EMCallSurfaceView surfaceView, final EMValueCallBack< String > callback) |
void | updateSubscribe (final EMConferenceStream stream, EMCallSurfaceView surfaceView, final EMValueCallBack< String > callback) |
void | unsubscribe (final EMConferenceStream stream, final EMValueCallBack< String > callback) |
void | inputExternalVideoData (Bitmap bitmap) |
void | inputExternalVideoData (byte[] data, int width, int height, int rotation) |
void | startMonitorSpeaker (int interval) |
void | stopMonitorSpeaker () |
void | setConferenceMode (EMConferenceListener.ConferenceMode mode) |
void | setLocalSurfaceView (EMCallSurfaceView localView) |
void | updateLocalSurfaceView (EMCallSurfaceView localView) |
void | updateRemoteSurfaceView (String streamId, EMCallSurfaceView remoteView) |
int | getCameraId () |
void | switchCamera () |
void | closeVideoTransfer () |
void | openVideoTransfer () |
void | closeVoiceTransfer () |
void | openVoiceTransfer () |
void | enableStatistics (boolean enable) |
List< EMConferenceMember > | getConferenceMemberList () |
Map< String, EMConferenceStream > | getAvailableStreamMap () |
Map< String, EMConferenceStream > | getSubscribedStreamMap () |
Protected 成员函数 | |
EMConferenceManager (EMACallManager manager) | |
void | addCommonParams (Map< String, Object > params) |
Created by lzan13 on 2017/8/16.
多人音视频会议管理类,封装多人音视频会议操作方法,创建,加入,邀请等
|
protected |
preventing to instantiate this EMConferenceManager
void com.hyphenate.chat.EMConferenceManager.addConferenceListener | ( | EMConferenceListener | listener | ) |
添加会议监听
void com.hyphenate.chat.EMConferenceManager.closeVideoTransfer | ( | ) |
关闭视频传输
void com.hyphenate.chat.EMConferenceManager.closeVoiceTransfer | ( | ) |
关闭语音传输
void com.hyphenate.chat.EMConferenceManager.createAndJoinConference | ( | final EMConferenceType | type, |
final String | password, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
创建并加入会议
password | 会议密码 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.createAndJoinConference | ( | final EMConferenceType | type, |
final String | password, | ||
final EMStreamParam | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
创建并加入会议
password | 会议密码 |
param | 加入会议时 publish 自己本地数据参数 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.destroyConference | ( | final EMValueCallBack | callback | ) |
销毁会议
void com.hyphenate.chat.EMConferenceManager.enableStatistics | ( | boolean | enable | ) |
启用统计
enable | 是否启用统计 |
void com.hyphenate.chat.EMConferenceManager.exitConference | ( | final EMValueCallBack | callback | ) |
退出会议
Map<String, EMConferenceStream> com.hyphenate.chat.EMConferenceManager.getAvailableStreamMap | ( | ) |
获取当前会议可订阅 Stream
int com.hyphenate.chat.EMConferenceManager.getCameraId | ( | ) |
获取当前摄像头 id, 0 表示后置摄像头,1 表示前置摄像头
void com.hyphenate.chat.EMConferenceManager.getConferenceInfo | ( | final String | confId, |
final String | password, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
查询会议信息
confId | 会议id |
password | 会议密码 |
callback | 获取结果回调 |
List<EMConferenceMember> com.hyphenate.chat.EMConferenceManager.getConferenceMemberList | ( | ) |
获取当前会议成员
Map<String, EMConferenceStream> com.hyphenate.chat.EMConferenceManager.getSubscribedStreamMap | ( | ) |
获取当前会议已订阅 Stream
void com.hyphenate.chat.EMConferenceManager.grantRole | ( | final String | confId, |
final EMConferenceMember | member, | ||
final EMConferenceRole | toRole, | ||
final EMValueCallBack< String > | callback | ||
) |
管理员改变用户角色。
confId | 会议id |
member | EMConferenceMember,目前使用memberName进行的操作 |
toRole | 目标角色,EMConferenceRole |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | Bitmap | bitmap | ) |
外部输入视频数据方法,此方法主要是为分享桌面回调使用
bitmap | 捕获的 bitmap 数据 |
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | byte[] | data, |
int | width, | ||
int | height, | ||
int | rotation | ||
) |
外部输入数据方法
data | 视频数据流,需要是 YUV 格式数据 |
width | 视频数据帧宽 |
height | 视频数据帧高 |
rotation | 旋转角度 |
void com.hyphenate.chat.EMConferenceManager.inviteUserToJoinConference | ( | final String | confId, |
final String | password, | ||
final String | username, | ||
final String | extension, | ||
final EMValueCallBack | callback | ||
) |
邀请其他人加入会议
confId | 会议 id |
password | 会议密码 |
username | 被邀请者名字 |
extension | 邀请他人加入的扩展信息 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.joinConference | ( | final String | confId, |
final String | password, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
加入会议
confId | 会议 id |
password | 会议密码 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.joinConference | ( | final String | confId, |
final String | password, | ||
final EMStreamParam | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
加入会议
confId | 会议 id |
password | 会议密码 |
param | 加入会议时 publish 自己本地数据参数 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.joinConferenceWithTicket | ( | final String | ticket, |
final EMStreamParam | param, | ||
final EMValueCallBack< String > | callback | ||
) |
通过 Ticket 加入会议
ticket | 加入会议需要的凭证 |
param | 加入会议所需参数 EMStreamParam |
void com.hyphenate.chat.EMConferenceManager.openVideoTransfer | ( | ) |
打开视频传输
void com.hyphenate.chat.EMConferenceManager.openVoiceTransfer | ( | ) |
打开语音传输
void com.hyphenate.chat.EMConferenceManager.publish | ( | EMStreamParam | param, |
final EMValueCallBack< String > | callback | ||
) |
本地推流
param | 推送本地流时配置信息 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.removeConferenceListener | ( | EMConferenceListener | listener | ) |
移除会议监听
void com.hyphenate.chat.EMConferenceManager.setConferenceMode | ( | EMConferenceListener.ConferenceMode | mode | ) |
设置会议模式
void com.hyphenate.chat.EMConferenceManager.setLocalSurfaceView | ( | EMCallSurfaceView | localView | ) |
设置显示自己本地预览画面控件
localView | 显示本地图像的控件 |
void com.hyphenate.chat.EMConferenceManager.startMonitorSpeaker | ( | int | interval | ) |
开启正在说话监听器
interval | EMConferenceListener#onSpeakers(List) 回调间隔 |
void com.hyphenate.chat.EMConferenceManager.stopMonitorSpeaker | ( | ) |
停止正在说话监听器
void com.hyphenate.chat.EMConferenceManager.subscribe | ( | final EMConferenceStream | stream, |
EMCallSurfaceView | surfaceView, | ||
final EMValueCallBack< String > | callback | ||
) |
订阅成员推送流数据
stream | 当前操作的流 |
surfaceView | 用来显示订阅的流画面的控件 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.switchCamera | ( | ) |
切换摄像头
void com.hyphenate.chat.EMConferenceManager.unpublish | ( | String | pubStreamId, |
final EMValueCallBack< String > | callback | ||
) |
取消本地推流
pubStreamId | 本地数据流 id |
void com.hyphenate.chat.EMConferenceManager.unsubscribe | ( | final EMConferenceStream | stream, |
final EMValueCallBack< String > | callback | ||
) |
取消订阅成员推送流数据
stream | 当前流 |
callback | 结果回调接口 |
void com.hyphenate.chat.EMConferenceManager.updateLocalSurfaceView | ( | EMCallSurfaceView | localView | ) |
更新显示本地画面控件
localView | 显示本地图像的控件 |
void com.hyphenate.chat.EMConferenceManager.updateRemoteSurfaceView | ( | String | streamId, |
EMCallSurfaceView | remoteView | ||
) |
更新显示远端画面控件
streamId | 当前控件显示的流 id |
remoteView | 显示远端图像控件 |
void com.hyphenate.chat.EMConferenceManager.updateSubscribe | ( | final EMConferenceStream | stream, |
EMCallSurfaceView | surfaceView, | ||
final EMValueCallBack< String > | callback | ||
) |
更新订阅成员推送流数据
stream | 当前操作的流 |
surfaceView | 用来显示订阅的流画面的控件 |
callback | 结果回调 |