TRTCCallingDelegate enum

TRTCCallingDelegate回调事件

Inheritance

Constructors

TRTCCallingDelegate()
const

Values

onError → const TRTCCallingDelegate

错误回调,表示 SDK 不可恢复的错误,一定要监听并分情况给用户适当的界面提示

参数param:

errCode 错误码

errMsg 错误信息

extraInfo 扩展信息字段,个别错误码可能会带额外的信息帮助定位问题

onWarning → const TRTCCallingDelegate

警告回调,用于告知您一些非严重性问题,例如出现卡顿或者可恢复的解码失败。

参数param:

warningCode 错误码

warningMsg 警告信息

extraInfo 扩展信息字段,个别警告码可能会带额外的信息帮助定位问题

onEnterRoom → const TRTCCallingDelegate

本地进房

如果加入成功,result 会是一个正数(result > 0),代表加入房间的时间消耗,单位是毫秒(ms)。

如果加入失败,result 会是一个负数(result < 0),代表进房失败的错误码。

参数param:

result > 0 时为进房耗时(ms),result < 0 时为进房错误码

onUserEnter → const TRTCCallingDelegate

有用户加入当前房间。

参数param:

userId 用户标识

onUserLeave → const TRTCCallingDelegate

有用户离开当前房间。

参数param:

userId 用户标识

reason 离开原因,0表示用户主动退出房间,1表示用户超时退出,2表示被踢出房间。

onGroupCallInviteeListUpdate → const TRTCCallingDelegate
onInvited → const TRTCCallingDelegate
onReject → const TRTCCallingDelegate
onNoResp → const TRTCCallingDelegate
onLineBusy → const TRTCCallingDelegate
onCallingCancel → const TRTCCallingDelegate
onCallingTimeout → const TRTCCallingDelegate
onCallEnd → const TRTCCallingDelegate
onUserVideoAvailable → const TRTCCallingDelegate

远端用户是否存在可播放的主路画面(一般用于摄像头)

当您收到 onUserVideoAvailable(userId, true) 通知时,表示该路画面已经有可用的视频数据帧到达。 此时,您需要调用 startRemoteView(userid) 接口加载该用户的远程画面。 然后,您会收到名为 onFirstVideoFrame(userid) 的首帧画面渲染回调。

当您收到 onUserVideoAvailable(userId, false) 通知时,表示该路远程画面已经被关闭,可能由于该用户调用了 muteLocalVideo() 或 stopLocalPreview()。

参数param:

userId 用户标识

available 画面是否开启

onUserAudioAvailable → const TRTCCallingDelegate

远端用户是否存在可播放的主路画面(一般用于摄像头)

当您收到 onUserVideoAvailable(userId, true) 通知时,表示该路画面已经有可用的视频数据帧到达。 此时,您需要调用 startRemoteView(userid) 接口加载该用户的远程画面。 然后,您会收到名为 onFirstVideoFrame(userid) 的首帧画面渲染回调。

当您收到 onUserVideoAvailable(userId, false) 通知时,表示该路远程画面已经被关闭,可能由于该用户调用了 muteLocalVideo() 或 stopLocalPreview()。

参数param:

userId 用户标识

available 画面是否开启

onUserVoiceVolume → const TRTCCallingDelegate

用于提示音量大小的回调,包括每个 userId 的音量和远端总音量。

您可以通过调用 TRTCCloud 中的 enableAudioVolumeEvaluation 接口来开关这个回调或者设置它的触发间隔。 需要注意的是,调用 enableAudioVolumeEvaluation 开启音量回调后,无论频道内是否有人说话,都会按设置的时间间隔调用这个回调; 如果没有人说话,则 userVolumes 为空,totalVolume 为0。

注意:userId 为本地用户 ID 时表示自己的音量,userVolumes 内仅包含正在说话(音量不为0)的用户音量信息。

参数param:

userVolumes 所有正在说话的房间成员的音量,取值范围0 - 100。

totalVolume 所有远端成员的总音量, 取值范围0 - 100。

onKickedOffline → const TRTCCallingDelegate
onAccept → const TRTCCallingDelegate

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<TRTCCallingDelegate>
A constant List of the values in this enum, in order of their declaration.