66#import " FlutterRTCMediaStream.h"
77#import " FlutterRTCPeerConnection.h"
88#import " FlutterRTCVideoRenderer.h"
9- #import " FlutterRTCMediaRecorder.h"
109#import " FlutterRTCFrameCryptor.h"
1110#import " VideoEffectProcessor.h"
1211#import " ProcessorProvider.h"
1312#import " VideoFrameProcessor.h"
1413#if TARGET_OS_IPHONE
14+ #import " FlutterRTCMediaRecorder.h"
1515#import " FlutterRTCVideoPlatformViewFactory.h"
1616#import " FlutterRTCVideoPlatformViewController.h"
1717#endif
@@ -1529,8 +1529,9 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
15291529 message: [NSString stringWithFormat: @" Error: peerConnection not found!" ]
15301530 details: nil ]);
15311531 }
1532+ #if TARGET_OS_IOS
15321533 } else if ([@" startRecordToFile" isEqualToString: call.method]){
1533- # if TARGET_OS_IOS
1534+
15341535 NSDictionary * argsMap = call.arguments ;
15351536 NSNumber * recorderId = argsMap[@" recorderId" ];
15361537 NSString * path = argsMap[@" path" ];
@@ -1549,10 +1550,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
15491550 ];
15501551 }
15511552 result (nil );
1552- #endif
1553-
15541553 } else if ([@" stopRecordToFile" isEqualToString: call.method]) {
1555- #if TARGET_OS_IOS
15561554 NSDictionary * argsMap = call.arguments ;
15571555 NSNumber * recorderId = argsMap[@" recorderId" ];
15581556 FlutterRTCMediaRecorder* recorder = self.recorders [recorderId];
@@ -1564,7 +1562,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
15641562 message: [NSString stringWithFormat: @" Error: recorder with id %@ not found!" ,recorderId]
15651563 details: nil ]);
15661564 }
1567- #endif
1565+ #endif
15681566 } else {
15691567 [self handleFrameCryptorMethodCall: call result: result];
15701568 }
0 commit comments