Skip to content

Commit 9d83640

Browse files
authored
[VID-451] expose fps and decode/encode time (#1086)
combine publisher and subscriber rtc stats
1 parent 4633e73 commit 9d83640

File tree

7 files changed

+1492
-499
lines changed

7 files changed

+1492
-499
lines changed

protobuf/video/sfu/models/models.pb.go

Lines changed: 408 additions & 193 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protobuf/video/sfu/models/models.proto

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,4 +399,21 @@ enum AppleThermalState {
399399
APPLE_THERMAL_STATE_FAIR = 2;
400400
APPLE_THERMAL_STATE_SERIOUS = 3;
401401
APPLE_THERMAL_STATE_CRITICAL = 4;
402-
}
402+
}
403+
404+
// EncodeStats represents the encoding statistics for a track.
405+
message EncodeStats {
406+
TrackType track_type = 1;
407+
Codec codec = 2;
408+
int64 avg_frame_encode_time_ms = 3;
409+
int64 avg_fps = 4;
410+
}
411+
412+
// DecodeStats represents the decoding statistics for a track.
413+
message DecodeStats {
414+
TrackType track_type = 1;
415+
Codec codec = 2;
416+
int64 avg_frame_decode_time_ms = 3;
417+
int64 avg_fps = 4;
418+
VideoDimension video_dimension = 5;
419+
}

0 commit comments

Comments
 (0)