Awesome Open Source
Awesome Open Source

anyRTC SDK

anyRTC()AndroidiOS

iOS

appid

AR-RtcModule

| | ---|---|--- create | appId(String) | rtc setCallBack | | sdk setParameters | | JSON SDK joinChannel | channelId(String)uid(String)token(String) | enableAudio | | enableVideo | | disableAudio | | disableVideo | | setAudioProfile | profile(int)scenario(int) | profile enableInEarMonitoring | enabled(bool) | setInEarMonitoringVolume | volume(int) | setChannelProfile | profile(int) | setClientRole | role(int) | playEffect | soundId(int)filePath(string)loopCount(int)pitch(double)pan(double)gain(double)publish(bool) | stopAllEffects | | stopEffect | soundId(int) | adjustAudioMixingVolume | volume(int) | startAudioMixing | filePath(string)loopback(bool)replace(bool)cycle(int) | stopAudioMixing | | leaveChannel | | destroyRtc | | ARtcEngineKit switchCamera | | setDefaultAudioRouteToSpeakerphone | defaultToSpeaker(bool) | setEnableSpeakerphone | enabled(bool) | isSpeakerphoneEnabled | | enableAudioVolumeIndication | interval(int)smooth(int)report_vad(bool) | adjustRecordingSignalVolume | volume(int) | 0400 adjustUserPlaybackSignalVolume | uid(string)volume(int) | 0100 adjustPlaybackSignalVolume | volume(int) | 0400 enableLocalAudio | enabled(bool) | enableLocalVideo | enabled(bool) | / muteLocalAudioStream | muted(bool) | muteLocalVideoStream | muted(bool) | muteRemoteAudioStream | uid(string)muted(bool) | muteRemoteVideoStream | uid(string)muted(bool) | / muteAllRemoteAudioStreams | muted(bool) | / muteAllRemoteVideoStreams | muted(bool) | / setDefaultMuteAllRemoteAudioStreams | muted(bool) | / setDefaultMuteAllRemoteVideoStreams | muted(bool) | / setCameraTorchOn | isOn(bool) | isCameraTorchSupported | | setVideoEncoderConfiguration | width(int)height(int)frameRate(int)bitrate(int)orientationMode(int) | addPublishStreamUrl | url(string)transcodingEnabled(bool) |
removePublishStreamUrl | url(string) |
setLiveTranscoding | transcoding(LiveTranscoding) |

callBack

{"code": 0}

codeanyRTC

AR-CanvasView

| | ---|---|--- startPreview | | stopPreview | | setupLocalVideo | uid(string)channelId(string)renderMode(int)mirrorMode(int) | setupRemoteVideo | uid(string)channelId(string)renderMode(int)mirrorMode(int) |

  1. (onWarning)
{"engineEvent": "onWarning", "warningCode": 0}

2.(onError)

{"engineEvent": "onError", "errorCode": 0}

3.(onJoinChannelSuccess)

{"engineEvent": "onJoinChannelSuccess", "channel": "909090", "uid": "123", "elapsed": 0}

4.(onRejoinChannelSuccess)

{"engineEvent": "onRejoinChannelSuccess", "channel": "909090", "uid": "123", "elapsed": 0]

5.(onLeaveChannel)

{"engineEvent": "onLeaveChannel", "duration": 0, "txBytes": 0, "rxBytes": 0, "txAudioBytes": 0, "txVideoBytes": 0, "rxAudioBytes": 0, "rxVideoBytes": 0, "txKBitrate": 0, "rxKBitrate": 0, "txAudioKBitrate": 0, "rxAudioKBitrate": 0, "txVideoKBitrate": 0, "rxVideoKBitrate": 0, "lastmileDelay": 0, "txPacketLossRate": 0, "rxPacketLossRate": 0, "userCount": 0, "cpuAppUsage": 0.0, "cpuTotalUsage": 0.0, "gatewayRtt": 0, "memoryAppUsageRatio": 0.0, "memoryTotalUsageRatio": 0.0, "memoryAppUsageInKbytes": 0}

6.(onClientRoleChanged)

{"engineEvent": "onClientRoleChanged", "oldRole": 0, "newRole": 1}

7./(onUserJoined)

{"engineEvent": "onUserJoined", "uid": "123", "elapsed": 0}

8./(onUserOffline)

{"engineEvent": "onUserOffline", "uid": "123", "reason": 0}

9.(onConnectionStateChanged)

{"engineEvent": "onConnectionStateChanged", "state": 0, "reason": 0}

