File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/content/peerconnection/change-codecs/js Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,13 @@ async function onCreateAnswerSuccess(desc) {
215
215
const codec = stats . get ( stat . codecId ) ;
216
216
document . getElementById ( 'actualCodec' ) . innerText = 'Using ' + codec . mimeType +
217
217
( 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
+ }
219
225
} ) ;
220
226
} , 1000 ) ;
221
227
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments