/plushcap/analysis/agora/building-a-react-native-video-chat-app-with-in-call-statistics

Building a React Native Video Chat App with In-Call Statistics

What's this blog post about?

In this tutorial, we learn how to add in-call statistics to a React Native quick-start app using the Agora SDK. The aim is to monitor and improve user experience by accessing and displaying metrics such as local video, remote videos, bandwidth, and CPU usage. We update the state with three objects (remoteStats, rtcStats, and localStats) to store different types of statistics. Event listeners are added to access and store the stats in our state. A toggle button is created to hide or unhide the stats. Finally, we display these stats in the UI using conditional rendering based on a Boolean showStats value. This tutorial provides an effective way to enhance user experience by monitoring and reacting to changes in in-call statistics.

Company
Agora

Date published
May 24, 2021

Author(s)
Ekaansh Arora

Word count
617

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.