diff --git a/ios/RCTWebRTC/WebRTCModule+Transceivers.m b/ios/RCTWebRTC/WebRTCModule+Transceivers.m index 09a874e08..7b9ae2bd1 100644 --- a/ios/RCTWebRTC/WebRTCModule+Transceivers.m +++ b/ios/RCTWebRTC/WebRTCModule+Transceivers.m @@ -248,7 +248,12 @@ @implementation WebRTCModule (Transceivers) } } - [transceiver setCodecPreferences:codecsToSet]; + NSError *error; + [transceiver setCodecPreferences:codecsToSet error:&error]; + + if (error) { + RTCLogError(@"transceiverSetCodecPreferences() Could not set preferences: %@", error); + } return nil; }