Skip to content

Commit c168788

Browse files
committed
fix. ios native type cast
1 parent 984245b commit c168788

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/RCTAgora/RCTAgora.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ - (NSDictionary *)constantsToExport {
851851
RCT_EXPORT_METHOD(startAudioMixing:(NSDictionary *) options
852852
resolve:(RCTPromiseResolveBlock)resolve
853853
reject:(RCTPromiseRejectBlock)reject) {
854-
NSInteger res = [self.rtcEngine startAudioMixing:[options[@"filepath"] stringValue]
854+
NSInteger res = [self.rtcEngine startAudioMixing:[options[@"filepath"]]
855855
loopback:[options[@"loopback"] boolValue]
856856
replace:[options[@"replace"] boolValue]
857857
cycle:[options[@"cycle"] integerValue]];
@@ -1038,7 +1038,7 @@ - (NSDictionary *)constantsToExport {
10381038
resolve:(RCTPromiseResolveBlock)resolve
10391039
reject:(RCTPromiseRejectBlock)reject) {
10401040
NSInteger res = [self.rtcEngine playEffect:(int)[options[@"soundid"] integerValue]
1041-
filePath:[options[@"filepath"] stringValue]
1041+
filePath:[options[@"filepath"]]
10421042
loopCount:(int)[options[@"loopcount"] integerValue]
10431043
pitch:[options[@"pitch"] doubleValue]
10441044
pan:[options[@"pan"] doubleValue]
@@ -1157,7 +1157,7 @@ - (NSDictionary *)constantsToExport {
11571157
resolve:(RCTPromiseResolveBlock)resolve
11581158
reject:(RCTPromiseRejectBlock)reject) {
11591159
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];
11611161
if (res == 0) {
11621162
resolve(nil);
11631163
} else {

0 commit comments

Comments
 (0)