IRTCEngineEventHandler constructor

IRTCEngineEventHandler({
  1. FutureOr<void> onWarning(
    1. WarningCode code
    )?,
  2. FutureOr<void> onError(
    1. ErrorCode code
    )?,
  3. FutureOr<void> onExtensionAccessError(
    1. String extensionName,
    2. String msg
    )?,
  4. FutureOr<void> onSysStats(
    1. SysStats stats
    )?,
  5. FutureOr<void> onNetworkTypeChanged(
    1. NetworkType type
    )?,
  6. FutureOr<void> onUserStartVideoCapture(
    1. String streamId,
    2. StreamInfo info
    )?,
  7. FutureOr<void> onUserStopVideoCapture(
    1. String streamId,
    2. StreamInfo info
    )?,
  8. FutureOr<void> onUserStartAudioCapture(
    1. String streamId,
    2. StreamInfo info
    )?,
  9. FutureOr<void> onUserStopAudioCapture(
    1. String streamId,
    2. StreamInfo info
    )?,
  10. FutureOr<void> onLocalAudioStateChanged(
    1. dynamic audioSource,
    2. LocalAudioStreamState state,
    3. LocalAudioStreamError error
    )?,
  11. FutureOr<void> onRemoteAudioStateChanged(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. RemoteAudioState state,
    4. RemoteAudioStateChangeReason reason,
    )?,
  12. FutureOr<void> onLocalVideoStateChanged(
    1. dynamic videoSource,
    2. LocalVideoStreamState state,
    3. LocalVideoStreamError error
    )?,
  13. FutureOr<void> onRemoteVideoStateChanged(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. RemoteVideoState state,
    4. RemoteVideoStateChangeReason videoStateReason,
    )?,
  14. FutureOr<void> onRemoteVideoSuperResolutionModeChanged(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. VideoSuperResolutionMode mode,
    4. VideoSuperResolutionModeChangedReason reason,
    )?,
  15. FutureOr<void> onVideoDenoiseModeChanged(
    1. VideoDenoiseMode mode,
    2. VideoDenoiseModeChangedReason reason
    )?,
  16. FutureOr<void> onFirstRemoteVideoFrameRendered(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. VideoFrameInfo frameInfo
    )?,
  17. FutureOr<void> onFirstRemoteVideoFrameDecoded(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. VideoFrameInfo frameInfo
    )?,
  18. FutureOr<void> onFirstLocalVideoFrameCaptured(
    1. dynamic videoSource,
    2. VideoFrameInfo frameInfo
    )?,
  19. FutureOr<void> onLocalVideoSizeChanged(
    1. dynamic videoSource,
    2. VideoFrameInfo frameInfo
    )?,
  20. FutureOr<void> onRemoteVideoSizeChanged(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. VideoFrameInfo frameInfo
    )?,
  21. FutureOr<void> onConnectionStateChanged(
    1. int state,
    2. int? reason
    )?,
  22. FutureOr<void> onAudioRouteChanged(
    1. AudioRoute device
    )?,
  23. FutureOr<void> onFirstLocalAudioFrame(
    1. dynamic audioSource
    )?,
  24. FutureOr<void> onFirstRemoteAudioFrame(
    1. String streamId,
    2. StreamInfo streamInfo
    )?,
  25. FutureOr<void> onSEIMessageReceived(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. Uint8List message
    )?,
  26. FutureOr<void> onSEIStreamUpdate(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. SEIStreamUpdateEvent event
    )?,
  27. FutureOr<void> onLoginResult(
    1. String uid,
    2. LoginErrorCode errorCode,
    3. int elapsed
    )?,
  28. FutureOr<void> onLogout(
    1. LogoutReason reason
    )?,
  29. FutureOr<void> onServerParamsSetResult(
    1. int error
    )?,
  30. FutureOr<void> onGetPeerOnlineStatus(
    1. String peerUserId,
    2. UserOnlineStatus status
    )?,
  31. FutureOr<void> onUserMessageReceivedOutsideRoom(
    1. int msgid,
    2. String uid,
    3. String message
    )?,
  32. FutureOr<void> onUserBinaryMessageReceivedOutsideRoom(
    1. int msgid,
    2. String uid,
    3. Uint8List message
    )?,
  33. FutureOr<void> onUserMessageSendResultOutsideRoom(
    1. int msgid,
    2. UserMessageSendResult error
    )?,
  34. FutureOr<void> onServerMessageSendResult(
    1. int msgid,
    2. UserMessageSendResult error,
    3. Uint8List message
    )?,
  35. FutureOr<void> onNetworkDetectionResult(
    1. NetworkDetectionLinkType type,
    2. NetworkQuality quality,
    3. int rtt,
    4. double lostRate,
    5. int bitrate,
    6. int jitter,
    )?,
  36. FutureOr<void> onNetworkDetectionStopped(
    1. NetworkDetectionStopReason reason
    )?,
  37. FutureOr<void> onAudioDeviceStateChanged(
    1. String deviceId,
    2. AudioDeviceType deviceType,
    3. MediaDeviceState deviceState,
    4. MediaDeviceError deviceError,
    )?,
  38. FutureOr<void> onVideoDeviceStateChanged(
    1. String deviceId,
    2. VideoDeviceType deviceType,
    3. MediaDeviceState deviceState,
    4. MediaDeviceError deviceError,
    )?,
  39. FutureOr<void> onAudioDeviceWarning(
    1. String deviceId,
    2. AudioDeviceType deviceType,
    3. MediaDeviceWarning deviceWarning
    )?,
  40. FutureOr<void> onVideoDeviceWarning(
    1. String deviceId,
    2. VideoDeviceType deviceType,
    3. MediaDeviceWarning deviceWarning
    )?,
  41. FutureOr<void> onRecordingStateUpdate(
    1. dynamic videoSource,
    2. RecordingState state,
    3. RecordingErrorCode errorCode,
    4. RecordingInfo info,
    )?,
  42. FutureOr<void> onRecordingProgressUpdate(
    1. dynamic videoSource,
    2. RecordingProgress process,
    3. RecordingInfo info
    )?,
  43. FutureOr<void> onAudioRecordingStateUpdate(
    1. AudioRecordingState state,
    2. AudioRecordingErrorCode errorCode
    )?,
  44. FutureOr<void> onAudioMixingPlayingProgress(
    1. int mixId,
    2. int progress
    )?,
  45. FutureOr<void> onLocalAudioPropertiesReport(
    1. List<LocalAudioPropertiesInfo> audioPropertiesInfos
    )?,
  46. FutureOr<void> onAudioPlaybackDeviceTestVolume(
    1. int volume
    )?,
  47. FutureOr<void> onRemoteAudioPropertiesReport(
    1. List<RemoteAudioPropertiesInfo> audioPropertiesInfos,
    2. int totalRemoteVolume
    )?,
  48. FutureOr<void> onActiveSpeaker(
    1. String roomId,
    2. String userId
    )?,
  49. FutureOr<void> onEchoTestResult(
    1. EchoTestResult result
    )?,
  50. FutureOr<void> onCloudProxyConnected(
    1. int interval
    )?,
  51. FutureOr<void> onAudioDumpStateChanged(
    1. AudioDumpStatus status
    )?,
  52. FutureOr<void> onLicenseWillExpire(
    1. int days
    )?,
  53. FutureOr<void> onHardwareEchoDetectionResult(
    1. HardwareEchoDetectionResult result
    )?,
  54. FutureOr<void> onLocalProxyStateChanged(
    1. LocalProxyType localProxyType,
    2. LocalProxyState localProxyState,
    3. LocalProxyError localProxyError
    )?,
  55. FutureOr<void> onEffectError(
    1. EffectErrorType error,
    2. String msg
    )?,
  56. FutureOr<void> onStreamSyncInfoReceived(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. SyncInfoStreamType streamType,
    4. Uint8List data,
    )?,
  57. FutureOr<void> onExternalScreenFrameUpdate(
    1. FrameUpdateInfo engine,
    2. FrameUpdateInfo? frameUpdateInfo
    )?,
  58. FutureOr<void> onRemoteSnapshotTakenToFile(
    1. String streamId,
    2. String filePath,
    3. int width,
    4. int height,
    5. SnapshotErrorCode errorCode,
    6. int taskId,
    )?,
  59. FutureOr<void> onAudioFrameSendStateChanged(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. RtcUser user,
    4. FirstFrameSendState state,
    )?,
  60. FutureOr<void> onVideoFrameSendStateChanged(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. RtcUser user,
    4. FirstFrameSendState state,
    )?,
  61. FutureOr<void> onAudioFramePlayStateChanged(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. RtcUser user,
    4. FirstFramePlayState state,
    )?,
  62. FutureOr<void> onVideoFramePlayStateChanged(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. RtcUser user,
    4. FirstFramePlayState state,
    )?,
  63. FutureOr<void> onSimulcastSubscribeFallback(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. RemoteStreamSwitch event
    )?,
  64. FutureOr<void> onPerformanceAlarms(
    1. String streamId,
    2. StreamInfo streamInfo,
    3. PerformanceAlarmMode mode,
    4. PerformanceAlarmReason reason,
    5. SourceWantedData data,
    )?,
  65. FutureOr<void> onRemoteAudioPropertiesReportEx(
    1. List<RemoteAudioPropertiesInfo> audioPropertiesInfos,
    2. int? totalRemoteVolume
    )?,
  66. FutureOr<void> onMixedStreamEvent(
    1. MixedStreamTaskInfo info,
    2. MixedStreamTaskEvent event,
    3. MixedStreamTaskErrorCode error
    )?,
  67. FutureOr<void> onSingleStreamEvent(
    1. String taskId,
    2. SingleStreamTaskEvent event,
    3. SingleStreamTaskErrorCode error
    )?,
  68. FutureOr<void> onExperimentalCallback(
    1. String param
    )?,
  69. FutureOr<void> onPushPublicStreamResult(
    1. String roomId,
    2. String streamId,
    3. PublicStreamErrorCode errorCode
    )?,
  70. FutureOr<void> onLogReport(
    1. String logType,
    2. dynamic logContent
    )?,
  71. FutureOr<void> onNetworkTimeSynchronized()?,
})

