Re: [webrtc-stats] RTCVideoSourceStats.framesPerSecond should be a double (#540)

I think the intention of the metric to return the latest Or current FPS for frames received in the last second. 

Much like round trip time, which also returns the latest RTT measurements. 

So this is invariant to how often you call getStats, it would always return the current value. 

Otherwise, I'd recommend that we use  the delta of framesSent and/or framesDecoded between two getStats API calls to calculate that interval's FPS. 

-- 
GitHub Notification of comment by vr000m
Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/540#issuecomment-1022017571 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 26 January 2022 09:28:32 UTC