From b375bb37fb434d4abe3cd1aa99bb787ab6d03ea4 Mon Sep 17 00:00:00 2001 From: matrixbirds Date: Tue, 24 Sep 2019 11:40:44 +0800 Subject: [PATCH] chore. update changelog --- CHANGELOG | 3 +++ ios/RCTAgora/RCTAgora.m | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) 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];