Implementation

IRTCEngineEventHandler(
    {this.onWarning,
    this.onError,
    this.onExtensionAccessError,
    this.onSysStats,
    this.onNetworkTypeChanged,
    this.onUserStartVideoCapture,
    this.onUserStopVideoCapture,
    this.onUserStartAudioCapture,
    this.onUserStopAudioCapture,
    this.onLocalAudioStateChanged,
    this.onRemoteAudioStateChanged,
    this.onLocalVideoStateChanged,
    this.onRemoteVideoStateChanged,
    this.onRemoteVideoSuperResolutionModeChanged,
    this.onVideoDenoiseModeChanged,
    this.onFirstRemoteVideoFrameRendered,
    this.onFirstRemoteVideoFrameDecoded,
    this.onFirstLocalVideoFrameCaptured,
    this.onLocalVideoSizeChanged,
    this.onRemoteVideoSizeChanged,
    this.onConnectionStateChanged,
    this.onAudioRouteChanged,
    this.onFirstLocalAudioFrame,
    this.onFirstRemoteAudioFrame,
    this.onSEIMessageReceived,
    this.onSEIStreamUpdate,
    this.onLoginResult,
    this.onLogout,
    this.onServerParamsSetResult,
    this.onGetPeerOnlineStatus,
    this.onUserMessageReceivedOutsideRoom,
    this.onUserBinaryMessageReceivedOutsideRoom,
    this.onUserMessageSendResultOutsideRoom,
    this.onServerMessageSendResult,
    this.onNetworkDetectionResult,
    this.onNetworkDetectionStopped,
    this.onAudioDeviceStateChanged,
    this.onVideoDeviceStateChanged,
    this.onAudioDeviceWarning,
    this.onVideoDeviceWarning,
    this.onRecordingStateUpdate,
    this.onRecordingProgressUpdate,
    this.onAudioRecordingStateUpdate,
    this.onAudioMixingPlayingProgress,
    this.onLocalAudioPropertiesReport,
    this.onAudioPlaybackDeviceTestVolume,
    this.onRemoteAudioPropertiesReport,
    this.onActiveSpeaker,
    this.onEchoTestResult,
    this.onCloudProxyConnected,
    this.onAudioDumpStateChanged,
    this.onLicenseWillExpire,
    this.onHardwareEchoDetectionResult,
    this.onLocalProxyStateChanged,
    this.onEffectError,
    this.onStreamSyncInfoReceived,
    this.onExternalScreenFrameUpdate,
    this.onRemoteSnapshotTakenToFile,
    this.onAudioFrameSendStateChanged,
    this.onVideoFrameSendStateChanged,
    this.onAudioFramePlayStateChanged,
    this.onVideoFramePlayStateChanged,
    this.onSimulcastSubscribeFallback,
    this.onPerformanceAlarms,
    this.onRemoteAudioPropertiesReportEx,
    this.onMixedStreamEvent,
    this.onSingleStreamEvent,
    this.onExperimentalCallback,
    this.onPushPublicStreamResult,
    this.onLogReport,
    this.onNetworkTimeSynchronized});