Reputation: 21
we are trying to download the logs from chrome://webrtc-internals, The approach is open chrome://webrtc-internals in electron background when the call is accepted and download stats file when call is ended in electron app. Whats the approach?
Upvotes: 0
Views: 2526
Reputation: 662
you can also download it by
window.open("chrome://webrtc-internals")
opening webrtc internals
Upvotes: 0
Reputation: 342
You can upgrade Electron to above or equal to [email protected].
Upvotes: 0
Reputation: 2632
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.
Upvotes: 1