Skip to content

Commit a83e98f

Browse files
authored
Merge pull request #1598 from fippo/powerefficient
change-codecs: show powerEfficient usage
2 parents 6af9706 + fe0fe1f commit a83e98f

File tree

1 file changed

+7
-1
lines changed
  • src/content/peerconnection/change-codecs/js

1 file changed

+7
-1
lines changed

src/content/peerconnection/change-codecs/js/main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,13 @@ async function onCreateAnswerSuccess(desc) {
215215
const codec = stats.get(stat.codecId);
216216
document.getElementById('actualCodec').innerText = 'Using ' + codec.mimeType +
217217
(codec.sdpFmtpLine ? ' ' + codec.sdpFmtpLine + ' ' : '') +
218-
', payloadType=' + codec.payloadType + '. Encoder: ' + stat.encoderImplementation;
218+
', payloadType=' + codec.payloadType + '.';
219+
if (stat.encoderImplementation) {
220+
document.getElementById('actualCodec').innerText += ' Encoder: "' + stat.encoderImplementation + '".';
221+
}
222+
if (stat.powerEfficientEncoder !== undefined) {
223+
document.getElementById('actualCodec').innerText += ' Power efficient: ' + stat.powerEfficientEncoder + '.';
224+
}
219225
});
220226
}, 1000);
221227
} catch (e) {

0 commit comments

Comments
 (0)