Index: webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm b/webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm |
index 9c9fd75ac0908c815d3f40e0327a0c2229849e76..0ac2ec4c8a881d47dc68efb34c087e573d8db4ad 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/RTCPeerConnectionFactory.mm |
@@ -48,6 +48,19 @@ |
return self; |
} |
+- (BOOL)startAecDumpWithFileDescriptor:(int)fileDescriptor |
+ maxFileSizeInBytes:(int)maxFileSizeInBytes { |
+ // Pass the file to the recorder. The file ownership |
+ // is passed to the recorder, and the recorder |
+ // closes the file when needed. |
+ return _nativeFactory->StartAecDump(fileDescriptor, maxFileSizeInBytes); |
+} |
+ |
+- (void)stopAecDump { |
+ // The file is closed by the call below. |
+ _nativeFactory->StopAecDump(); |
+} |
+ |
- (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints: |
(nullable RTCMediaConstraints *)constraints { |
return [[RTCAVFoundationVideoSource alloc] initWithFactory:self |