Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add callback to inject own statistic properties to the statistics #105

Open
JanFellner opened this issue Aug 6, 2020 · 0 comments
Open

Comments

@JanFellner
Copy link
Contributor

JanFellner commented Aug 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant