* added option to use rtctstats from lib-jitsi-meet
* Addressed review feedback:
- moved rtcstats function into JitsiMeetJS.rtcstats
- changed from callbacks to events
* moved rtcstatsUseLibJitsi from analytics to testing
* fixed linting errors
* use ljm rtcstats
* remove debug logs, additional dependencies
* fix ts and dependency
* address code review
---------
Co-authored-by: Nils Ohlmeier <github@ohlmeier.org>
* fix: Reinitialize rtcstats when the config changes
The mobile app does not exit after the user has left the meeting. This
means we need to re-initialize rtcstats every time a user joins a call to
be sure we are using the correct deployment information.
* Wrap the sendStats method.
* Uses lighter syntax.
* Fixes the linter and adds a warning.
* Bind the `statsEntry` callback to `this`.
* Removes obsolette comment.
* feat(rtc-stats): send camera off timestamp to service
* code review
* improve error handling
* improve rtcstats middleware and complete typescript types