setAudioEncoder method

Future<void> setAudioEncoder(
  1. int encoder
)

Sets the audio encoder to be used for recording.

If this method is not called, the output file will not contain an audio track. Call this after setOutputFormat but before prepare.

Implementation

Future<void> setAudioEncoder(int encoder) =>
    _channel.$setAudioEncoder(this, encoder);