selkies-project / selkies-gstreamer

Open-Source Low-Latency Linux WebRTC HTML5 Remote Desktop and 3D Graphics / Game Streaming Platform with GStreamer
Mozilla Public License 2.0
237 stars 42 forks source link

Logging webrtc statistics on host received over datachannel #141

Closed PMohanJ closed 1 month ago

PMohanJ commented 1 month ago

This is a DRAFT: Do not merge it yet.

The reports are being sent over datachannel and being dumped to a CSV file at /tmp/stats.csv location. Due to duel webrtc connection the audio stats aren't included yet as the file size keeps increasing rapidly even with just video webrtc api stats.

139

ehfd commented 1 month ago

File size is probably expected.

ehfd commented 1 month ago

Closes #139

PMohanJ commented 1 month ago

So for audio stats, should they be in a separate csv file?

ehfd commented 1 month ago

That would be desirable.

PMohanJ commented 1 month ago

The changes include logging of webrtc statistics of both audio and video reports. Also the logging of stats is per session based, meaning that for every new session new stats files are generated. This is done to maintain the structure of csv file as different browsers provide statistics in different order.