|
|
|
|
228
|
}
|
228
|
}
|
229
|
}
|
229
|
}
|
230
|
if (options[@"secret"] != nil) {
|
230
|
if (options[@"secret"] != nil) {
|
231
|
- [self.rtcEngine setEncryptionSecret:[options[@"secret"] stringValue]];
|
|
|
|
|
231
|
+ [self.rtcEngine setEncryptionSecret:[options[@"secret"]]];
|
232
|
if (options[@"secretMode"] != nil) {
|
232
|
if (options[@"secretMode"] != nil) {
|
233
|
- [self.rtcEngine setEncryptionMode:[options[@"secretMode"] stringValue]];
|
|
|
|
|
233
|
+ [self.rtcEngine setEncryptionMode:[options[@"secretMode"]]];
|
234
|
}
|
234
|
}
|
235
|
}
|
235
|
}
|
236
|
|
236
|
|
|
|
|
|
851
|
RCT_EXPORT_METHOD(startAudioMixing:(NSDictionary *) options
|
851
|
RCT_EXPORT_METHOD(startAudioMixing:(NSDictionary *) options
|
852
|
resolve:(RCTPromiseResolveBlock)resolve
|
852
|
resolve:(RCTPromiseResolveBlock)resolve
|
853
|
reject:(RCTPromiseRejectBlock)reject) {
|
853
|
reject:(RCTPromiseRejectBlock)reject) {
|
854
|
- NSInteger res = [self.rtcEngine startAudioMixing:[options[@"filepath"] stringValue]
|
|
|
|
|
854
|
+ NSInteger res = [self.rtcEngine startAudioMixing:[options[@"filepath"]]
|
855
|
loopback:[options[@"loopback"] boolValue]
|
855
|
loopback:[options[@"loopback"] boolValue]
|
856
|
replace:[options[@"replace"] boolValue]
|
856
|
replace:[options[@"replace"] boolValue]
|
857
|
cycle:[options[@"cycle"] integerValue]];
|
857
|
cycle:[options[@"cycle"] integerValue]];
|
|
|
|
|
1038
|
resolve:(RCTPromiseResolveBlock)resolve
|
1038
|
resolve:(RCTPromiseResolveBlock)resolve
|
1039
|
reject:(RCTPromiseRejectBlock)reject) {
|
1039
|
reject:(RCTPromiseRejectBlock)reject) {
|
1040
|
NSInteger res = [self.rtcEngine playEffect:(int)[options[@"soundid"] integerValue]
|
1040
|
NSInteger res = [self.rtcEngine playEffect:(int)[options[@"soundid"] integerValue]
|
1041
|
- filePath:[options[@"filepath"] stringValue]
|
|
|
|
|
1041
|
+ filePath:[options[@"filepath"]]
|
1042
|
loopCount:(int)[options[@"loopcount"] integerValue]
|
1042
|
loopCount:(int)[options[@"loopcount"] integerValue]
|
1043
|
pitch:[options[@"pitch"] doubleValue]
|
1043
|
pitch:[options[@"pitch"] doubleValue]
|
1044
|
pan:[options[@"pan"] doubleValue]
|
1044
|
pan:[options[@"pan"] doubleValue]
|
|
|
|
|
1157
|
resolve:(RCTPromiseResolveBlock)resolve
|
1157
|
resolve:(RCTPromiseResolveBlock)resolve
|
1158
|
reject:(RCTPromiseRejectBlock)reject) {
|
1158
|
reject:(RCTPromiseRejectBlock)reject) {
|
1159
|
AgoraAudioRecordingQuality qualityType = (AgoraAudioRecordingQuality)[options[@"quality"] integerValue];
|
1159
|
AgoraAudioRecordingQuality qualityType = (AgoraAudioRecordingQuality)[options[@"quality"] integerValue];
|
1160
|
- NSInteger res = [self.rtcEngine startAudioRecording:[options[@"filepath"] stringValue] quality:qualityType];
|
|
|
|
|
1160
|
+ NSInteger res = [self.rtcEngine startAudioRecording:[options[@"filepath"]] quality:qualityType];
|
1161
|
if (res == 0) {
|
1161
|
if (res == 0) {
|
1162
|
resolve(nil);
|
1162
|
resolve(nil);
|
1163
|
} else {
|
1163
|
} else {
|
|
|
|
|
1374
|
config.audioBitrate = [options[@"config"][@"audioBitrate"] integerValue];
|
1374
|
config.audioBitrate = [options[@"config"][@"audioBitrate"] integerValue];
|
1375
|
config.audioChannels = [options[@"config"][@"audioChannels"] integerValue];
|
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
|
config:config];
|
1378
|
config:config];
|
1379
|
if (res == 0) {
|
1379
|
if (res == 0) {
|
1380
|
resolve(nil);
|
1380
|
resolve(nil);
|
|
|
|
|
1630
|
transcoding.transcodingUsers = transcodingUsers;
|
1630
|
transcoding.transcodingUsers = transcodingUsers;
|
1631
|
}
|
1631
|
}
|
1632
|
if ([options objectForKey:@"transcodingExtraInfo"]) {
|
1632
|
if ([options objectForKey:@"transcodingExtraInfo"]) {
|
1633
|
- transcoding.transcodingExtraInfo = [options[@"transcodingExtraInfo"] stringValue];
|
|
|
|
|
1633
|
+ transcoding.transcodingExtraInfo = [options[@"transcodingExtraInfo"]];
|
1634
|
}
|
1634
|
}
|
1635
|
|
1635
|
|
1636
|
NSInteger res = [self.rtcEngine setLiveTranscoding:transcoding];
|
1636
|
NSInteger res = [self.rtcEngine setLiveTranscoding:transcoding];
|