Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

[dev/flutter2] RtcEngineEventHandler: rtcStats not Callback for flutter web

Open quangvinhvux opened this issue 4 years ago • 5 comments

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

quangvinhvux avatar Sep 21 '21 12:09 quangvinhvux

You can only get RtcStats in the LeaveChannel event on Web.

LichKing-2234 avatar Sep 22 '21 02:09 LichKing-2234

Because the RtcStats event not support on Web.

LichKing-2234 avatar Sep 22 '21 02:09 LichKing-2234

You can only get RtcStats in the LeaveChannel event on Web.

so do we have anyway to can get duration of the video call during the call ?

quangvinhvux avatar Sep 22 '21 03:09 quangvinhvux

The best way is to use your server.

LichKing-2234 avatar Sep 22 '21 03:09 LichKing-2234

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 ?

quangvinhvux avatar Sep 22 '21 03:09 quangvinhvux

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.

littleGnAl avatar Nov 14 '23 09:11 littleGnAl

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.

github-actions[bot] avatar Nov 28 '23 10:11 github-actions[bot]

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.

github-actions[bot] avatar Dec 05 '23 11:12 github-actions[bot]