jitsi / jitsi-meet-flutter-sdk

Jitsi Meet plugin for Flutter
Apache License 2.0
44 stars 33 forks source link

How can i get coonection stats? #51

Open shabanov-krl opened 8 months ago

shabanov-krl commented 8 months ago

on web version in devtools i see websocket with bitrate and other stats

how can i get stats from my flutter app?

saghul commented 8 months ago

There is no API for it, but there is UI. Long press on a participant tile and select connection information.

shabanov-krl commented 8 months ago

@saghul

There is no API for it, but there is UI. Long press on a participant tile and select connection information.

i want to send stats to backend. can i do it any way? i know about videobridge statistics but i need stats of specific connection.

saghul commented 8 months ago

It's not currently possible. The mobile SDKs are high level SDKs and don't provide access to that low level information.

Can you provide more details on what you want to do? If you want to monitor call statistics, have you looked at rtcstats? It works out of the box.

shabanov-krl commented 8 months ago

have you looked at rtcstats?

can u provide link to documentation please? where can i see this statistic?

saghul commented 8 months ago

This is the library, which is a good starting point: https://github.com/jitsi/rtcstats

Jitsi Meet supports it out of the box, so all you need is to configure the server in config.js and the stats will be sent there.

ilyichumakov commented 8 months ago

Hello, @saghul, thanks for answer! Just to be sure what we exactly need to do:

  1. Install, configure and run https://github.com/jitsi/rtcstats-server on our backend (not jitsi server)
  2. Set rtcstatsEndpoint in <our-server>-config.js to deployed rtcstats-server (How to configure auth then?)
  3. Read stats by any connection from rtcstats-server e.g. via https://github.com/jitsi/rtcstats package Right?
saghul commented 8 months ago

Pretty much yes!

ilyichumakov commented 8 months ago

Thanks a lot! But I'm facing the trouble that rtcstats-server requires aws credentials. I don't want to upload anything at aws, is there an option to store everything locally?

saghul commented 8 months ago

Alas no, since it's built on top of redshift.