How to filter WebRTC codecs in the native iOS app

326 Views Asked by At

Is there any way to set audio/video codec preferences for RTP sender in iOS WebRTC lib before SDP creation?

RTCRtpSender -> parameters -> codecs array is empty until the peer connection ice gathering state is complete, but this state is only reported via callback after the SDP creation.

Using M91 WebRTC.

1

There are 1 best solutions below

1
On

In theory the transceiver.setCodecPreferences API can do that. It does not seem to be implemented in the iOS SDK though.