-
Notifications
You must be signed in to change notification settings - Fork 65
VIDCS-4026 sender stats #237
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good!
* to capture information about sender stats as follows | ||
*/ | ||
func subscriber(_ subscriber: OTSubscriberKit, videoNetworkStatsUpdated stats: OTSubscriberKitVideoNetworkStats) { | ||
guard let senderStats = stats.senderStats else { return } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit. If there’s another iteration in this PR, it might be worth adding a comment here noting that stats could still be nil due to network issues or latency, even if the publisher’s sender stats track is enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@aos-svg Thanks for this contribution. We cannot merge this in until the feature is our as part of 2.32.0 which should happen early next quarter (Q4). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but the stats.senderStats
is always null and I feel that may be better to receive the stats in a background thread but that is an SDK story.
https://jira.vonage.com/browse/VIDCS-4026
Added a sample app for users to interact with sender stats api. The environment i had to use was local dev hence the local podspec etc. ( changes werent merged yet )