rtcstats icon indicating copy to clipboard operation
rtcstats copied to clipboard

Add callback to inject own statistic properties to the statistics

Open JanFellner opened this issue 4 years ago • 0 comments

To be able to add own properties to the statistics i would need a callback that is called after getStats before the statistics are handled. With this approach i can inject own properties from the signalling layer e.g. how many simulcast layers are currently available or which layers have been chosen.

Current implementation i am using, but i am open to any approach offering the same: https://github.com/JanFellner/rtcstats/tree/feature/enhanced-usage

Changes: https://github.com/JanFellner/rtcstats/commit/2b4caf937f54b589a46f8e5c3f8191bfeee1a5f4

JanFellner avatar Aug 06 '20 13:08 JanFellner