RtcEngineEventHandler class

最近更新时间:2022-09-20 05:17:40

主回调事件。

RtcEngineEventHandler 接口类用于 SDK 向 App 发送回调事件通知, App 通过继承该接口类的方法获取 SDK 的事件通知。 接口类的所有方法都有缺省(空)实现, App 可以根据需要只继承关心的事件。在回调方法中,App 不应该做耗时或者调用可能会引起阻塞的 API(如 SendMessage),否则可能影响 SDK 的运行。

Constructors

  • RtcEngineEventHandler({WarningCallback warning, ErrorCallback error, ApiCallCallback apiCallExecuted, UidWithElapsedAndChannelCallback joinChannelSuccess, RtcStatsCallback rejoinChannelSuccess, RtcStatsCallback leaveChannel, UserAccountCallback localUserRegistered, UserInfoCallback userInfoUpdated, ClientRoleCallback clientRoleChanged, UidWithElapsedCallback userJoined, UserOfflineCallback userOffline, ConnectionStateCallback connectionStateChanged, NetworkTypeCallback networkTypeChanged, EmptyCallback connectionLost, TokenCallback tokenPrivilegeWillExpire, EmptyCallback requestToken, AudioVolumeCallback audioVolumeIndication, UidCallback activeSpeaker, ElapsedCallback firstLocalAudioFrame, VideoFrameCallback firstLocalVideoFrame, UidWithMutedCallback userMuteVideo, VideoSizeCallback videoSizeChanged, RemoteVideoStateCallback remoteVideoStateChanged, LocalVideoStateCallback localVideoStateChanged, RemoteAudioStateCallback remoteAudioStateChanged, LocalAudioStateCallback localAudioStateChanged, FallbackCallback localPublishFallbackToAudioOnly, FallbackWithUidCallback remoteSubscribeFallbackToAudioOnly, AudioRouteCallback audioRouteChanged, RectCallback cameraFocusAreaChanged, RectCallback cameraExposureAreaChanged, FacePositionCallback facePositionChanged, RtcStatsCallback rtcStats, NetworkQualityCallback lastmileQuality, NetworkQualityWithUidCallback networkQuality, LastmileProbeCallback lastmileProbeResult, LocalVideoStatsCallback localVideoStats, LocalAudioStatsCallback localAudioStats, RemoteVideoStatsCallback remoteVideoStats, RemoteAudioStatsCallback remoteAudioStats, EmptyCallback audioMixingFinished, AudioMixingStateCallback audioMixingStateChanged, SoundIdCallback audioEffectFinished, RtmpStreamingStateCallback rtmpStreamingStateChanged, EmptyCallback transcodingUpdated, StreamInjectedStatusCallback streamInjectedStatus, StreamMessageCallback streamMessage, StreamMessageErrorCallback streamMessageError, EmptyCallback mediaEngineLoadSuccess, EmptyCallback mediaEngineStartCallSuccess, MediaRelayStateCallback channelMediaRelayStateChanged, MediaRelayEventCallback channelMediaRelayEvent, VideoFrameWithUidCallback firstRemoteVideoFrame, UidWithElapsedCallback firstRemoteAudioFrame, UidWithElapsedCallback firstRemoteAudioDecoded, UidWithMutedCallback userMuteAudio, UrlWithErrorCallback streamPublished, UrlCallback streamUnpublished, TransportStatsCallback remoteAudioTransportStats, TransportStatsCallback remoteVideoTransportStats, UidWithEnabledCallback userEnableVideo, UidWithEnabledCallback userEnableLocalVideo, VideoFrameWithUidCallback firstRemoteVideoDecoded, EnabledCallback microphoneEnabled, EmptyCallback connectionInterrupted, EmptyCallback connectionBanned, AudioQualityCallback audioQuality, EmptyCallback cameraReady, EmptyCallback videoStopped, MetadataCallback metadataReceived, ElapsedCallback firstLocalAudioFramePublished, ElapsedCallback firstLocalVideoFramePublished, StreamPublishStateCallback audioPublishStateChanged, StreamPublishStateCallback videoPublishStateChanged, StreamSubscribeStateCallback audioSubscribeStateChanged, StreamSubscribeStateCallback videoSubscribeStateChanged, RtmpStreamingEventCallback rtmpStreamingEvent})

    Constructs a RtcEngineEventHandler

Properties

Methods

Operators