diff --git a/CHANGELOG b/CHANGELOG index 0d36dadb7..60c128af3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ ## THE CHANGELOG +#### 2.9.0-alpha.2 + - fix ios dictionary stringValue type cast + #### 2.9.0-alpha.1 - fix typo: rename `methodisSpeakerphoneEnabled` to `isSpeakerphoneEnabled` - events deprecated & instead: diff --git a/ios/RCTAgora/RCTAgora.m b/ios/RCTAgora/RCTAgora.m index 0b7c84d27..4410f8913 100644 --- a/ios/RCTAgora/RCTAgora.m +++ b/ios/RCTAgora/RCTAgora.m @@ -228,9 +228,9 @@ - (NSDictionary *)constantsToExport { } } if (options[@"secret"] != nil) { - [self.rtcEngine setEncryptionSecret:[options[@"secret"] stringValue]]; + [self.rtcEngine setEncryptionSecret:[options[@"secret"]]]; if (options[@"secretMode"] != nil) { - [self.rtcEngine setEncryptionMode:[options[@"secretMode"] stringValue]]; + [self.rtcEngine setEncryptionMode:[options[@"secretMode"]]]; } } @@ -1374,7 +1374,7 @@ - (NSDictionary *)constantsToExport { config.audioBitrate = [options[@"config"][@"audioBitrate"] integerValue]; config.audioChannels = [options[@"config"][@"audioChannels"] integerValue]; - NSInteger res = [self.rtcEngine addInjectStreamUrl:[options[@"url"] stringValue] + NSInteger res = [self.rtcEngine addInjectStreamUrl:[options[@"url"]] config:config]; if (res == 0) { resolve(nil); @@ -1630,7 +1630,7 @@ - (NSDictionary *)constantsToExport { transcoding.transcodingUsers = transcodingUsers; } if ([options objectForKey:@"transcodingExtraInfo"]) { - transcoding.transcodingExtraInfo = [options[@"transcodingExtraInfo"] stringValue]; + transcoding.transcodingExtraInfo = [options[@"transcodingExtraInfo"]]; } NSInteger res = [self.rtcEngine setLiveTranscoding:transcoding];