Skip to content

Unable to record opus on iPadOS 26 #560

@krille-chan

Description

@krille-chan

Package version

Environment

  • OS: iPadOS 26 (probably also iOS 26)

Describe the bug

In my app I check audioRecorder.isEncoderSupported if opus is supported and then use opus. This has worked for a long time. However since iOS 26 isEncoderSupported returns true but recording with opus fails with this exception:

PlatformException(record, Failed to start recording, Format conversion isn’t possible. Format or configuration is not supported., null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653:7)
message_codecs.dart:653
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:367:18)
platform_channel.dart:367
<asynchronous suspension>
#2      AudioRecorder.start.<anonymous closure> (package:record/src/record.dart:66:9)
record.dart:66
<asynchronous suspension>
#3      AudioRecorder._safeCall (package:record/src/record.dart:300:14)
record.dart:300
<asynchronous suspension>
#4      AudioRecorder.start (package:record/src/record.dart:62:5)
record.dart:62
<asynchronous suspension>
#5      RecordingViewModelState.startRecording (package:fluffychat/pages/chat/recording_view_model.dart:94:7)
recording_view_model.dart:94
<asynchronous suspension>

RecordingConfig

await audioRecorder.isEncoderSupported(AudioEncoder.opus); // returns `true`
 RecordConfig(
          encoder: AudioEncoder.opus,
        ),

Tried with record 6.1.2 (latest) also with 6.0.0 (which has worked before on the iOS version before Liquid (gl)ass. As a workaround I now record with aacLc, which works but has compatibility issues with some android apps.

To Reproduce

Steps to reproduce the behavior:

  1. Use macOS Tahoe with XCode 26 to build for iPadOS 26
  2. Set audio
  3. Scroll down to '....'
  4. See error

Expected behavior

Recording works without an exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions