RTCVideoEventHandler constructor Null safety

RTCVideoEventHandler(
  1. {OnWarningType? onWarning,
  2. OnErrorType? onError,
  3. OnCreateRoomStateChangedType? onCreateRoomStateChanged,
  4. OnConnectionStateChanged? onConnectionStateChanged,
  5. OnNetworkTypeChangedType? onNetworkTypeChanged,
  6. OnUserOperateMediaCaptureType? onUserStartAudioCapture,
  7. OnUserOperateMediaCaptureType? onUserStopAudioCapture,
  8. OnFirstLocalAudioFrameType? onFirstLocalAudioFrame,
  9. OnFirstRemoteAudioFrameType? onFirstRemoteAudioFrame,
  10. OnLocalAudioPropertiesReportType? onLocalAudioPropertiesReport,
  11. OnRemoteAudioPropertiesReportType? onRemoteAudioPropertiesReport,
  12. OnActiveSpeakerType? onActiveSpeaker,
  13. OnUserOperateMediaCaptureType? onUserStartVideoCapture,
  14. OnUserOperateMediaCaptureType? onUserStopVideoCapture,
  15. OnFirstLocalVideoFrameCapturedType? onFirstLocalVideoFrameCaptured,
  16. OnFirstRemoteVideoFrameRenderedType? onFirstRemoteVideoFrameRendered,
  17. OnFirstRemoteVideoFrameRenderedType? onFirstRemoteVideoFrameDecoded,
  18. OnRemoteVideoSizeChangedType? onRemoteVideoSizeChanged,
  19. OnLocalVideoSizeChangedType? onLocalVideoSizeChanged,
  20. OnAudioDeviceStateChangedType? onAudioDeviceStateChanged,
  21. OnVideoDeviceStateChangedType? onVideoDeviceStateChanged,
  22. OnAudioDeviceWarningType? onAudioDeviceWarning,
  23. OnVideoDeviceWarningType? onVideoDeviceWarning,
  24. OnMediaFrameSendStateChangedType? onAudioFrameSendStateChanged,
  25. OnMediaFrameSendStateChangedType? onVideoFrameSendStateChanged,
  26. OnMediaFrameSendStateChangedType? onScreenVideoFrameSendStateChanged,
  27. OnMediaFramePlayStateChangedType? onAudioFramePlayStateChanged,
  28. OnMediaFramePlayStateChangedType? onVideoFramePlayStateChanged,
  29. OnMediaFramePlayStateChangedType? onScreenVideoFramePlayStateChanged,
  30. OnAudioRouteChangedType? onAudioRouteChanged,
  31. OnSEIMessageReceivedType? onSEIMessageReceived,
  32. OnSEIStreamUpdateType? onSEIStreamUpdate,
  33. OnStreamSyncInfoReceivedType? onStreamSyncInfoReceived,
  34. OnSysStatsType? onSysStats,
  35. OnLocalAudioStateChangedType? onLocalAudioStateChanged,
  36. OnRemoteAudioStateChangedType? onRemoteAudioStateChanged,
  37. OnLocalVideoStateChangedType? onLocalVideoStateChanged,
  38. OnRemoteVideoStateChangedType? onRemoteVideoStateChanged,
  39. OnLoginResultType? onLoginResult,
  40. EmptyCallbackType? onLogout,
  41. OnServerParamsSetResultType? onServerParamsSetResult,
  42. OnGetPeerOnlineStatusType? onGetPeerOnlineStatus,
  43. OnMessageReceivedType? onUserMessageReceivedOutsideRoom,
  44. OnBinaryMessageReceivedType? onUserBinaryMessageReceivedOutsideRoom,
  45. OnMessageSendResultType? onUserMessageSendResultOutsideRoom,
  46. OnServerMessageSendResultType? onServerMessageSendResult,
  47. OnNetworkDetectionResultType? onNetworkDetectionResult,
  48. OnNetworkDetectionStoppedType? onNetworkDetectionStopped,
  49. OnAudioMixingStateChangedType? onAudioMixingStateChanged,
  50. OnAudioMixingPlayingProgressType? onAudioMixingPlayingProgress,
  51. OnPerformanceAlarmsType? onPerformanceAlarms,
  52. OnSimulcastSubscribeFallbackType? onSimulcastSubscribeFallback,
  53. OnHttpProxyStateType? onHttpProxyState,
  54. OnHttpsProxyStateType? onHttpsProxyState,
  55. OnSocks5ProxyStateType? onSocks5ProxyState,
  56. OnRecordingStateUpdateType? onRecordingStateUpdate,
  57. OnRecordingProgressUpdateType? onRecordingProgressUpdate,
  58. OnPushPublicStreamResultType? onPushPublicStreamResult,
  59. OnPlayPublicStreamResultType? onPlayPublicStreamResult,
  60. OnPublicStreamSEIMessageReceivedType? onPublicStreamSEIMessageReceived,
  61. OnFirstPublicStreamVideoFrameDecodedType? onFirstPublicStreamVideoFrameDecoded,
  62. OnFirstPublicStreamAudioFrameType? onFirstPublicStreamAudioFrame,
  63. OnCloudProxyConnectedType? onCloudProxyConnected,
  64. OnEchoTestResultType? onEchoTestResult}
)

Implementation

RTCVideoEventHandler({
  this.onWarning,
  this.onError,
  this.onCreateRoomStateChanged,
  this.onConnectionStateChanged,
  this.onNetworkTypeChanged,
  this.onUserStartAudioCapture,
  this.onUserStopAudioCapture,
  this.onFirstLocalAudioFrame,
  this.onFirstRemoteAudioFrame,
  this.onLocalAudioPropertiesReport,
  this.onRemoteAudioPropertiesReport,
  this.onActiveSpeaker,
  this.onUserStartVideoCapture,
  this.onUserStopVideoCapture,
  this.onFirstLocalVideoFrameCaptured,
  this.onFirstRemoteVideoFrameRendered,
  this.onFirstRemoteVideoFrameDecoded,
  this.onRemoteVideoSizeChanged,
  this.onLocalVideoSizeChanged,
  this.onAudioDeviceStateChanged,
  this.onVideoDeviceStateChanged,
  this.onAudioDeviceWarning,
  this.onVideoDeviceWarning,
  this.onAudioFrameSendStateChanged,
  this.onVideoFrameSendStateChanged,
  this.onScreenVideoFrameSendStateChanged,
  this.onAudioFramePlayStateChanged,
  this.onVideoFramePlayStateChanged,
  this.onScreenVideoFramePlayStateChanged,
  this.onAudioRouteChanged,
  this.onSEIMessageReceived,
  this.onSEIStreamUpdate,
  this.onStreamSyncInfoReceived,
  OnSysStatsType? onSysStats,
  this.onLocalAudioStateChanged,
  this.onRemoteAudioStateChanged,
  this.onLocalVideoStateChanged,
  this.onRemoteVideoStateChanged,
  this.onLoginResult,
  this.onLogout,
  this.onServerParamsSetResult,
  this.onGetPeerOnlineStatus,
  this.onUserMessageReceivedOutsideRoom,
  this.onUserBinaryMessageReceivedOutsideRoom,
  this.onUserMessageSendResultOutsideRoom,
  this.onServerMessageSendResult,
  this.onNetworkDetectionResult,
  this.onNetworkDetectionStopped,
  this.onAudioMixingStateChanged,
  this.onAudioMixingPlayingProgress,
  this.onPerformanceAlarms,
  this.onSimulcastSubscribeFallback,
  this.onHttpProxyState,
  this.onHttpsProxyState,
  this.onSocks5ProxyState,
  this.onRecordingStateUpdate,
  this.onRecordingProgressUpdate,
  this.onPushPublicStreamResult,
  this.onPlayPublicStreamResult,
  this.onPublicStreamSEIMessageReceived,
  this.onFirstPublicStreamVideoFrameDecoded,
  this.onFirstPublicStreamAudioFrame,
  this.onCloudProxyConnected,
  this.onEchoTestResult,
}) {
  this.onSysStats = onSysStats;
}