Merge pull request #2747 from krille-chan/krille/disable-broken-opus-on-web

chore: Disable broken opus recording on web
This commit is contained in:
Krille-chan 2026-03-22 13:54:01 +01:00 committed by GitHub
commit f5367c0951
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,8 +61,8 @@ class RecordingViewModelState extends State<RecordingViewModel> {
try {
final codec =
!PlatformInfos
.isIOS && // Blocked by https://github.com/llfbandit/record/issues/560
PlatformInfos
.isAndroid && // Blocked by https://github.com/llfbandit/record/issues/560
await audioRecorder.isEncoderSupported(AudioEncoder.opus)
? AudioEncoder.opus
: AudioEncoder.aacLc;