From 95984a3eb383788a29660956e033149ad5afab99 Mon Sep 17 00:00:00 2001 From: davidliu Date: Wed, 1 Nov 2023 15:37:34 +0900 Subject: [PATCH] ios: more setCodecPreferences fixes --- ios/RCTWebRTC/WebRTCModule+Transceivers.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; }