We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3116e19 commit dfb329bCopy full SHA for dfb329b
src/content/peerconnection/audio/js/test.js
@@ -53,8 +53,15 @@ test('Audio-only sample codec preference', function(t) {
53
.then(function(stats) {
54
// Find the sending audio track.
55
stats.forEach(function(report) {
56
- if (report.type === 'ssrc' && report.googTrackId === trackId) {
57
- t.ok(codecName === report.googCodecName, 'preferring ' + codecName);
+ if (report.type === 'outbound-rtp') {
+ var trackStats = stats.get(report.trackId);
58
+ if (trackStats && trackStats.trackIdentifier === trackId) {
59
+ var codecStats = stats.get(report.codecId);
60
+ if (codecStats) {
61
+ t.ok('audio/' + codecName === codecStats.mimeType,
62
+ 'preferring ' + codecName);
63
+ }
64
65
}
66
});
67
return driver.findElement(webdriver.By.id('hangupButton')).click();
0 commit comments