RTCEventHandler constructor

RTCEventHandler({
  1. void onError(
    1. ErrorCodeType err,
    2. String msg
    )?,
  2. VoidCallback? onJoinChannelSuccess,
  3. VoidCallback? onLeaveChannel,
  4. void onUserJoined(
    1. int remoteUid
    )?,
  5. void onUserLeaved(
    1. int userId
    )?,
  6. void onUserMuteVideo(
    1. int remoteUid,
    2. bool muted
    )?,
  7. void onUserMuteAudio(
    1. int remoteUid,
    2. bool muted
    )?,
  8. void onFirstRemoteVideoDecoded(
    1. int remoteUid,
    2. int width,
    3. int height
    )?,
  9. void onRemoteVideoStateChanged(
    1. int remoteUid,
    2. RemoteVideoState state,
    3. RemoteVideoStateReason reason
    )?,
  10. void onActiveSpeaker(
    1. int uid
    )?,
})

Implementation

RTCEventHandler({
  this.onError,
  this.onJoinChannelSuccess,
  this.onLeaveChannel,
  this.onUserJoined,
  this.onUserLeaved,
  this.onUserMuteVideo,
  this.onUserMuteAudio,
  this.onFirstRemoteVideoDecoded,
  this.onRemoteVideoStateChanged,
  this.onActiveSpeaker,
});