CallSession class

Constructors

CallSession()

Properties

callId String
通话 id
getter/setter pair
callStatus int
通话状态(参考 CallStatus)
getter/setter pair
connectTime int
当前用户加入通话的时间
getter/setter pair
extra String
扩展字段
getter/setter pair
finishReason int
通话结束原因(参考 CallFinishReason)
getter/setter pair
finishTime int
当前用户结束通话的时间
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
inviterId String
邀请当前用户加入通话的用户 id
getter/setter pair
isMultiCall bool
是否多人通话,false 表示一对一通话
getter/setter pair
mediaType int
媒体类型(语音 0 / 视频 1)
getter/setter pair
members List<CallMember>
通话参与者(除当前用户外的其他参与者)
getter/setter pair
onCallConnect ↔ dynamic Function()?
getter/setter pair
onCallFinish ↔ dynamic Function(int finishReason)?
getter/setter pair
onErrorOccur ↔ dynamic Function(int errorCode)?
getter/setter pair
onSoundLevelUpdate ↔ dynamic Function(Map<String, double>)?
getter/setter pair
onUserCameraChange ↔ dynamic Function(String userId, bool enable)?
getter/setter pair
onUserMicrophoneChange ↔ dynamic Function(String userId, bool enable)?
getter/setter pair
onUsersConnect ↔ dynamic Function(List<String> userIdList)?
getter/setter pair
onUsersInvite ↔ dynamic Function(List<String> userIdList, String inviterId)?
getter/setter pair
onUsersLeave ↔ dynamic Function(List<String> userIdList)?
getter/setter pair
onVideoFirstFrameRender ↔ dynamic Function(String userId)?
getter/setter pair
owner String
通话的发起人 id
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime int
呼叫开始时间(多人会话中当前用户被呼叫的时间,不一定等于整个通话开始的时间)
getter/setter pair

Methods

accept() Future<void>
接听来电
enableCamera(bool isEnable) Future<void>
开启摄像头
hangup() Future<void>
挂断电话
inviteUsers(List<String> userIdList) Future<void>
呼叫用户加入通话(isMultiCall 为 NO 时不支持该功能)
muteMicrophone(bool isMute) Future<void>
设置麦克风静音
muteSpeaker(bool isMute) Future<void>
设置扬声器静音
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSpeakerEnable(bool isEnable) Future<void>
设置外放声音
setVideoView(String userId, VideoView view) Future<void>
设置用户的视频 view
startPreview(VideoView view) Future<void>
开始预览
toString() String
A string representation of this object.
inherited
useFrontCamera(bool isEnable) Future<void>
切换摄像头,默认 YES 使用前置摄像头

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map map) CallSession