Skip to content

[bug] iOS withPreConnectAudio throws an error when connecting to room #1042

@adambeer

Description

@adambeer

Describe the bug
When connecting to a livekit room using withPreConnectAudio on iOS, the following error is produced:

Unable to start local recording: Error: adm api failed with code: -1

#0 NativeAudioManagement.startLocalRecording (package:flutter_webrtc/src/native/audio_management.dart:79:9)

#1 PreConnectAudioBuffer.startRecording (package:livekit_client/src/preconnect/pre_connect_audio_buffer.dart:149:7)

#2 RoomPreConnect.withPreConnectAudio (package:livekit_client/src/core/room_preconnect.dart:53:5)

To Reproduce

Use withPreconnectAudio like in the docs: https://docs.livekit.io/agents/multimodality/audio/ on an iOS device and try to connect to a room.

Expected behavior

Platform information

  • Flutter version: 3.41.4
  • Plugin version: 2.7.0
  • Flutter target OS: iOS real device
  • Flutter target OS version: iOS 17.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions