react-native-rtc
v1.0.13
Published
``` repositories { maven { url "https://dl.bintray.com/arthasanddk/maven" } }
Downloads
2
Readme
###Android 配置
repositories {
maven {
url "https://dl.bintray.com/arthasanddk/maven"
}
}
compile 'com.arthas.rtc:react-native-rtc:1.0.13'
###iOS 配置
pod 'react-native-rtc', '1.0.13'
Header Search Paths $(SRCROOT)/../../../ios/Pods/Headers recursive
普通回调:
Base | Agora | Zego | AnyChat ---|---|---|--- Disconnect连接断开 | onConnectionLost | onDisconnect | | rtcEngineConnectionDidLost | onDisconnect:roomID: Reconnect重连 | onRejoinChannelSuccess | onReconnect | | didRejoinChannel | onReconnect:roomID: ConnectState连接状态 | onConnectionStateChanged | onConnectState | | connectionChangedToState | onConnectState: JoinRoom加入房间 | onJoinChannelSuccess | loginRoom | | didJoinChannel | loginRoom:roomName:role:withCompletionBlock: LeaveRoom离开房间 | onLeaveChannel | logoutRoomonAVEngineStop | | didLeaveChannel | logoutRoomonAVEngineStop UserJoin用户加入 | onUserJoined | onUserUpdate | | didJoinedOfUid | onUserUpdate:updateType: UserLeave用户离开 | onUserOffline | onUserUpdate | | didOfflineOfUid | onUserUpdate:updateType: Warning警告 | onWarning警告码 | | didOccurWarning警告码 Error错误 | onError错误码 | loginRoomonPublishStateUpdateonPlayStateUpdateonDeviceErroronInitSDK | | didOccurError错误码 | loginRoomonPublishStateUpdateonPlayStateUpdateonDeviceErroronInitSDK StreamUpdate数据流更新 | onFirstRemoteAudioFrameonFirstRemoteVideoDecoded | onStreamUpdated | | firstRemoteAudioFrameOfUidfirstRemoteVideoDecodedOfUid | onStreamUpdated:streams:roomID: RemoteVideoState远端视频状态(正常、卡顿) | onRemoteVideoStateChanged | onLiveEvent | | remoteVideoStateChangedOfUid | zego_onLiveEvent:info: VideoSize视频尺寸 | onVideoSizeChanged | onCaptureVideoSizeChangedToonVideoSizeChanged | | videoSizeChangedOfUid | onCaptureVideoSizeChangedTo:onVideoSizeChangedTo:ofStream: SoundLevel音量 | onAudioVolumeIndication | onSoundLevelUpdate | | reportAudioVolumeIndicationOfSpeakers | onSoundLevelUpdate: | UserMuteVideo用户禁用视频 | onUserMuteVideo | | didVideoMuted | UserMuteAudio用户禁用音频 | onUserMuteAudio | | didAudioMuted
日志相关回调:
Base | Agora | Zego | AnyChat ---|---|---|--- RtcStatus音视频状态(时长、字节、码率、延迟、CPU) | onRtcStats | onPublishQualityUpdateonPlayQualityUpdate | | reportRtcStats | onPublishQualityUpdate:quality:onPlayQualityUpate:quality: NetworkQuality网络上下行质量 | onNetworkQuality | onPublishQualityUpdateonPlayQualityUpdate | | networkQuality | onPublishQualityUpdate:quality:onPlayQualityUpate:quality: AudioStatus音频状态(延迟、丢包、码率) | onRemoteAudioTransportStats | onPublishQualityUpdateonPlayQualityUpdate | | audioTransportStatsOfUid | onPublishQualityUpdate:quality:onPlayQualityUpate:quality: VideoStatus视频状态(延迟、丢包、码率) | onRemoteVideoTransportStats | onPublishQualityUpdateonPlayQualityUpdate | | videoTransportStatsOfUid | onPublishQualityUpdate:quality:onPlayQualityUpate:quality: