Package io.rong.calllib

## Class RongRTCEventHandler

- All Implemented Interfaces:

      public class RongRTCEventHandler

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RongRTCEventHandler(ICallEngineListener listener)` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `onRemoteUserPublishResource(RCRTCRemoteUser remoteUser, List<RCRTCInputStream> publishResource)` |
    `void` | `onRemoteUserMuteAudio(RCRTCRemoteUser remoteUser, RCRTCInputStream stream, boolean mute)` |
    `void` | `onRemoteUserMuteVideo(RCRTCRemoteUser remoteUser, RCRTCInputStream stream, boolean mute)` | 远端用户打开或关闭发布的视频流。 例如用户开启或者关闭摄像头
    `void` | `onRemoteUserUnpublishResource(RCRTCRemoteUser remoteUser, List<RCRTCInputStream> unPublishResource)` |
    `void` | `onUserJoined(RCRTCRemoteUser remoteUser)` |
    `void` | `onUserLeft(RCRTCRemoteUser remoteUser)` |
    `void` | `onUserOffline(RCRTCRemoteUser remoteUser)` |
    `void` | `onPublishLiveStreams(List<RCRTCInputStream> streams)` |
    `void` | `onUnpublishLiveStreams(List<RCRTCInputStream> streams)` |
    `void` | `onPublishCDNStream(RCRTCCDNInputStream streams)` |
    `void` | `onUnpublishCDNStream(RCRTCCDNInputStream streams)` |
    `void` | `onVideoTrackAdd(String userId, String tag)` |
    `void` | `onFirstRemoteVideoFrame(String userId, String tag)` |
    `void` | `onLeaveRoom(int reasonCode)` |
    `void` | `onReceiveMessage(Message message)` |
    `void` | `onKickedByServer()` |
    `void` | `onFirstRemoteAudioFrame(String userId, String tag)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RongRTCEventHandler

          RongRTCEventHandler(ICallEngineListener listener)

  - ### Method Detail

    - #### onRemoteUserPublishResource

           void onRemoteUserPublishResource(RCRTCRemoteUser remoteUser, List<RCRTCInputStream> publishResource)

    - #### onRemoteUserMuteAudio

           void onRemoteUserMuteAudio(RCRTCRemoteUser remoteUser, RCRTCInputStream stream, boolean mute)

    - #### onRemoteUserMuteVideo

           void onRemoteUserMuteVideo(RCRTCRemoteUser remoteUser, RCRTCInputStream stream, boolean mute)

      远端用户打开或关闭发布的视频流。 例如用户开启或者关闭摄像头

      Parameters:
        `remoteUser` - 远端用户
        `stream` - 视频流
        `mute` - true表示关闭，false表示打开

    - #### onRemoteUserUnpublishResource

           void onRemoteUserUnpublishResource(RCRTCRemoteUser remoteUser, List<RCRTCInputStream> unPublishResource)

    - #### onUserJoined

           void onUserJoined(RCRTCRemoteUser remoteUser)

    - #### onUserLeft

           void onUserLeft(RCRTCRemoteUser remoteUser)

    - #### onUserOffline

           void onUserOffline(RCRTCRemoteUser remoteUser)

    - #### onPublishLiveStreams

           void onPublishLiveStreams(List<RCRTCInputStream> streams)

    - #### onUnpublishLiveStreams

           void onUnpublishLiveStreams(List<RCRTCInputStream> streams)

    - #### onPublishCDNStream

           void onPublishCDNStream(RCRTCCDNInputStream streams)

    - #### onUnpublishCDNStream

           void onUnpublishCDNStream(RCRTCCDNInputStream streams)

    - #### onVideoTrackAdd

           void onVideoTrackAdd(String userId, String tag)

    - #### onFirstRemoteVideoFrame

           void onFirstRemoteVideoFrame(String userId, String tag)

    - #### onLeaveRoom

           void onLeaveRoom(int reasonCode)

    - #### onReceiveMessage

           void onReceiveMessage(Message message)

    - #### onKickedByServer

           void onKickedByServer()

    - #### onFirstRemoteAudioFrame

           void onFirstRemoteAudioFrame(String userId, String tag)