-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RtcStats "users" always null #10
Comments
Thank you, a quick fix b4b832c, and submitted a new version 0.9.5 to pub to fix this issue. |
Great ! Thanks a lot for your quick fix ! |
By the way, only broadcasters and self will count in 'users'. |
So if there are a Broadcaster and 3 people in the audience, everyone will see "2" viewers ? |
Exactly, see the document about 'users' in RtcStats https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_i_rtc_engine_event_handler_1_1_rtc_stats.html#aed1065e64c0b7e066776f14ca53c877e |
Thanks for the infos ! |
Hi @PRWrl, how do we get the total number of viewers? |
@wheel1992 you can refer to AgoraIO-Community/Agora-Flutter-Quickstart#174 |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue. |
Hi,
I'm trying to get the number of viewers of a Broadcast, is "users" from RtcStats the value that i need ?
If so, it seems to be always null, on the Broadcaster side as well as on the Audience side.
Here is the code i use :
void _addAgoraEventHandlers() { AgoraRtcEngine.onRtcStats = (RtcStats stats) { setState(() { viewers = stats.users; }); }; }
Then i display the viewers number in a Text widget.
Beside that, i encountered 0 problem using Agora it's a great platform !
The text was updated successfully, but these errors were encountered: