-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fix dynamic logic for ICE stats #239
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -234,11 +234,11 @@ Future _logConnectionStats(Stopwatch webrtcDialSW, RTCPeerConnection peerConnect | |||||||||||||||||
if (stat.type == 'candidate-pair' && stat.values['nominated']) { | ||||||||||||||||||
// Use 'lastPacketSentTimestamp' on candidate pair to estimate when the | ||||||||||||||||||
// pair was nominated. | ||||||||||||||||||
final double lpst = stat.values['lastPacketSentTimestamp']; | ||||||||||||||||||
final double lpst = stat.values['lastPacketSentTimestamp'] ?? 0; | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nit] not set on the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah I think I'm fine with the |
||||||||||||||||||
final DateTime nominatedTime = DateTime.fromMillisecondsSinceEpoch(lpst.toInt()); | ||||||||||||||||||
|
||||||||||||||||||
final String lcid = stat.values['localCandidateId']; | ||||||||||||||||||
final String rcid = stat.values['remoteCandidateId']; | ||||||||||||||||||
final lcid = stat.values['localCandidateId']; | ||||||||||||||||||
final rcid = stat.values['remoteCandidateId']; | ||||||||||||||||||
Comment on lines
+240
to
+241
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are you comfortable with these being instantiated as if not, you could do like above:
Suggested change
or
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting... they seem to string-interpolate just fine as dynamics; is it preferred for them to be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not familiar with Dart, but was there a reason to remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are not in fact |
||||||||||||||||||
for (var innerStat in stats) { | ||||||||||||||||||
if (innerStat.id == lcid) { | ||||||||||||||||||
final type = innerStat.values['candidateType']; | ||||||||||||||||||
|
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.
We were getting CI failures due to a broken link; given the comment above, I think this should be
true
.