6
6
#import " FlutterRTCMediaStream.h"
7
7
#import " FlutterRTCPeerConnection.h"
8
8
#import " FlutterRTCVideoRenderer.h"
9
- #import " FlutterRTCMediaRecorder.h"
10
9
#import " FlutterRTCFrameCryptor.h"
11
10
#import " VideoEffectProcessor.h"
12
11
#import " ProcessorProvider.h"
13
12
#import " VideoFrameProcessor.h"
14
13
#if TARGET_OS_IPHONE
14
+ #import " FlutterRTCMediaRecorder.h"
15
15
#import " FlutterRTCVideoPlatformViewFactory.h"
16
16
#import " FlutterRTCVideoPlatformViewController.h"
17
17
#endif
@@ -1529,8 +1529,9 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
1529
1529
message: [NSString stringWithFormat: @" Error: peerConnection not found!" ]
1530
1530
details: nil ]);
1531
1531
}
1532
+ #if TARGET_OS_IOS
1532
1533
} else if ([@" startRecordToFile" isEqualToString: call.method]){
1533
- # if TARGET_OS_IOS
1534
+
1534
1535
NSDictionary * argsMap = call.arguments ;
1535
1536
NSNumber * recorderId = argsMap[@" recorderId" ];
1536
1537
NSString * path = argsMap[@" path" ];
@@ -1549,10 +1550,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
1549
1550
];
1550
1551
}
1551
1552
result (nil );
1552
- #endif
1553
-
1554
1553
} else if ([@" stopRecordToFile" isEqualToString: call.method]) {
1555
- #if TARGET_OS_IOS
1556
1554
NSDictionary * argsMap = call.arguments ;
1557
1555
NSNumber * recorderId = argsMap[@" recorderId" ];
1558
1556
FlutterRTCMediaRecorder* recorder = self.recorders [recorderId];
@@ -1564,7 +1562,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
1564
1562
message: [NSString stringWithFormat: @" Error: recorder with id %@ not found!" ,recorderId]
1565
1563
details: nil ]);
1566
1564
}
1567
- #endif
1565
+ #endif
1568
1566
} else {
1569
1567
[self handleFrameCryptorMethodCall: call result: result];
1570
1568
}
0 commit comments