Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ android {

dependencies {
implementation "com.facebook.react:react-android:+"
api 'io.github.webrtc-sdk:android:125.6422.04'
api 'io.github.webrtc-sdk:android:137.7151.01'
implementation "androidx.core:core:1.7.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ private FrameCryptorAlgorithm frameCryptorAlgorithmFromInt(int algorithm) {
switch (algorithm) {
case 0:
return FrameCryptorAlgorithm.AES_GCM;
case 1:
return FrameCryptorAlgorithm.AES_CBC;
// case 1:
// return FrameCryptorAlgorithm.AES_CBC;
default:
return FrameCryptorAlgorithm.AES_GCM;
}
Expand Down
18 changes: 9 additions & 9 deletions ios/RCTWebRTC/WebRTCModule+RTCFrameCryptor.m
Original file line number Diff line number Diff line change
Expand Up @@ -460,21 +460,21 @@ - (nullable RTCFrameCryptorKeyProvider *)getKeyProviderForId:(NSString *)keyProv
resolve(@{@"result" : @"success"});
}

- (NSString *)stringFromState:(FrameCryptionState)state {
- (NSString *)stringFromState:(RTCFrameCryptorState)state {
switch (state) {
case FrameCryptionStateNew:
case RTCFrameCryptorStateNew:
return @"new";
case FrameCryptionStateOk:
case RTCFrameCryptorStateOk:
return @"ok";
case FrameCryptionStateEncryptionFailed:
case RTCFrameCryptorStateEncryptionFailed:
return @"encryptionFailed";
case FrameCryptionStateDecryptionFailed:
case RTCFrameCryptorStateDecryptionFailed:
return @"decryptionFailed";
case FrameCryptionStateMissingKey:
case RTCFrameCryptorStateMissingKey:
return @"missingKey";
case FrameCryptionStateKeyRatcheted:
case RTCFrameCryptorStateKeyRatcheted:
return @"keyRatcheted";
case FrameCryptionStateInternalError:
case RTCFrameCryptorStateInternalError:
return @"internalError";
default:
return @"unknown";
Expand All @@ -485,7 +485,7 @@ - (NSString *)stringFromState:(FrameCryptionState)state {

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

if (![frameCryptorId isKindOfClass:[NSString class]]) {
Expand Down
3 changes: 2 additions & 1 deletion ios/RCTWebRTC/WebRTCModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ - (instancetype)init {
}
RCTLogInfo(@"Using audio processing module: %@", NSStringFromClass([audioProcessingModule class]));
_peerConnectionFactory =
[[RTCPeerConnectionFactory alloc] initWithBypassVoiceProcessing:NO
[[RTCPeerConnectionFactory alloc] initWithAudioDeviceModuleType:RTCAudioDeviceModuleTypeAudioEngine
bypassVoiceProcessing:NO
encoderFactory:encoderFactory
decoderFactory:decoderFactory
audioProcessingModule:audioProcessingModule];
Expand Down
2 changes: 1 addition & 1 deletion livekit-react-native-webrtc.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Pod::Spec.new do |s|
s.libraries = 'c', 'sqlite3', 'stdc++'
s.framework = 'AudioToolbox','AVFoundation', 'CoreAudio', 'CoreGraphics', 'CoreVideo', 'GLKit', 'VideoToolbox'
s.dependency 'React-Core'
s.dependency 'WebRTC-SDK', '=125.6422.07'
s.dependency 'WebRTC-SDK', '=137.7151.02'

# Swift/Objective-C compatibility
s.pod_target_xcconfig = {
Expand Down
Loading