isEncoderSupported method
Future<bool>
isEncoderSupported(
- FlutterSoundRecorderCallback callback, {
- required Codec codec,
override
Implementation
@override
Future<bool> isEncoderSupported(
FlutterSoundRecorderCallback callback, {
required Codec codec,
}) async {
if (codec == Codec.pcmFloat32 || codec == Codec.pcm16) {
return true;
}
var r = MediaRecorder.isTypeSupported(mime_types[codec.index]);
if (r)
callback.log(Level.debug, 'mime_types[codec] encoder is supported');
else
callback.log(Level.debug, 'mime_types[codec] encoder is NOT supported');
return r;
}