SB2020
SB2020

Reputation: 21

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

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

Answers (3)

Usama
Usama

Reputation: 662

you can also download it by window.open("chrome://webrtc-internals") opening webrtc internals

Upvotes: 0

QC-cheetah
QC-cheetah

Reputation: 342

You can upgrade Electron to above or equal to [email protected].

Upvotes: 0

Karthik
Karthik

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

Related Questions