10.(onNetworkTypeChanged)

{"engineEvent": "onNetworkTypeChanged", "type": 0}
  1. SDK 10 (onConnectionLost)
{"engineEvent": "onConnectionLost"}

12.Token (onTokenPrivilegeWillExpire)

{"engineEvent": "onTokenPrivilegeWillExpire", "token": token}

13.Token (onRequestToken)

{"engineEvent": "onRequestToken"}

14.(onAudioVolumeIndication)

{"engineEvent": "onAudioVolumeIndication", "totalVolume": 0, "speakers": speakersArr}

15.(onActiveSpeaker)

{"engineEvent": "onActiveSpeaker", "speakerUid": "123"}

16.(onFirstLocalAudioFrame)

{"engineEvent": "onFirstLocalAudioFrame", "elapsed": 0}

17.(onFirstLocalVideoFrame)

{"engineEvent": "onFirstLocalVideoFrame", "width": 480, "height": 640, "elapsed": 0}

18.(onRemoteAudioStateChanged)

{"engineEvent": "onRemoteAudioStateChanged", "uid": "123", "state": 0, "reason": 0, "elapsed": 0}

19.(onLocalAudioStateChanged)

{"engineEvent": "onLocalAudioStateChanged", "state": 0, "error": 0}

20.(onFirstRemoteVideoFrame)

{"engineEvent": "onFirstRemoteVideoFrame", "uid": "123", "width": 480, "height": 640, "elapsed": 0}

21.(onAudioPublishStateChanged)

{"engineEvent": "onAudioPublishStateChanged", "channel": "909090", "oldState": 0, "newState": 1, "elapseSinceLastState": 0}

22.(onVideoPublishStateChanged)

{"engineEvent": "onVideoPublishStateChanged", "channel": "909090", "oldState": 0, "newState": 1, "elapseSinceLastState": 0}

23.(onAudioSubscribeStateChanged)

{"engineEvent": "onAudioSubscribeStateChanged", "channel": "909090", "oldState": 0, "newState": 1, "elapseSinceLastState": 0}

24.(onVideoSubscribeStateChanged)

{"engineEvent": "onVideoSubscribeStateChanged", "channel": "909090", "oldState": 0, "newState": 1, "elapseSinceLastState": 0}

25.(onVideoSizeChanged)

{"engineEvent": "onVideoSizeChanged", "uid": "123", "width": 480, "height": 640, "rotation": 0}

26.(onRemoteVideoStateChanged)

{"engineEvent": "onRemoteVideoStateChanged", "uid": "123", "state": 0, "reason": 0, "elapsed": 0}

27.(onLocalVideoStateChanged)

{"engineEvent": "onLocalVideoStateChanged", "state": 0, "error": 0}

28.(onRemoteAudioStats)

{"engineEvent": "onRemoteAudioStats", "uid": "123", "quality": 0, "networkTransportDelay": 0, "jitterBufferDelay": 0, "audioLossRate": 0, "numChannels": 0, "receivedSampleRate": 0, "receivedBitrate": 0, "totalFrozenTime": 0, "frozenRate": 0}
  1. (onRtcStats)
{"engineEvent": "onRtcStats", "duration": 0, "txBytes": 0, "rxBytes": 0, "txAudioBytes": 0, "txVideoBytes": 0,
 "rxAudioBytes": 0, "rxVideoBytes": 0, "txKBitrate": 0, "rxKBitrate": 0, "txAudioKBitrate": 0, "rxAudioKBitrate": 0, "txVideoKBitrate": 0, "rxVideoKBitrate": 0, "lastmileDelay": 0, "txPacketLossRate": 0, "rxPacketLossRate": 0, "userCount": 0, "cpuAppUsage": 0, "cpuTotalUsage": 0.0, "gatewayRtt": 0, "memoryAppUsageRatio": 0.0, "memoryTotalUsageRatio": 0.0, "memoryAppUsageInKbytes": 0}
  1. last mile (onNetworkQuality)
{"engineEvent": "onNetworkQuality", "uid": "123", "txQuality": 0, "rxQuality": 0}

31.(onLocalVideoStats)

{"engineEvent": "onLocalVideoStats", "sentBitrate": 0, "sentFrameRate": 0, "encoderOutputFrameRate": 0, "rendererOutputFrameRate": 0, "sentTargetBitrate": 0, "sentTargetFrameRate": 0, "qualityAdaptIndication": 0, "encodedBitrate": 0, "encodedFrameWidth": 640, "encodedFrameHeight": 480, "encodedFrameCount": 0, "codecType": 0}

