You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go and grab the candidate pair from the SCTP transport.
use that candidate pair to get stats on it
What did you expect?
an ok result and some stats
What happened?
a non ok response and no stats
when you print out what c.statsID is from a candidate pair gathered from pc.SCTP().Transport().ICETransport().GetSelectedCandidatePair() you get no statsID
using this blank statsID results in obviously no data retrieved from the stats report.
However... even if I go and remake the candidate pair stats ID I still get no results...
func (r StatsReport) GetICECandidatePairStats(c *ICECandidatePair) (ICECandidatePairStats, bool) {
//statsID := c.statsID
statsID := newICECandidatePairStatsID(c.Local.statsID, c.Remote.statsID)
fmt.Printf("A-B: %+v\n", statsID)
stats, ok := r[statsID]
if !ok {
fmt.Printf("Stats ID doesnt exist in Stats\n")
return ICECandidatePairStats{}, false
}
candidateStats, ok := stats.(ICECandidatePairStats)
if !ok {
return ICECandidatePairStats{}, false
}
return candidateStats, true
}
Something isn't right... I know its in the StatsReport
Other than adding some debugging to stats_go.go I haven't gone much further with this yet.
theres two issues here.... the statsID in a candidatePair doesn't seem to get stored properly.
When you do have a statsID you still can't retrieve the stat
The text was updated successfully, but these errors were encountered:
stats := pc.GetStats()
for _, report := range stats {
if candidatePairStats, ok := report.(webrtc.ICECandidatePairStats); ok {
// Check if this candidate pair is the selected one
// if candidatePairStats.Nominated {
fmt.Printf("Candidate Pair %+v\n", candidatePairStats)
// }
}
}
I end up with stats that don't change... and have no BytesSent/Received etc.
Your environment.
What did you do?
go and grab the candidate pair from the SCTP transport.
use that candidate pair to get stats on it
What did you expect?
an ok result and some stats
What happened?
a non ok response and no stats
when you print out what c.statsID is from a candidate pair gathered from
pc.SCTP().Transport().ICETransport().GetSelectedCandidatePair()
you get no statsIDusing this blank statsID results in obviously no data retrieved from the stats report.
However... even if I go and remake the candidate pair stats ID I still get no results...
Something isn't right... I know its in the StatsReport
Other than adding some debugging to stats_go.go I haven't gone much further with this yet.
theres two issues here.... the statsID in a candidatePair doesn't seem to get stored properly.
When you do have a statsID you still can't retrieve the stat
The text was updated successfully, but these errors were encountered: