|
@@ -228,9 +228,9 @@ RCT_EXPORT_METHOD(init:(NSDictionary *)options) {
|
228
|
228
|
}
|
229
|
229
|
}
|
230
|
230
|
if (options[@"secret"] != nil) {
|
231
|
|
- [self.rtcEngine setEncryptionSecret:[options[@"secret"] stringValue]];
|
|
231
|
+ [self.rtcEngine setEncryptionSecret:[options[@"secret"]]];
|
232
|
232
|
if (options[@"secretMode"] != nil) {
|
233
|
|
- [self.rtcEngine setEncryptionMode:[options[@"secretMode"] stringValue]];
|
|
233
|
+ [self.rtcEngine setEncryptionMode:[options[@"secretMode"]]];
|
234
|
234
|
}
|
235
|
235
|
}
|
236
|
236
|
|
|
@@ -1374,7 +1374,7 @@ RCT_EXPORT_METHOD(addInjectStreamUrl
|
1374
|
1374
|
config.audioBitrate = [options[@"config"][@"audioBitrate"] integerValue];
|
1375
|
1375
|
config.audioChannels = [options[@"config"][@"audioChannels"] integerValue];
|
1376
|
1376
|
|
1377
|
|
- NSInteger res = [self.rtcEngine addInjectStreamUrl:[options[@"url"] stringValue]
|
|
1377
|
+ NSInteger res = [self.rtcEngine addInjectStreamUrl:[options[@"url"]]
|
1378
|
1378
|
config:config];
|
1379
|
1379
|
if (res == 0) {
|
1380
|
1380
|
resolve(nil);
|
|
@@ -1630,7 +1630,7 @@ RCT_EXPORT_METHOD(setLiveTranscoding:(NSDictionary *)options
|
1630
|
1630
|
transcoding.transcodingUsers = transcodingUsers;
|
1631
|
1631
|
}
|
1632
|
1632
|
if ([options objectForKey:@"transcodingExtraInfo"]) {
|
1633
|
|
- transcoding.transcodingExtraInfo = [options[@"transcodingExtraInfo"] stringValue];
|
|
1633
|
+ transcoding.transcodingExtraInfo = [options[@"transcodingExtraInfo"]];
|
1634
|
1634
|
}
|
1635
|
1635
|
|
1636
|
1636
|
NSInteger res = [self.rtcEngine setLiveTranscoding:transcoding];
|