Skip to content

feat: on stats parsed callback #28

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

Merged
merged 5 commits into from
Dec 3, 2024
Merged

feat: on stats parsed callback #28

merged 5 commits into from
Dec 3, 2024

Conversation

panov-va
Copy link
Collaborator

No description provided.

@vlprojects-bot
Copy link
Contributor

🎉 This PR is included in version 1.13.0-tt-212-on-parsed-stats.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@@ -133,7 +140,7 @@ class WebRTCIssueDetector {
this.statsReporter.stopReporting();
}

public handleNewPeerConnection(pc: RTCPeerConnection): void {
public handleNewPeerConnection({ pc, id }: { pc: RTCPeerConnection, id?: string }): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend not adding a new id property here, since RTCPeerConnection identifier is not in the spec and it may be confusing for those who do not use it.

The problem could be solved with a simple decorator with id property around RTCPeerConnection on a client side.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed contract break, changes are now backwards compatible

@vlprojects-bot
Copy link
Contributor

🎉 This PR is included in version 1.13.0-tt-212-on-parsed-stats.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@panov-va panov-va merged commit 4646ede into master Dec 3, 2024
3 checks passed
@panov-va panov-va deleted the tt-212-on-parsed-stats branch December 3, 2024 04:25
@vlprojects-bot
Copy link
Contributor

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants