hyphenate_SDK3.0 3.7.6.3
hyphenate java IM SDK
|
Classes | |
enum | EMConferenceRole |
enum | EMConferenceType |
enum | EMRecordMediaFormat |
enum | EMToolbarButtonType |
enum | EMUploadButtonLayout |
interface | ILocalAudioDataListener |
interface | IRemoteAudioDataListener |
class | Role |
Public Member Functions | |
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 Member Functions | |
EMConferenceManager (EMACallManager manager) | |
void | addCommonParams (Map< String, Object > params) |
Created by lzan13 on 2017/8/16.
Multi person conference manager, Encapsulation of multi-person audio and video conference operation method, create, join, invite and so on
|
protected |
preventing to instantiate this EMConferenceManager
void com.hyphenate.chat.EMConferenceManager.addConferenceListener | ( | EMConferenceListener | listener | ) |
Add conference listener
void com.hyphenate.chat.EMConferenceManager.addLiveStream | ( | EMLiveConfig | liveConfig, |
final EMValueCallBack< String > | callback | ||
) |
Add CDN multiplex push stream
liveConfig | CDN push stream layout configuration |
callback | Result callback |
int com.hyphenate.chat.EMConferenceManager.adjustAudioMixingVolume | ( | int | volume | ) |
Adjust audio mixing volume,this method can only be used after join a conference.
volume | scope: 0~100. Default volume is 100, which is the original audio file volume. |
void com.hyphenate.chat.EMConferenceManager.applyTobeAdmin | ( | String | memberId | ) |
Request to be admin
memberId | of the admin; |
void com.hyphenate.chat.EMConferenceManager.applyTobeSpeaker | ( | String | memberId | ) |
Request to be speaker
memberId | of the admin (only the admin can process the request on the mic); |
void com.hyphenate.chat.EMConferenceManager.closeVideoTransfer | ( | ) |
Close video transfer
void com.hyphenate.chat.EMConferenceManager.closeVoiceTransfer | ( | ) |
Close voice transfer
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 | ||
) |
Create and join conference
password | Conference password |
isSupportMiniProgram | Support for mini programs |
param | join conference publish local stream param |
callback | result callback |
@Deprecated Use createAndJoinConference(EMConferenceType, String, EMValueCallBack) instead and publish stream use publish(EMStreamParam, EMValueCallBack) in {
callback | onSuccess()} | callback. |
void com.hyphenate.chat.EMConferenceManager.createAndJoinConference | ( | final @NonNull EMConferenceType | type, |
final String | password, | ||
final EMRoomConfig | roomConfig, | ||
final EMStreamParam | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
Create and join conference that support the EMRoomConfig parameters
password | Conference password |
roomConfig | Set Conference parameter object |
param | join conference publish local stream param |
callback | result 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 | ||
) |
Create and join conference
password | Conference password |
param | join conference publish local stream param |
callback | result callback |
@Deprecated Use createAndJoinConference(EMConferenceType, String, EMValueCallBack) instead and publish stream use publish(EMStreamParam, EMValueCallBack) in {
callback | onSuccess()} | 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 | ||
) |
Create and join conference
password | Conference password |
isSupportMiniProgram | Support for mini programs |
callback | result callback |
void com.hyphenate.chat.EMConferenceManager.createAndJoinConference | ( | final EMConferenceType | type, |
final String | password, | ||
final boolean | recordOnServer, | ||
final boolean | mergeStream, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
Create and join conference
password | Conference password |
callback | result callback |
void com.hyphenate.chat.EMConferenceManager.createAndJoinConference | ( | final EMConferenceType | type, |
final String | password, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
Create and join conference
password | Conference password |
callback | result 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 | ||
) |
create room for whiteboard
user | username |
token | user's token |
roomName | room name for whiteboard |
password,password | for room |
isInteractive | Is interaction allowed |
callBack | 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 EMUploadButtonLayout | pattern, | ||
final EMToolbarButtonType | button, | ||
final EMValueCallBack< EMWhiteboard > | callBack | ||
) |
create room for whiteboard
user | username |
token | user's token |
roomName | room name for whiteboard |
password,password | for room |
isInteractive | Is interaction allowed |
layout | toolbar position (only 0,1,2 for bottom, right and top respectively) |
ratio | aspect ratio(such as:"2:1", "4:3" ,"16:9") |
pattern | insert picture policy (EMUploadButtonLayout type, such as before and after the current page, etc.) |
button | toolbar action to distinguish the entrant from the creator (EMToolbarButtonType type ALL(same as creator permissions) NO UPLAOD(absence of permissions, such as uploading attachments to add whiteboard, etc.) |
callBack | 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 | ||
) |
create room for whiteboard
user | username |
token | user's token |
roomName | room name for whiteboard |
password,password | for room |
isInteractive | Is interaction allowed |
layout | toolbar position (only 0,1,2 for bottom, right and top respectively) |
ratio | aspect ratio(such as:"2:1", "4:3" ,"16:9") |
callBack | callback |
void com.hyphenate.chat.EMConferenceManager.deleteConferenceAttribute | ( | @NonNull String | key, |
final EMValueCallBack< Void > | callback | ||
) |
Delete conference attribute,All members in this conference(include myself) will receive a callback in EMConferenceListener#onAttributesUpdated. this method can only be used after join a conference.
key | |
callback |
void com.hyphenate.chat.EMConferenceManager.destroyConference | ( | final EMValueCallBack | callback | ) |
destroy conference
callback |
void com.hyphenate.chat.EMConferenceManager.destroyWhiteboardRoom | ( | final String | user, |
final String | token, | ||
final String | roomId, | ||
EMCallBack | callBack | ||
) |
create room for whiteboard
user | username |
token | user's token |
roomId | room name for whiteboard |
callBack | callback |
void com.hyphenate.chat.EMConferenceManager.enableRecordLivestream | ( | String | liveId, |
boolean | enable, | ||
final EMValueCallBack< String > | callback | ||
) |
Start or stop recording CDN streams
liveId | CDN liveID push stream |
enable | Whether recording is on or off, true means false or stop |
callback | Result callback |
void com.hyphenate.chat.EMConferenceManager.enableRecordLivestream | ( | String | liveId, |
EMRecordMediaFormat | format, | ||
boolean | enable, | ||
final EMValueCallBack< String > | callback | ||
) |
Start or stop recording CDN streams
liveId | CDN liveID push stream |
format | Record file format |
enable | Whether recording is on or off, true means false or stop |
callback | Result callback |
void com.hyphenate.chat.EMConferenceManager.enableStatistics | ( | boolean | enable | ) |
enable statistics @params enable enable statistics
void com.hyphenate.chat.EMConferenceManager.exitConference | ( | final EMValueCallBack | callback | ) |
Exit conference
Map< String, EMConferenceStream > com.hyphenate.chat.EMConferenceManager.getAvailableStreamMap | ( | ) |
Get subscribable stream map
int com.hyphenate.chat.EMConferenceManager.getCameraId | ( | ) |
get current camera id, 0 back, 1 front
void com.hyphenate.chat.EMConferenceManager.getConferenceInfo | ( | final String | confId, |
final String | password, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
Get the conference info from server.
confId | conference id |
password | conference password |
callback | result callback |
List< EMConferenceMember > com.hyphenate.chat.EMConferenceManager.getConferenceMemberList | ( | ) |
Get conference member list
Map< String, String > com.hyphenate.chat.EMConferenceManager.getLiveCfgs | ( | ) |
CDN推流liveID (key为推流liveID,value为推流URL)
Map< String, EMConferenceStream > com.hyphenate.chat.EMConferenceManager.getSubscribedStreamMap | ( | ) |
get subscribed stream list
void com.hyphenate.chat.EMConferenceManager.grantRole | ( | final String | confId, |
final EMConferenceMember | member, | ||
final EMConferenceRole | toRole, | ||
final EMValueCallBack< String > | callback | ||
) |
Role: Admin > Talker > Audience When role upgrade, you need to send a request to Admin, only Admin can upgrade a role. When role degrade, you can degrade with this method yourself. Attention: Admin can not degrade self.
confId | Conference id |
member | EMConferenceMember |
toRole | Target role,EMConferenceRole |
callback | Result callback |
void com.hyphenate.chat.EMConferenceManager.handleAdminApplication | ( | String | memberId, |
boolean | accept | ||
) |
Admin handle to be admin requests
memberId | requestor memberId; |
accept | true means agree false means disagree |
void com.hyphenate.chat.EMConferenceManager.handleSpeakerApplication | ( | String | memberId, |
boolean | accept | ||
) |
Admin handle to be speak requests
memberId | requestor memberId; |
accept | true means agree , false means disagree |
int com.hyphenate.chat.EMConferenceManager.inputExternalAudioData | ( | byte[] | data, |
int | length | ||
) |
Send external custom audio data, please call after successfully joining the meeting. (the data sent is calculated as PCM byte data of 10ms. This function only supports mono channel at present.)
data | Custom audio data sent (calculated PCM byte data of 10ms) |
length | The length of custom audio data sent is the length of PCM byte required by the calculated 10ms. formula mode: length = sampleRate * 10 / 1000 * bytesPerSample * channels. sampleRate: Audio sampling rate channels:Audio channel (currently this SDK only supports mono channel) bytesPerSample = BITS_PER_SAMPLE/8(BITS_PER_SAMPLE=16 , Default audio data format is PCM 16 bit per sample.) |
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | Bitmap | bitmap | ) |
Input external video data
bitmap | bitmap (format - ARGB_8888) input |
@Deprecated Use inputExternalVideoData(EMConferenceStream.StreamType, byte[], RtcConnection.FORMAT, int, int, int) for instead.
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | byte[] | data, |
int | width, | ||
int | height, | ||
int | rotation | ||
) |
Input external view data
data | Video data YUV (format - YUV420SP) data |
width | Video frame width |
height | Video frame height |
rotation | Video frame rotation |
@Deprecated Use inputExternalVideoData(EMConferenceStream.StreamType, byte[], RtcConnection.FORMAT, int, int, int) for instead.
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | EMConferenceStream.StreamType | type, |
byte[] | data, | ||
int | width, | ||
int | height, | ||
int | rotation | ||
) |
Input external view data
type | Current stream type, See EMConferenceStream.StreamType |
data | Video data YUV (format - YUV420SP) data |
width | Video frame width |
height | Video frame height |
rotation | Video frame rotation |
@Deprecated Use inputExternalVideoData(EMConferenceStream.StreamType, byte[], RtcConnection.FORMAT, int, int, int) for instead.
void com.hyphenate.chat.EMConferenceManager.inputExternalVideoData | ( | EMConferenceStream.StreamType | type, |
byte[] | data, | ||
RtcConnection.FORMAT | format, | ||
int | width, | ||
int | height, | ||
int | stride, | ||
int | sliceHeight, | ||
int | rotation | ||
) |
Input external view data
type | Current stream type, See EMConferenceStream.StreamType |
data | Video data YUV format |
format | See RtcConnection.FORMAT |
width | Video frame width |
height | Video frame height |
stride,used | in NV12 format, usally same as width |
sliceHeight,used | in NV12 format, usally same as height |
rotation | Video frame rotation |
void com.hyphenate.chat.EMConferenceManager.inviteUserToJoinConference | ( | final String | confId, |
final String | password, | ||
final String | username, | ||
final String | extension, | ||
final EMValueCallBack | callback | ||
) |
Invite other people join in conference
confId | conference id |
password | conference password |
username | The name of the invitee |
extension | Invitation extended information |
callback | result callback |
void com.hyphenate.chat.EMConferenceManager.joinConference | ( | final String | confId, |
final String | password, | ||
final EMStreamParam | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
Join conference
confId | conference id |
password | Conference password |
param | join conference publish local stream param |
callback | result callback |
@Deprecated Use joinConference(String, String, EMValueCallBack) instead and publish stream use publish(EMStreamParam, EMValueCallBack) in {
callback | onSuccess()} | callback. |
void com.hyphenate.chat.EMConferenceManager.joinConference | ( | final String | confId, |
final String | password, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
Join conference
confId | conference id |
password | Conference password |
callback | result 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 | ||
) |
Join conference
confId | conference id |
password | Conference password |
userRoleType | The user enters the meeting role |
roomConfig | Specify the role when the current user joins |
param | join conference publish local stream param |
callback | result callback |
@Deprecated Use joinConference(String, String, EMValueCallBack) instead and publish stream use publish(EMStreamParam, EMValueCallBack) in {
callback | onSuccess()} | callback. |
void com.hyphenate.chat.EMConferenceManager.joinConferenceWithTicket | ( | final String | ticket, |
final EMStreamParam | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
Join the conference via Ticket
ticket | Join the required ticket for the conference |
param | Join the required param for the conference EMStreamParam |
void com.hyphenate.chat.EMConferenceManager.joinRoom | ( | final String | room, |
final String | password, | ||
final EMConferenceRole | role, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
join multiconference room
room | conference roomName |
password | conference room password |
role | role (EMConferenceRole type) |
callback | callback |
void com.hyphenate.chat.EMConferenceManager.joinRoom | ( | final String | room, |
final String | password, | ||
final EMConferenceRole | roletype, | ||
final EMRoomConfig | param, | ||
final EMValueCallBack< EMConference > | callback | ||
) |
join multiconference room
room | conference roomName |
password | conference room password |
roletype | role (EMConferenceRole type) |
param | set meeting parameters (EMRoomConfig type) |
callback | callback |
void com.hyphenate.chat.EMConferenceManager.joinWhiteboardRoomWithId | ( | final String | user, |
final String | token, | ||
final String | roomId, | ||
final String | password, | ||
final EMValueCallBack< EMWhiteboard > | callBack | ||
) |
join whiteboard room with id
user | username |
token | user's token |
roomId | room name for whiteboard |
password,password | for room |
callBack | callback |
void com.hyphenate.chat.EMConferenceManager.joinWhiteboardRoomWithName | ( | final String | user, |
final String | token, | ||
final String | roomName, | ||
final String | password, | ||
final EMValueCallBack< EMWhiteboard > | callBack | ||
) |
join whiteboard room with name
user | username |
token | user's token |
roomName | room name for whiteboard |
password,password | for room |
callBack | callback |
void com.hyphenate.chat.EMConferenceManager.kickMember | ( | final String | confId, |
final List< String > | members, | ||
final EMValueCallBack< String > | callback | ||
) |
Remove talkers from the Conference
confId | Conference id |
members | Removed list of talkers |
callback | Result callback |
void com.hyphenate.chat.EMConferenceManager.muteAll | ( | final String | confId, |
final boolean | mute, | ||
final EMValueCallBack< String > | callback | ||
) |
All mute cancel all mute
confId | Conference id |
mute | Whether to set mute (true to set all mute , false to cancel all mute) |
callback | Result callback |
void com.hyphenate.chat.EMConferenceManager.muteMember | ( | String | memberId | ) |
Send the mute command
memberId | MemberId of the member being mute (only admin can sends mute command); |
void com.hyphenate.chat.EMConferenceManager.muteRemoteAudio | ( | String | streamId, |
boolean | mute | ||
) |
Mute remote audio
mute |
void com.hyphenate.chat.EMConferenceManager.muteRemoteVideo | ( | String | streamId, |
boolean | mute | ||
) |
~\chinese mute远端视频
Mute remote video
mute |
void com.hyphenate.chat.EMConferenceManager.openVideoTransfer | ( | ) |
Open video transfer
void com.hyphenate.chat.EMConferenceManager.openVoiceTransfer | ( | ) |
Open voice transfer
void com.hyphenate.chat.EMConferenceManager.publish | ( | EMStreamParam | param, |
final EMValueCallBack< String > | callback | ||
) |
Publish local stream
param | publish local stream config |
callback | result callback |
void com.hyphenate.chat.EMConferenceManager.removeConferenceListener | ( | EMConferenceListener | listener | ) |
Remove conference 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 | ||
) |
Set conference attribute,All members in this conference(include myself) will receive a callback in EMConferenceListener#onAttributesUpdated. this method can only be used after join a conference.
key | |
value | |
callback |
void com.hyphenate.chat.EMConferenceManager.setLocalSurfaceView | ( | EMCallSurfaceView | localView | ) |
Set local surface view
localView | Displays the local image controls |
void com.hyphenate.chat.EMConferenceManager.setLocalVideoViewMirror | ( | @EMMirror.MIRROR int | mirror | ) |
Set local video view mirror, can be set during a video call.
mirror |
void com.hyphenate.chat.EMConferenceManager.setRotation | ( | int | rotation | ) |
Set camera captured VideoFrame rotation
rotation | Must be a multiple of 90 |
int com.hyphenate.chat.EMConferenceManager.startAudioMixing | ( | String | filePath, |
int | loop, | ||
boolean | sendAudio | ||
) |
Start local audio mixing, this method can only be used after join a conference and only worked during this conference exists.Default volume is 50 percent of the original audio file, you can adjust the volume by adjustAudioMixingVolume(int volume).
filePath | Audio file path. If file path is start with /assets/, we will find in assets/ dir. Otherwise, we will find in absolute path. |
loop | loop mode (0 = no loop, -1 = loop forever) |
void com.hyphenate.chat.EMConferenceManager.startMonitorSpeaker | ( | int | interval | ) |
Start speaking monitor
interval | EMConferenceListener#onSpeakers(List) interval |
int com.hyphenate.chat.EMConferenceManager.stopAudioMixing | ( | ) |
Stop local audio mixing,this method can only be used after join a conference.
void com.hyphenate.chat.EMConferenceManager.stopLiveStream | ( | String | liveId, |
final EMValueCallBack< String > | callback | ||
) |
liveId | Push the liveId of CDN |
callback | Result callback Stop the CDN push |
callback | Result callback |
void com.hyphenate.chat.EMConferenceManager.stopMonitorSpeaker | ( | ) |
Stop speaker monitor
void com.hyphenate.chat.EMConferenceManager.subscribe | ( | final EMConferenceStream | stream, |
EMCallSurfaceView | surfaceView, | ||
final EMValueCallBack< String > | callback | ||
) |
Subscribe member publish stream
stream | current stream |
surfaceView | Displays the remote image controls |
callback | result callback |
void com.hyphenate.chat.EMConferenceManager.switchCamera | ( | ) |
Switch camera
void com.hyphenate.chat.EMConferenceManager.unmuteMember | ( | String | memberId | ) |
Send the unmute command
memberId | Send the memberId of the member whose unmute command is cancelled; |
void com.hyphenate.chat.EMConferenceManager.unpublish | ( | String | pubStreamId, |
final EMValueCallBack< String > | callback | ||
) |
UNPublish local stream
pubStreamId | local stream id |
void com.hyphenate.chat.EMConferenceManager.unsubscribe | ( | final EMConferenceStream | stream, |
final EMValueCallBack< String > | callback | ||
) |
Unsubscribe member publish stream
stream | current stream |
callback | result callback |
void com.hyphenate.chat.EMConferenceManager.updateLiveLayout | ( | String | liveId, |
List< EMLiveRegion > | regions, | ||
final EMValueCallBack< String > | callback | ||
) |
CDN pushes to update the layout
liveId | Push the liveId of CDN |
regions | Layout EMCanvasRegion list |
callback | Result callback |
void com.hyphenate.chat.EMConferenceManager.updateLocalSurfaceView | ( | EMCallSurfaceView | localView | ) |
Update local surface view
localView | Displays the local image controls |
void com.hyphenate.chat.EMConferenceManager.updateRemoteSurfaceView | ( | String | streamId, |
EMCallSurfaceView | remoteView | ||
) |
Update remote surface view
streamId | current stream id |
remoteView | Displays the remote image controls |
void com.hyphenate.chat.EMConferenceManager.updateSubscribe | ( | final EMConferenceStream | stream, |
EMCallSurfaceView | surfaceView, | ||
final EMValueCallBack< String > | callback | ||
) |
Update subscribe member publish stream
stream | current stream |
surfaceView | Displays the remote image controls |
callback | result callback |
void com.hyphenate.chat.EMConferenceManager.updateVideoMaxKbps | ( | int | maxKbps | ) |
Update video maximum bit rate
maxKbps | Maximum bit rate |
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 | ||
) |
modify whiteboard operation permissions with whiteboard Id
user | the userId of the creator |
roomId | whiteboard roomId |
token | user token |
isInteractive | whether interactive permissions are enabled |
aServentIds | members who need interactive control |
isAllInTeract | is everyone allowed to interact |
callBack | request completed callback |