hyphenate_SDK3.0
3.7.4
hyphenatejavaIMSDK
|
类 | |
enum | EMConferenceRole |
enum | EMConferenceType |
enum | EMRecordMediaFormat |
enum | EMToolbarButtonType |
enum | EMUploadButtonLayout |
interface | ILocalAudioDataListener |
interface | IRemoteAudioDataListener |
class | Role |
Public 成员函数 | |
Map< String, String > | getLiveCfgs () |
void | setLocalAudioDataListener (ILocalAudioDataListener l) |
void | setRemoteAudioDataListener (IRemoteAudioDataListener l) |
void | set (String accessToken, String appKey, String username) |
boolean | isCreator () |
void | addConferenceListener (EMConferenceListener listener) |
void | removeConferenceListener (EMConferenceListener listener) |
int | startAudioMixing (String filePath, int loop, boolean sendAudio) |
int | stopAudioMixing () |
int | adjustAudioMixingVolume (int volume) |
void | getConferenceInfo (final String confId, final String password, final EMValueCallBack< EMConference > callback) |
void | joinRoom (final String room, final String password, final EMConferenceRole role, final EMValueCallBack< EMConference > callback) |
void | joinRoom (final String room, final String password, final EMConferenceRole roletype, final EMRoomConfig param, 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 boolean recordOnServer, final boolean mergeStream, final EMValueCallBack< EMConference > callback) |
void | createAndJoinConference (final EMConferenceType type, final String password, final boolean isSupportMiniProgram, final boolean recordOnServer, final boolean mergeStream, final EMValueCallBack< EMConference > callback) |
void | createAndJoinConference (final @NonNull EMConferenceType type, final String password, final EMStreamParam param, final boolean recordOnServer, final boolean mergeStream, final EMValueCallBack< EMConference > callback) |
void | createAndJoinConference (final @NonNull EMConferenceType type, final String password, final boolean isSupportMiniProgram, final EMStreamParam param, final boolean recordOnServer, final boolean mergeStream, final EMValueCallBack< EMConference > callback) |
void | createAndJoinConference (final @NonNull EMConferenceType type, final String password, final EMRoomConfig roomConfig, 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 | joinConferenceMultiple (final String confId, final String password, final EMConferenceRole userRoleType, final EMRoomConfig roomConfig, final EMStreamParam param, final EMValueCallBack< EMConference > callback) |
void | updateLiveLayout (String liveId, List< EMLiveRegion > regions, final EMValueCallBack< String > callback) |
void | stopLiveStream (String liveId, final EMValueCallBack< String > callback) |
void | addLiveStream (EMLiveConfig liveConfig, final EMValueCallBack< String > callback) |
void | enableRecordLivestream (String liveId, boolean enable, final EMValueCallBack< String > callback) |
void | enableRecordLivestream (String liveId, EMRecordMediaFormat format, boolean enable, final EMValueCallBack< String > callback) |
void | joinConferenceWithTicket (final String ticket, final EMStreamParam param, final EMValueCallBack< EMConference > 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 | kickMember (final String confId, final List< String > members, final EMValueCallBack< String > callback) |
void | muteAll (final String confId, final boolean mute, final EMValueCallBack< String > callback) |
void | setConferenceAttribute (@NonNull String key,@NonNull String value, final EMValueCallBack< Void > callback) |
void | deleteConferenceAttribute (@NonNull String key, final EMValueCallBack< Void > 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 (EMConferenceStream.StreamType type, byte[] data, RtcConnection.FORMAT format, int width, int height, int stride, int sliceHeight, int rotation) |
void | setWaterMark (EMWaterMarkOption waterMark) |
void | clearWaterMark () |
int | inputExternalAudioData (byte[] data, int length) |
void | inputExternalVideoData (Bitmap bitmap) |
void | inputExternalVideoData (EMConferenceStream.StreamType type, byte[] data, int width, int height, int rotation) |
void | inputExternalVideoData (byte[] data, int width, int height, int rotation) |
void | startMonitorSpeaker (int interval) |
void | stopMonitorSpeaker () |
void | setLocalSurfaceView (EMCallSurfaceView localView) |
void | updateLocalSurfaceView (EMCallSurfaceView localView) |
void | updateRemoteSurfaceView (String streamId, EMCallSurfaceView remoteView) |
void | updateVideoMaxKbps (int maxKbps) |
int | getCameraId () |
void | switchCamera () |
void | closeVideoTransfer () |
void | openVideoTransfer () |
void | closeVoiceTransfer () |
void | openVoiceTransfer () |
void | muteRemoteAudio (String streamId, boolean mute) |
void | muteRemoteVideo (String streamId, boolean mute) |
void | enableStatistics (boolean enable) |
List< EMConferenceMember > | getConferenceMemberList () |
Map< String, EMConferenceStream > | getAvailableStreamMap () |
Map< String, EMConferenceStream > | getSubscribedStreamMap () |
void | setLocalVideoViewMirror (@EMMirror.MIRROR int mirror) |
void | setRotation (int rotation) |
void | createWhiteboardRoom (final String user, final String token, final String roomName, final String password, final boolean isInteractive, final EMValueCallBack< EMWhiteboard > callBack) |
void | createWhiteboardRoom (final String user, final String token, final String roomName, final String password, final boolean isInteractive, int layout, String ratio, final EMValueCallBack< EMWhiteboard > callBack) |
void | createWhiteboardRoom (final String user, final String token, final String roomName, final String password, final boolean isInteractive, int layout, String ratio, final EMUploadButtonLayout pattern, final EMToolbarButtonType button, final EMValueCallBack< EMWhiteboard > callBack) |
void | destroyWhiteboardRoom (final String user, final String token, final String roomId, EMCallBack callBack) |
void | joinWhiteboardRoomWithId (final String user, final String token, final String roomId, final String password, final EMValueCallBack< EMWhiteboard > callBack) |
void | joinWhiteboardRoomWithName (final String user, final String token, final String roomName, final String password, final EMValueCallBack< EMWhiteboard > callBack) |
void | updateWhiteboardRoomWithRoomId (final String user, final String roomId, final String token, final boolean isInteractive, final List< String > aServentIds, final boolean isAllInTeract, EMCallBack callBack) |
void | applyTobeSpeaker (String memberId) |
void | handleSpeakerApplication (String memberId, boolean accept) |
void | applyTobeAdmin (String memberId) |
void | handleAdminApplication (String memberId, boolean accept) |
void | muteMember (String memberId) |
void | unmuteMember (String memberId) |
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.addLiveStream | ( | EMLiveConfig | liveConfig, |
final EMValueCallBack< String > | callback | ||
) |
增加CDN多路推流
liveConfig | CDN推流布局配置 |
callback | 结果回调 |
int com.hyphenate.chat.EMConferenceManager.adjustAudioMixingVolume | ( | int | volume | ) |
设置伴奏音量,请在加入会议成功后调用
volume | 伴奏音量范围为 0~100。默认 100 为原始文件音量 |
void com.hyphenate.chat.EMConferenceManager.applyTobeAdmin | ( | String | memberId | ) |
发送申请管理员请求
memberId | 管理员的memberId; |
void com.hyphenate.chat.EMConferenceManager.applyTobeSpeaker | ( | String | memberId | ) |
发送上麦请求
memberId | 管理员的memberId(只有管理员可处理上麦请求); |
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 boolean | recordOnServer, | ||
final boolean | mergeStream, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
创建并加入会议
password | 会议密码 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.createAndJoinConference | ( | final EMConferenceType | type, |
final String | password, | ||
final boolean | isSupportMiniProgram, | ||
final boolean | recordOnServer, | ||
final boolean | mergeStream, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
创建并加入支持小程序的会议
password | 会议密码 |
isSupportMiniProgram | 是否支持小程序 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.createAndJoinConference | ( | final @NonNull EMConferenceType | type, |
final String | password, | ||
final EMStreamParam | param, | ||
final boolean | recordOnServer, | ||
final boolean | mergeStream, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
创建并加入会议
password | 会议密码 |
param | 加入会议时 publish 自己本地数据参数 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.createAndJoinConference | ( | final @NonNull EMConferenceType | type, |
final String | password, | ||
final boolean | isSupportMiniProgram, | ||
final EMStreamParam | param, | ||
final boolean | recordOnServer, | ||
final boolean | mergeStream, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
创建并加入支持小程序的会议
password | 会议密码 |
isSupportMiniProgram | 是否支持小程序 |
param | 加入会议时 publish 自己本地数据参数 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.createAndJoinConference | ( | final @NonNull EMConferenceType | type, |
final String | password, | ||
final EMRoomConfig | roomConfig, | ||
final EMStreamParam | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
创建并加入支持EMRoomConfig参数的会议
password | 会议密码 |
roomConfig | 设置会议参数对象 |
param | 加入会议时 publish 自己本地数据参数 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.createWhiteboardRoom | ( | final String | user, |
final String | token, | ||
final String | roomName, | ||
final String | password, | ||
final boolean | isInteractive, | ||
final EMValueCallBack< EMWhiteboard > | callBack | ||
) |
创建白板房间
user | 用户名 |
token | 用户的token |
roomName | 房间名 |
password | 房间的密码 |
isInteractive | 是否允许互动 |
callBack | 请求完成的回调 |
void com.hyphenate.chat.EMConferenceManager.createWhiteboardRoom | ( | final String | user, |
final String | token, | ||
final String | roomName, | ||
final String | password, | ||
final boolean | isInteractive, | ||
int | layout, | ||
String | ratio, | ||
final EMValueCallBack< EMWhiteboard > | callBack | ||
) |
创建白板房间
user | 用户名 |
token | 用户的token |
roomName | 房间名 |
password | 房间的密码 |
isInteractive | 是否允许互动 |
layout | 工具栏位置(只能为 0,1,2 分别代表下方、右方、上方) |
ratio | 页面宽高比例(比如:"2:1", "4:3" ,"16:9") |
void com.hyphenate.chat.EMConferenceManager.createWhiteboardRoom | ( | final String | user, |
final String | token, | ||
final String | roomName, | ||
final String | password, | ||
final boolean | isInteractive, | ||
int | layout, | ||
String | ratio, | ||
final EMUploadButtonLayout | pattern, | ||
final EMToolbarButtonType | button, | ||
final EMValueCallBack< EMWhiteboard > | callBack | ||
) |
创建白板房间
user | 用户名 |
token | 用户的token |
roomName | 房间名 |
password | 房间的密码 |
isInteractive | 是否允许互动 |
layout | 工具栏位置(只能为 0,1,2 分别代表下方、右方、上方) |
ratio | 页面宽高比例(比如:"2:1", "4:3" ,"16:9") |
pattern | 插入图片策略 (EMUploadButtonLayout类型,比如当前页前 当前页后等) |
button | 区分加入者和创建者的工具栏操作 (EMToolbarButtonType类型 ALL_PRIVILEGE(和创建者权限一样) NO_UPLOAD_PRIVILEGE(表示缺一些权限,比如上传附件 增加白板页等)) |
callBack | 请求完成的回调 |
void com.hyphenate.chat.EMConferenceManager.deleteConferenceAttribute | ( | @NonNull String | key, |
final EMValueCallBack< Void > | callback | ||
) |
删除频道属性,该会议中的所有人(包括自己)都会收到EMConferenceListener#onAttributesUpdated回调. 该方法需要在加入会议后调用.
key | |
callback |
void com.hyphenate.chat.EMConferenceManager.destroyConference | ( | final EMValueCallBack | callback | ) |
销毁会议
void com.hyphenate.chat.EMConferenceManager.destroyWhiteboardRoom | ( | final String | user, |
final String | token, | ||
final String | roomId, | ||
EMCallBack | callBack | ||
) |
销毁白板房间
user | 用户名 |
token | 用户的token |
roomId | 房间id |
callBack | 请求完成的回调 |
void com.hyphenate.chat.EMConferenceManager.enableRecordLivestream | ( | String | liveId, |
boolean | enable, | ||
final EMValueCallBack< String > | callback | ||
) |
开启或停止录制CDN的流
liveId | CDN推流 liveID |
enable | 是否开启录制,true为开启 false为停止 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.enableRecordLivestream | ( | String | liveId, |
EMRecordMediaFormat | format, | ||
boolean | enable, | ||
final EMValueCallBack< String > | callback | ||
) |
开启或停止录制CDN的流
liveId | CDN推流 liveID |
format | 录制文件格式 |
enable | 是否开启录制,true为开启 false为停止 |
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, String> com.hyphenate.chat.EMConferenceManager.getLiveCfgs | ( | ) |
CDN推流liveID (key为推流liveID,value为推流URL)
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 | ||
) |
用户角色: Admin > Talker > Audience 当角色升级时,用户需要给管理员发送申请,管理通过该接口改变用户接口. 当角色降级时,用户直接调用该接口即可. 注意: 暂时不支持Admin降级自己
confId | 会议id |
member | EMConferenceMember,目前使用memberName进行的操作 |
toRole | 目标角色,EMConferenceRole |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.handleAdminApplication | ( | String | memberId, |
boolean | accept | ||
) |
管理员处理 申请管理员请求 注意: 只允许Admin 去操作
memberId | 请求者 memberId; |
accept | true 代表同意 false 代表不同意 |
void com.hyphenate.chat.EMConferenceManager.handleSpeakerApplication | ( | String | memberId, |
boolean | accept | ||
) |
管理员处理 上麦请求 注意:只允许Admin 去操作
memberId | 请求者 memberId; |
accept | true 代表同意 false 代表不同意 |
int com.hyphenate.chat.EMConferenceManager.inputExternalAudioData | ( | byte[] | data, |
int | length | ||
) |
从外部直接输入音频数据 (发送的数据为计算出来的10ms的pcm byte数据 该功能目前只支持单声道,)
data | 发送的自定义音频数据(计算出来的10ms的pcm byte数据) |
length | 发送的自定义音频数据长度 ,是计算出来的10ms所需要的pcm byte数据长度, 计算方式: length = sampleRate * 10 / 1000 * bytesPerSample * channels. 参数说明:sampleRate 音频采样率 channels 音频声道(目前本sdk只支持单声道) bytesPerSample = BITS_PER_SAMPLE/8( 一般 BITS_PER_SAMPLE=16 , 默认的音频数据格式是PCM 16位每个样本.) |
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | EMConferenceStream.StreamType | type, |
byte[] | data, | ||
RtcConnection.FORMAT | format, | ||
int | width, | ||
int | height, | ||
int | stride, | ||
int | sliceHeight, | ||
int | rotation | ||
) |
外部输入数据方法
type | 传入当前流的类型, 查看 EMConferenceStream.StreamType |
data | 视频数据流,需要是 YUV 格式数据 |
format | 查看 RtcConnection.FORMAT |
width | 视频数据帧宽 |
height | 视频数据帧高 |
stride,used | in NV12 format, usally same as width |
sliceHeight,used | in NV12 format, usally same as height |
rotation | 旋转角度 |
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | Bitmap | bitmap | ) |
外部输入视频数据方法,此方法主要是为分享桌面回调使用
bitmap | bitmap (格式 - ARGB_8888) 数据 |
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | EMConferenceStream.StreamType | type, |
byte[] | data, | ||
int | width, | ||
int | height, | ||
int | rotation | ||
) |
外部输入数据方法
type | 传入当前流的类型, 查看 EMConferenceStream.StreamType |
data | 视频数据流,需要是 YUV (格式 - YUV420SP) 数据 |
width | 视频数据帧宽 |
height | 视频数据帧高 |
rotation | 旋转角度 |
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | byte[] | data, |
int | width, | ||
int | height, | ||
int | rotation | ||
) |
外部输入数据方法,
data | 视频数据流,需要是 YUV (格式 - YUV420SP) 数据 |
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.joinConferenceMultiple | ( | final String | confId, |
final String | password, | ||
final EMConferenceRole | userRoleType, | ||
final EMRoomConfig | roomConfig, | ||
final EMStreamParam | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
多人音视频 加入会议
confId | 会议 id |
password | 会议密码 |
userRoleType | 用户进入会议当前角色 |
roomConfig | 当前会议房间配置 |
param | 加入会议时 publish 自己本地数据参数 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.joinConferenceWithTicket | ( | final String | ticket, |
final EMStreamParam | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
通过 Ticket 加入会议
ticket | 加入会议需要的凭证 |
param | 加入会议所需参数 EMStreamParam |
void com.hyphenate.chat.EMConferenceManager.joinRoom | ( | final String | room, |
final String | password, | ||
final EMConferenceRole | role, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
加入多人音视频加议房间
room | 会议房间名 |
password | 会议房间密码 |
role | 当前用户加入时指定角色 (EMConferenceRole类型) |
callback | 回调函数 |
void com.hyphenate.chat.EMConferenceManager.joinRoom | ( | final String | room, |
final String | password, | ||
final EMConferenceRole | roletype, | ||
final EMRoomConfig | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
加入多人音视频加议房间
room | 会议房间名 |
password | 会议房间密码 |
roletype | 当前用户加入时指定角色 (EMConferenceRole类型) |
param | 设置会议参数 (EMRoomConfig类型) |
callback | 回调函数 |
void com.hyphenate.chat.EMConferenceManager.joinWhiteboardRoomWithId | ( | final String | user, |
final String | token, | ||
final String | roomId, | ||
final String | password, | ||
final EMValueCallBack< EMWhiteboard > | callBack | ||
) |
通过白板id加入房间
user | 用户名 |
token | 用户的token |
roomId | 房间名 |
password | 房间的密码 |
callBack | 请求完成的回调 |
void com.hyphenate.chat.EMConferenceManager.joinWhiteboardRoomWithName | ( | final String | user, |
final String | token, | ||
final String | roomName, | ||
final String | password, | ||
final EMValueCallBack< EMWhiteboard > | callBack | ||
) |
通过白板名称加入房间
user | 用户名 |
token | 用户的token |
roomName | 房间名 |
password | 房间的密码 |
callBack | 请求完成的回调 |
void com.hyphenate.chat.EMConferenceManager.kickMember | ( | final String | confId, |
final List< String > | members, | ||
final EMValueCallBack< String > | callback | ||
) |
移除会议中存在的主播 用户角色: Admin > Talker > Audience 注意: 踢人只允许Admin 去操作
confId | 会议id |
members | 移除的主播列表 |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.muteAll | ( | final String | confId, |
final boolean | mute, | ||
final EMValueCallBack< String > | callback | ||
) |
全体静音 取消全体静音 用户角色: Admin > Talker > Audience 注意: 全体静音只允许Admin 去操作
confId | 会议id |
mute | 是否设置静音(ture 为设置全体静音 false 为取消全体静音) |
callback | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.muteMember | ( | String | memberId | ) |
发送静音命令 注意: 只允许Admin 去操作
memberId | memberId 被静音的成员的memberId; |
void com.hyphenate.chat.EMConferenceManager.muteRemoteAudio | ( | String | streamId, |
boolean | mute | ||
) |
mute远端音频
void com.hyphenate.chat.EMConferenceManager.muteRemoteVideo | ( | String | streamId, |
boolean | mute | ||
) |
~ mute远端视频
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.set | ( | String | accessToken, |
String | appKey, | ||
String | username | ||
) |
设置单独使用视音频功能时所需参数
accessToken | |
appKey | |
username |
void com.hyphenate.chat.EMConferenceManager.setConferenceAttribute | ( | @NonNull String | key, |
@NonNull String | value, | ||
final EMValueCallBack< Void > | callback | ||
) |
设置频道属性,该会议中的所有人(包括自己)都会收到EMConferenceListener#onAttributesUpdated回调. 该方法需要在加入会议后调用.
key | |
value | |
callback |
void com.hyphenate.chat.EMConferenceManager.setLocalSurfaceView | ( | EMCallSurfaceView | localView | ) |
设置显示自己本地预览画面控件
localView | 显示本地图像的控件 |
void com.hyphenate.chat.EMConferenceManager.setLocalVideoViewMirror | ( | @EMMirror.MIRROR int | mirror | ) |
设置本地视频view镜像,可在通话过程中动态设置
mirror |
void com.hyphenate.chat.EMConferenceManager.setRotation | ( | int | rotation | ) |
设置视频会议中Camera采集到的VideoFrame的rotation
rotation | 必须是90的倍数 |
int com.hyphenate.chat.EMConferenceManager.startAudioMixing | ( | String | filePath, |
int | loop, | ||
boolean | sendAudio | ||
) |
开启本地伴音功能,请在加入会议成功后调用,该伴音配置只存在于该会议存在期间.默认音量为原音频文件音量的%50. 可以通过adjustAudioMixingVolume(int volume)调节伴音音量.
filePath | 文件路径. 如果用户提供的目录以 /assets/ 开头,则去 assets 里面查找该文件 如果用户提供的目录不是以 /assets/ 开头,一律认为是在绝对路径里查找该文件 |
loop | 指定音频文件循环播放的次数: 正整数:循环的次数 -1:无限循环 |
void com.hyphenate.chat.EMConferenceManager.startMonitorSpeaker | ( | int | interval | ) |
开启正在说话监听器
interval | EMConferenceListener#onSpeakers(List) 回调间隔 |
int com.hyphenate.chat.EMConferenceManager.stopAudioMixing | ( | ) |
关闭本地混音功能,请在加入会议成功后调用
void com.hyphenate.chat.EMConferenceManager.stopLiveStream | ( | String | liveId, |
final EMValueCallBack< String > | callback | ||
) |
停止CDN推流
liveId | 推流CDN的liveId |
callback | 结果回调 |
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.unmuteMember | ( | String | memberId | ) |
发送解除静音命令 注意: 只允许Admin 去操作
memberId | 被取消静音的成员的memberId; |
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.updateLiveLayout | ( | String | liveId, |
List< EMLiveRegion > | regions, | ||
final EMValueCallBack< String > | callback | ||
) |
CDN 推流更新布局(只有管理员可操作) 用户角色: Admin > Talker > Audience 注意: 更新布局只允许Admin 去操作
liveId | 推流CDN的liveId |
regions | EMCanvasRegion布局对象列表 |
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 | 结果回调 |
void com.hyphenate.chat.EMConferenceManager.updateVideoMaxKbps | ( | int | maxKbps | ) |
更新视频最大码率
maxKbps | 最大码率 |
void com.hyphenate.chat.EMConferenceManager.updateWhiteboardRoomWithRoomId | ( | final String | user, |
final String | roomId, | ||
final String | token, | ||
final boolean | isInteractive, | ||
final List< String > | aServentIds, | ||
final boolean | isAllInTeract, | ||
EMCallBack | callBack | ||
) |
通过白板Id 修改白板操作权限
user | 创建者的userId |
roomId | 房间Id |
token | 用户的token |
isInteractive | 是否开启交互权限 |
aServentIds | 需要互动控制的成员 |
isAllInTeract | 是否允许所有人交互 |
callBack | 请求完成的回调 |