fix: Temporarily disable opus recording on iOS because iOS 26 seems to break it

This commit is contained in:
Christian Kußowski 2025-10-28 08:21:32 +01:00
parent 816c52630b
commit 5b7944b181
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -69,7 +69,9 @@ class RecordingViewModelState extends State<RecordingViewModel> {
// which does not play on iOS right now. So we use wav for now:
? AudioEncoder.wav
// Everywhere else we use opus if supported by the platform:
: await audioRecorder.isEncoderSupported(AudioEncoder.opus)
: !PlatformInfos
.isIOS && // Blocked by https://github.com/llfbandit/record/issues/560
await audioRecorder.isEncoderSupported(AudioEncoder.opus)
? AudioEncoder.opus
: AudioEncoder.aacLc;
fileName =