How to enable chrome:webrtc-internals in electron to download webrtc getstats files

Solution 1:

The good approach would be sending the stats by calling getStats API on peerconnection. This way you can avoid to opening the chrome://webrtc-internals and sending it after the call terminates.

More information on getStats API can be found here - https://www.w3.org/TR/webrtc-stats/

You can poll the stats every 10-15 seconds and send it to your back-end.