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

Question: How to get peer connection metrics (RTCStatsReport)? #534

Open
yulian948 opened this issue Oct 27, 2022 · 4 comments
Open

Question: How to get peer connection metrics (RTCStatsReport)? #534

yulian948 opened this issue Oct 27, 2022 · 4 comments
Labels
feature-request New feature or request

Comments

@yulian948
Copy link

In https://github.com/aws/amazon-chime-sdk-js there is a ClientMetricReport class, which contains RTCStatsReport. Is there anything similar in the Chime iOS SDK?
Currently, I only see the MetricsObserver::metricsDidReceive method, which returns a dictionary of metrics but is limited to the metrics defined in ObservableMetric enum.

@alnlau
Copy link
Contributor

alnlau commented Oct 27, 2022

Hello,

Currently we only have the metrics defined in ObservableMetric. I'll mark this as a feature request for additional metrics similar to RTCStatsReport in amazon-chime-sdk-js. Is there a particular metric that you were looking for?

@alnlau alnlau added the feature-request New feature or request label Oct 27, 2022
@yulian948
Copy link
Author

Thanks for your answer @alnlau! It would be awesome to have access to RTCStatsReport.
No particular metric, I just want to have more of them available, the same as I have when using WebRTC.

In the meantime, while looking through the code, I found ClientMetricsCollector protocol which is implemented by DefaultClientMetricsCollector class. There is a comment in that protocol:

... takes the raw metrics from the native client ...

Does it mean that I can implement that protocol in my app and receive more metrics than currently available through ObservableMetric enum?

@yulian948
Copy link
Author

Answering my previous question:
It is not possible to implement ClientMetricsCollector protocol and use own implementation instead of DefaultClientMetricsCollector, because it is not possible to replace it in DefaultMeetingSession.swift.

@Kishimotovn
Copy link

Bump this as we need something similar to audioDownstreamJitterMs , audioUpstreamJitterMs and audioUpstreamRoundTripTimeMs which are all implemented in the js sdk

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

No branches or pull requests

3 participants