npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@zhigang1992/react-native-agora

v2.4.0-alpha-4

Published

React Native around the Agora RTC SDKs for Android and iOS agora

Downloads

6

Readme

有任何问题欢迎加入QQ群进行反馈 471757030

for 1.x old version

react-native-agora

npm npm npm npm join chat

Description

The react-native-agora is an open-source wrapper for react-native developers. This SDK takes advantage of React Native and Agora RTC Video SDKs on Android/iOS.

Compatibility

  • react native 0.58.x
  • iOS SDK 8.0+
  • Android 5.0+ x86 arm64 armv7a

quick start

Installation

Install with npm:

npm install --save react-native-agora

Or, install with yarn:

yarn add react-native-agora

Either way, then link with:

react-native link react-native-agora

iOS Installation

中文 English

Android Installation

中文 English

Agora Native API Documentation

Android

中文 English

iOS

中文 English

API DOCS

Events

RtcEngine.on('eventName', (data) => {
    console.log(data);
});

| Name | Description | Platform | | ------------------------- | ------------ | ------- | | warning | warning | all | | error | error | all | | apiCallExecute | capture agora native api call executed| all | | joinChannelSuccess | join channel success | all | | reJoinChannelSuccess | rejoin channel success | all | | leaveChannel | quit channel | all | | clientRoleChanged | when changed client role | all | | userJoined | when user joined channel | all | | userOffline | when user left channel | all | | connectionStateChanged | when connection state changed | all | | connectionLost | when connection lost | all | | tokenPrivilegeWillExpire | when token will expire | all | | requestToken | when token expired | all | | microphoneEnabled | when microphone enabled | all | | audioVolumeIndication | notice audio volume | all | | activeSpeaker | reports which user is the loudest speaker | all | | firstLocalAudioFrame | when the first local audio frame is sent | all | | firstRemoteAudioFrame | when the first remote audio frame is sent | all | | videoStopped | when video stopped | all | | firstLocalVideoFrame | when first local video frame is sent | all | | firstRemoteVideoDecoded | when first remote video is decoded | all | | firstRemoteVideoFrame | when first remote video frame is rendered | all | | userMuteAudio | when a remote user's audio stream is muted/unmuted | all | | userMuteVideo | when a remote user's video stream is muted/unmuted | all | | userEnableVideo | when a remote user enables/disables the video module | all | | userEnableLocalVideo | when a remote user enables/disables the local video capture function | all | | videoSizeChanged | when the video size or rotation information of a specified remote user changes | all| | remoteVideoStateChanged | when the remote video stream state changes | all | | localPublishFallbackToAudioOnly | Occurs when the published video stream falls back to an audio-only stream due to unreliable network conditions or switches back to the video when the network conditions improve. | all | | remoteSubscribeFallbackToAudioOnly | Occurs when the remote video stream falls back to an audio-only stream due to unreliable network conditions or switches back to the video after the network conditions improve. | all | | audioRouteChanged | when the local audio pkayout route changes | all | | cameraReady | when the camera is turned on and ready to capture video | all | | cameraFocusAreaChanged | when the camera focus area is changed | all | | cameraExposureAreaChanged | The camera exposure area has changed | all | | remoteAudioStats | Reports the statistics of the audio stream from each remote user/host. | all | | rtcStats | Reports the statistics of the RtcEngine once every two seconds | all | | lastmileQuality | Reports the last mile network quality of the local user once every two seconds before the user joins the channel. Last mile refers to the connection between the local device and Agora's edge server. After the application calls the enableLastmileTest method, this callback reports once every two seconds the uplink and downlink last mile network conditions of the local user before the user joins the channel. | all | | networkQuality | Reports the last mile network quality of each user in the channel once every two seconds. Last mile refers to the connection between the local device and Agora's edge server. This callback reports once every two seconds the uplink last mile network conditions of each user in the channel. If a channel includes multiple users, then this callback will be triggered as many times. | all | | localVideoStats | Reports the statistics of the uploading local video streams. This callback is triggered once every two seconds for each individual user/host. If there are multiple users/hosts in the channel, this callback is triggered multiple times every 2 seconds. | all | | remoteVideoStats | Reports the statistics of the video stream from each remote user/host. The SDK triggers this callback once every two seconds for each remote user/host. If a channel includes multiple remote users, the SDK triggers this callback as many times. This callback reports statistics more closely linked to the real-user experience of the video transmission quality than the statistics that the onRemoteVideoTransportStats callback reports | all | | audioTransportStatsOfUid | Reports the transport-layer statistics of each remote audio stream. | all | | videoTransportStatsOfUid | Reports the transport-layer statistics of each remote video stream. | all | | localAudioMixingFinish | Occurs when the audio mixing file playback finishes. | all | | remoteAudioMixingStart | Occurs when a remote user starts audio mixing. | ios | | remoteAudioMixingFinish | Occurs when a remote user finishes audio mixing. | ios | | audioEffectFinish | Occurs when the audio effect file playback finishes. | all | | streamPublished | Occurs when a CDN live stream is published. | all | | streamUnpublish | Occurs when CDN live streaming stops. This callback notifies the host that the CDN live stream is unpublished. | all | | transcodingUpdate | Occurs when the publisher's transcoding settings are updated. | all | | streamInjectedStatus | Reports the status of the injected online media stream. | all | | receiveStreamMessage | Occurs when the local user receives a remote data stream within five seconds. | all | | occurStreamMessageError | Occurs when the local user fails to receive a remote data stream. | all | | mediaEngineLoaded | Occurs when the media engine is loaded. | all | | mediaEngineStartCall | Occurs when the media engine starts. | all | | startEchoTestWithInterval | Occurs when you startEchoTestWithInterval | all | | audioMixingStateChanged | Occurs when audio mixing state changed | all | | lastmileProbeTestResult | Reports the last-mile network probe result. | all|

Resources