Andrii Tiutiunnyk
Andrii Tiutiunnyk

Reputation: 41

How to filter WebRTC codecs in the native iOS app

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.

Upvotes: 0

Views: 350

Answers (1)

Philipp Hancke
Philipp Hancke

Reputation: 17305

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

Upvotes: 1

Related Questions