Latest 1.0.9
Homepage https://github.com/arthasAndDk/react-native-rtc
License MIT
Platforms ios 8.0, requires ARC
Authors

Android 配置

repositories {
  maven {
    url  "https://dl.bintray.com/arthasanddk/maven"
  }
}

compile 'com.arthas.rtc:react-native-rtc:1.0.10.1'

iOS 配置

pod 'react-native-rtc', '1.0.10.1'

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 logoutRoom
onAVEngineStop
didLeaveChannel logoutRoom
onAVEngineStop
UserJoin
用户加入
onUserJoined onUserUpdate
didJoinedOfUid onUserUpdate:updateType:
UserLeave
用户离开
onUserOffline onUserUpdate
didOfflineOfUid onUserUpdate:updateType:
Warning
警告
onWarning
警告码
didOccurWarning
警告码
Error
错误
onError
错误码
loginRoom
onPublishStateUpdate
onPlayStateUpdate
onDeviceError
onInitSDK
didOccurError
错误码
StreamUpdate
数据流更新
onFirstRemoteAudioFrame
onFirstRemoteVideoDecoded
onStreamUpdated
firstRemoteAudioFrameOfUid
firstRemoteVideoDecodedOfUid
onStreamUpdated:streams:roomID:
RemoteVideoState
远端视频状态
(正常、卡顿)
onRemoteVideoStateChanged
remoteVideoStateChangedOfUid
VideoSize
视频尺寸
onVideoSizeChanged onCaptureVideoSizeChangedTo
onVideoSizeChanged
videoSizeChangedOfUid onCaptureVideoSizeChangedTo:
onVideoSizeChangedTo:ofStream:
SoundLevel
音量
onAudioVolumeIndication onSoundLevelUpdate
reportAudioVolumeIndicationOfSpeakers onSoundLevelUpdate:
UserMuteVideo
用户禁用视频
onUserMuteVideo
didVideoMuted
UserMuteAudio
用户禁用音频
onUserMuteAudio
didAudioMuted

日志相关回调:

Base Agora Zego AnyChat
RtcStatus
音视频状态
(时长、字节、码率、延迟、CPU)
onRtcStats onPublishQualityUpdate
onPlayQualityUpdate
reportRtcStats onPublishQualityUpdate:quality:
onPlayQualityUpate:quality:
NetworkQuality
网络上下行质量
onNetworkQuality onPublishQualityUpdate
onPlayQualityUpdate
networkQuality onPublishQualityUpdate:quality:
onPlayQualityUpate:quality:
AudioStatus
音频状态
(延迟、丢包、码率)
onRemoteAudioTransportStats onPublishQualityUpdate
onPlayQualityUpdate
audioTransportStatsOfUid onPublishQualityUpdate:quality:
onPlayQualityUpate:quality:
VideoStatus
视频状态
(延迟、丢包、码率)
onRemoteVideoTransportStats onPublishQualityUpdate
onPlayQualityUpdate
videoTransportStatsOfUid onPublishQualityUpdate:quality:
onPlayQualityUpate:quality:

Latest podspec

{
    "name": "react-native-rtc",
    "version": "1.0.9",
    "platforms": {
        "ios": "8.0"
    },
    "summary": "react-native-rtc",
    "homepage": "https://github.com/arthasAndDk/react-native-rtc",
    "license": "MIT",
    "authors": {
        "arthas": "[email protected]"
    },
    "source": {
        "git": "https://github.com/arthasAndDk/react-native-rtc.git",
        "tag": "1.0.9"
    },
    "source_files": "ios/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This