TRTCCloudListener class
Constructors
-
TRTCCloudListener({void onError(int errCode, String errMsg)?, void onWarning(int warningCode, String warningMsg)?, void onEnterRoom(int result)?, void onExitRoom(int reason)?, void onSwitchRole(int errCode, String errMsg)?, void onSwitchRoom(int errCode, String errMsg)?, void onConnectOtherRoom(String userId, int errCode, String errMsg)?, void onDisconnectOtherRoom(int errCode, String errMsg)?, void onRemoteUserEnterRoom(String userId)?, void onRemoteUserLeaveRoom(String userId, int reason)?, void onUserVideoAvailable(String userId, bool available)?, void onUserSubStreamAvailable(String userId, bool available)?, void onUserAudioAvailable(String userId, bool available)?, void onFirstVideoFrame(String userId, TRTCVideoStreamType streamType, int width, int height)?, void onFirstAudioFrame(String userId)?, void onSendFirstLocalVideoFrame(TRTCVideoStreamType streamType)?, void onSendFirstLocalAudioFrame()?, void onRemoteVideoStatusUpdated(String userId, TRTCVideoStreamType streamType, TRTCAVStatusType status, TRTCAVStatusChangeReason reason)?, void onRemoteAudioStatusUpdated(String userId, TRTCAVStatusType status, TRTCAVStatusChangeReason reason)?, void onUserVideoSizeChanged(String userId, TRTCVideoStreamType streamType, int newWidth, int newHeight)?, void onNetworkQuality(TRTCQualityInfo localQuality, List<TRTCQualityInfo> remoteQuality)?, void onStatistics(TRTCStatistics statistics)?, void onSpeedTestResult(TRTCSpeedTestResult result)?, void onConnectionLost()?, void onTryToReconnect()?, void onConnectionRecovery()?, void onCameraDidReady()?, void onMicDidReady()?, void onUserVoiceVolume(List<TRTCVolumeInfo> userVolumes, int totalVolume)?, void onAudioDeviceCaptureVolumeChanged(int volume, bool muted)?, void onAudioDevicePlayoutVolumeChanged(int volume, bool muted)?, void onSystemAudioLoopbackError(int errCode)?, void onTestMicVolume(int volume)?, void onTestSpeakerVolume(int volume)?, void onRecvCustomCmdMsg(String userId, int cmdId, int seq, String message)?, void onMissCustomCmdMsg(String userId, int cmdId, int errCode, int missed)?, void onRecvSEIMsg(String userId, String message)?, void onStartPublishMediaStream(String taskId, int errCode, String errMsg, )?, void onUpdatePublishMediaStream(String taskId, int errCode, String errMsg, )?, void onStopPublishMediaStream(String taskId, int errCode, String errMsg, )?, void onCdnStreamStateChanged(String cdnUrl, int status, int errCode, String errMsg, )?, void onScreenCaptureStarted()?, void onScreenCapturePaused(int reason)?, void onScreenCaptureResumed(int reason)?, void onScreenCaptureStopped(int reason)?, void onScreenCaptureCovered()?, void onLocalRecordBegin(int errCode, String storagePath)?, void onLocalRecording(int duration, String storagePath)?, void onLocalRecordFragment(String storagePath)?, void onLocalRecordComplete(int errCode, String storagePath)?, void onSnapshotComplete(String userId, TRTCVideoStreamType type, Uint8List data, int length, int width, int heigth, TRTCVideoPixelFormat format)?})
-
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
onAudioDeviceCaptureVolumeChanged
→ void Function(int volume, bool muted)?
-
The Capturing Volume of the Mic Changed
final
-
onAudioDevicePlayoutVolumeChanged
→ void Function(int volume, bool muted)?
-
The Playback Volume Changed
final
-
onCameraDidReady
→ void Function()?
-
The camera is ready
final
-
onCdnStreamStateChanged
→ void Function(String cdnUrl, int status, int errCode, String errMsg, )?
-
Callback for Change of RTMP/RTMPS Publishing Status
final
-
onConnectionLost
→ void Function()?
-
The SDK was disconnected from the cloud
final
-
onConnectionRecovery
→ void Function()?
-
The SDK is reconnected to the cloud
final
-
onConnectOtherRoom
→ void Function(String userId, int errCode, String errMsg)?
-
Result of Requesting Cross-Room Call
final
-
onDisconnectOtherRoom
→ void Function(int errCode, String errMsg)?
-
Result of ending cross-room call
final
-
onEnterRoom
→ void Function(int result)?
-
Whether Room Entry is Successful
final
-
onError
→ void Function(int errCode, String errMsg)?
-
Error Event Callback
final
-
onExitRoom
→ void Function(int reason)?
-
Room Exit
final
-
onFirstAudioFrame
→ void Function(String userId)?
-
The SDK Started Playing the First Audio Frame of a Remote User
final
-
onFirstVideoFrame
→ void Function(String userId, TRTCVideoStreamType streamType, int width, int height)?
-
The SDK Started Rendering the First Video Frame of the Local or a Remote User
final
-
onLocalRecordBegin
→ void Function(int errCode, String storagePath)?
-
Local Recording Started
final
-
onLocalRecordComplete
→ void Function(int errCode, String storagePath)?
-
Local Recording Stopped
final
-
onLocalRecordFragment
→ void Function(String storagePath)?
-
Record Fragment Finished
final
-
onLocalRecording
→ void Function(int duration, String storagePath)?
-
Local Media is Being Recorded
final
-
onMicDidReady
→ void Function()?
-
The mic is ready
final
-
onMissCustomCmdMsg
→ void Function(String userId, int cmdId, int errCode, int missed)?
-
Loss of Custom Message
final
-
onNetworkQuality
→ void Function(TRTCQualityInfo localQuality, List<TRTCQualityInfo> remoteQuality)?
-
Real-time Network Quality Statistics
final
-
onRecvCustomCmdMsg
→ void Function(String userId, int cmdId, int seq, String message)?
-
Receipt of Custom Message
final
-
onRecvSEIMsg
→ void Function(String userId, String message)?
-
Receipt of SEI Message
final
-
onRemoteAudioStatusUpdated
→ void Function(String userId, TRTCAVStatusType status, TRTCAVStatusChangeReason reason)?
-
Change of Remote Audio Status
final
-
onRemoteUserEnterRoom
→ void Function(String userId)?
-
A User Entered the Room
final
-
onRemoteUserLeaveRoom
→ void Function(String userId, int reason)?
-
A User Exited the Room
final
-
onRemoteVideoStatusUpdated
→ void Function(String userId, TRTCVideoStreamType streamType, TRTCAVStatusType status, TRTCAVStatusChangeReason reason)?
-
Change of Remote Video Status
final
-
onScreenCaptureCovered
→ void Function()?
-
The Shared Window Was Covered (for Windows only)
final
-
onScreenCapturePaused
→ void Function(int reason)?
-
Screen Sharing Was Paused
final
-
onScreenCaptureResumed
→ void Function(int reason)?
-
Screen Sharing Was Resumed
final
-
onScreenCaptureStarted
→ void Function()?
-
Screen sharing started
final
-
onScreenCaptureStopped
→ void Function(int reason)?
-
Screen Sharing Stopped
final
-
onSendFirstLocalAudioFrame
→ void Function()?
-
The First Local Audio Frame Was Published
final
-
onSendFirstLocalVideoFrame
→ void Function(TRTCVideoStreamType streamType)?
-
The First Local Video Frame Was Published
final
-
onSnapshotComplete
→ void Function(String userId, TRTCVideoStreamType type, Uint8List data, int length, int width, int heigth, TRTCVideoPixelFormat format)?
-
Finished Taking a Local Screenshot
final
-
onSpeedTestResult
→ void Function(TRTCSpeedTestResult result)?
-
Callback of Network Speed Test
final
-
onStartPublishMediaStream
→ void Function(String taskId, int errCode, String errMsg, )?
-
Callback for Starting to Publish
final
-
onStatistics
→ void Function(TRTCStatistics statistics)?
-
Real-time Statistics on Technical Metrics
final
-
onStopPublishMediaStream
→ void Function(String taskId, int errCode, String errMsg, )?
-
Callback for Stopping Publishing
final
-
onSwitchRole
→ void Function(int errCode, String errMsg)?
-
Role Switching
final
-
onSwitchRoom
→ void Function(int errCode, String errMsg)?
-
Result of Room Switching
final
-
onSystemAudioLoopbackError
→ void Function(int errCode)?
-
Whether System Audio Capturing is Enabled Successfully (for Desktop OS Only)
final
-
onTestMicVolume
→ void Function(int volume)?
-
Volume During Mic Test
final
-
onTestSpeakerVolume
→ void Function(int volume)?
-
Volume During Speaker Test
final
-
onTryToReconnect
→ void Function()?
-
The SDK is reconnecting to the cloud
final
-
onUpdatePublishMediaStream
→ void Function(String taskId, int errCode, String errMsg, )?
-
Callback for Modifying Publishing Parameters
final
-
onUserAudioAvailable
→ void Function(String userId, bool available)?
-
A Remote User Published/Unpublished Audio
final
-
onUserSubStreamAvailable
→ void Function(String userId, bool available)?
-
A Remote User Published/Unpublished Substream Video
final
-
onUserVideoAvailable
→ void Function(String userId, bool available)?
-
A Remote User Published/Unpublished Primary Stream Video
final
-
onUserVideoSizeChanged
→ void Function(String userId, TRTCVideoStreamType streamType, int newWidth, int newHeight)?
-
Change of Remote Video Size
final
-
onUserVoiceVolume
→ void Function(List<TRTCVolumeInfo> userVolumes, int totalVolume)?
-
Volume
final
-
onWarning
→ void Function(int warningCode, String warningMsg)?
-
Warning Event Callback
final
-
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