Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get what codec am I using in WebRTC?

Tags:

webrtc

codec

How to get information about what codec am I using in WebRTC? And how to change it to another.

With default settings I get bad quality audio, like it is from a speaker.

like image 596
Kirill Alexeev Avatar asked Mar 14 '23 03:03

Kirill Alexeev


1 Answers

the getStats API provides that information. See this sample or alternatively chrome's chrome://webrtc-internals page.

apprtc has an information window that shows the codec used when you press 'i' while in a call.

The default is opus which should give you 'hd quality'

like image 166
Philipp Hancke Avatar answered Mar 15 '23 15:03

Philipp Hancke