32.(onLocalAudioStats)

{"engineEvent": "onLocalAudioStats", "numChannels": 0, "sentSampleRate": 0, "sentBitrate": 0}

33.(onRemoteVideoStats)

{"engineEvent": "onRemoteVideoStats", "uid": "123", "delay": 0, "width": 480, "height": 640, "receivedBitrate": 0, "decoderOutputFrameRate": 0, "rendererOutputFrameRate": 0, "packetLossRate": 0, "rxStreamType": 0, "totalFrozenTime": 0, "frozenRate": 0}

34.(onAudioMixingFinished)

{"engineEvent": "onAudioMixingFinished"}

35.(onAudioEffectFinished)

{"engineEvent": "onAudioEffectFinished", "soundId": 6060}

36.RTMP (onRtmpStreamingStateChanged)

{"engineEvent": "onRtmpStreamingStateChanged", "url": "", "state": 0, "errorCode": 0}

37.RTMP (onRtmpStreamingEvent)

{"engineEvent": "onRtmpStreamingEvent", "url": "", "eventCode": 0}

38.(onStreamPublished)

{"engineEvent": "onStreamPublished", "url": "", "errorCode": 0}

39.(onStreamUnpublished)

{"engineEvent": "onStreamUnpublished", "url": ""}

40.(onTranscodingUpdated)

{"engineEvent": "onTranscodingUpdated"}

41.(onStreamInjectedStatus)

{"engineEvent": "onStreamInjectedStatus", "url": "", "uid": "123", "status": 0}

42.(onRemoteSubscribeFallbackToAudioOnly)

{"engineEvent": "onRemoteSubscribeFallbackToAudioOnly", "isFallbackOrRecover": true, "uid": "123"}

43.(onAudioRouteChanged)

{"engineEvent": "onAudioRouteChanged", "routing": 0}

44.(onFacePositionChanged)

{"engineEvent": "onFacePositionChanged", "width": 640, "height": 480, "faces": facesArr}

45.(onChannelMediaRelayStateChanged)

{"engineEvent": "onChannelMediaRelayStateChanged", "state": 0, "error": 0}

46.(onChannelMediaRelayEvent)

{"engineEvent": "onChannelMediaRelayEvent", "event": 0}

47.(onFirstRemoteVideoDecoded)

{"engineEvent": "onFirstRemoteVideoDecoded", "uid": "123", "width": 640.0, "height": 480.0, "elapsed": 0}

48.(onFirstRemoteAudioFrame)

{"engineEvent": "onFirstRemoteAudioFrame", "uid": "123", "elapsed": 0}

49.(onFirstRemoteAudioDecoded)

{"engineEvent": "onFirstRemoteAudioDecoded", "uid": "123", "elapsed": 0}

50./(onUserMuteVideo)

{"engineEvent": "onUserMuteVideo", "uid": "123", "muted": true}

51.(onUserMuteAudio)

{"engineEvent": "onUserMuteAudio", "uid": "123", "muted": true}

52./(onUserEnableVideo)

{"engineEvent": "onUserEnableVideo", "uid": "123", "enabled": true}

53./(onUserEnableLocalVideo)

{"engineEvent": "onUserEnableLocalVideo", "uid": "123", "enabled": true}

54.(onMicrophoneEnabled)

{"engineEvent": "onMicrophoneEnabled", "enabled": true}

55.(onConnectionInterrupted)

{"engineEvent": "onConnectionInterrupted"}

56.(onConnectionBanned)

{"engineEvent": "onConnectionBanned"}

57.(onRemoteAudioTransportStats)

{"engineEvent": "onRemoteAudioTransportStats", "uid": "123", "delay": 0, "lost": 0, "rxKBitRate": 0}

58.(onRemoteVideoTransportStats)

{"engineEvent": "onRemoteVideoTransportStats", "uid": "123", "delay": 0, "lost": 0, "rxKBitRate": 0}

59.(onAudioQuality)

{"engineEvent": "onAudioQuality", "uid": "123", "quality": 0, "delay": 0, "lost": 0}

60.(onCameraReady)

{"engineEvent": "onCameraReady"}

61.(onVideoStopped)

{"engineEvent": "onVideoStopped"}
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,074,790
Vue (67,210
String (42,270
Sdk (32,760
Volume (8,304
Webrtc (4,346
Rtmp (1,362
Uni (35
Anyrtc (11