Agora-Flutter-SDK
Agora-Flutter-SDK copied to clipboard
[dev/flutter2] RtcEngineEventHandler: rtcStats not Callback for flutter web
Describe the bug rtcStats not call back in every two seconds. I already added event for rtcStats like this. _addListeners() { _engine.setEventHandler(RtcEngineEventHandler( rtcStats: (stats){ log('rtcStats ${stats.duration}'); }, joinChannelSuccess: (channel, uid, elapsed) { log('joinChannelSuccess ${channel} ${uid} ${elapsed}'); setState(() { isJoined = true; }); } )); } Thanks you for your help, I very appreciate your contribution
You can only get RtcStats in the LeaveChannel event on Web.
Because the RtcStats event not support on Web.
You can only get RtcStats in the
LeaveChannelevent on Web.
so do we have anyway to can get duration of the video call during the call ?
The best way is to use your server.
The best way is to use your server.
I do not found any API to get statis of the call for server side. how can we do that ?
The web support for agora_rtc_engine 6.x has landed in the main branch, If you still face issues, please try the latest code in main branch to see if it works or not.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
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.