Skip to content

Commit 30f1cf3

Browse files
committed
ios: fix compile
1 parent 1bde378 commit 30f1cf3

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

ios/RCTWebRTC/WebRTCModule+RTCFrameCryptor.m

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -460,21 +460,21 @@ - (nullable RTCFrameCryptorKeyProvider *)getKeyProviderForId:(NSString *)keyProv
460460
resolve(@{@"result" : @"success"});
461461
}
462462

463-
- (NSString *)stringFromState:(FrameCryptionState)state {
463+
- (NSString *)stringFromState:(RTCFrameCryptorState)state {
464464
switch (state) {
465-
case FrameCryptionStateNew:
465+
case RTCFrameCryptorStateNew:
466466
return @"new";
467-
case FrameCryptionStateOk:
467+
case RTCFrameCryptorStateOk:
468468
return @"ok";
469-
case FrameCryptionStateEncryptionFailed:
469+
case RTCFrameCryptorStateEncryptionFailed:
470470
return @"encryptionFailed";
471-
case FrameCryptionStateDecryptionFailed:
471+
case RTCFrameCryptorStateDecryptionFailed:
472472
return @"decryptionFailed";
473-
case FrameCryptionStateMissingKey:
473+
case RTCFrameCryptorStateMissingKey:
474474
return @"missingKey";
475-
case FrameCryptionStateKeyRatcheted:
475+
case RTCFrameCryptorStateKeyRatcheted:
476476
return @"keyRatcheted";
477-
case FrameCryptionStateInternalError:
477+
case RTCFrameCryptorStateInternalError:
478478
return @"internalError";
479479
default:
480480
return @"unknown";
@@ -485,7 +485,7 @@ - (NSString *)stringFromState:(FrameCryptionState)state {
485485

486486
- (void)frameCryptor:(RTC_OBJC_TYPE(RTCFrameCryptor) *)frameCryptor
487487
didStateChangeWithParticipantId:(NSString *)participantId
488-
withState:(FrameCryptionState)stateChanged {
488+
withState:(RTCFrameCryptorState)stateChanged {
489489
id frameCryptorId = objc_getAssociatedObject(frameCryptor, &frameCryptorUUIDKey);
490490

491491
if (![frameCryptorId isKindOfClass:[NSString class]]) {

ios/RCTWebRTC/WebRTCModule.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ - (instancetype)init {
7777
}
7878
RCTLogInfo(@"Using audio processing module: %@", NSStringFromClass([audioProcessingModule class]));
7979
_peerConnectionFactory =
80-
[[RTCPeerConnectionFactory alloc] initWithBypassVoiceProcessing:NO
80+
[[RTCPeerConnectionFactory alloc] initWithAudioDeviceModuleType:RTCAudioDeviceModuleTypeAudioEngine
81+
bypassVoiceProcessing:NO
8182
encoderFactory:encoderFactory
8283
decoderFactory:decoderFactory
8384
audioProcessingModule:audioProcessingModule];

0 commit comments

Comments
 (0)