startCapture method
Called by start before this track is marked active.
Implementation
@override
Future<void> startCapture() async {
await super.startCapture();
if (lkPlatformSupportsExplicitAudioRecordingStart()) {
try {
// Match Swift: start the ADM before publishing so capture-time audio
// processing options are applied before WebRTC opens the microphone.
await Native.startLocalRecording(currentOptions.processing.toMap());
} on PlatformException catch (error) {
throw track_options.AudioProcessingException(
_audioProcessingFailureReason(error.code),
error.message ?? '',
);
}
}
}