Skip to content

[bug] Audio Visualizer doesn't work for unpublished local audio tracks #1044

@bdlukaa

Description

@bdlukaa

Describe the bug

When using the audio visualizer in a local audio track before joining, in a pre join screen, the audio visualizer doesn't work for the specified track.

To Reproduce

final devices = await Hardware.instance.enumerateDevices();
final track = LocalAudioTrack.create(
  AudioCaptureOptions(
    deviceId: devices
                   .firstWhereOrNull((d) => d.kind == 'audioinput')
                   ?.deviceId,
    ),
);
await track.start();

...

SoundWaveformWidget(
  audioTrack: audioTrack,
)

Expected behavior

The audio visualizer should work normally.

Platform information

  • Flutter version:
    [✓] Flutter (Channel stable, 3.41.4, on macOS 26.3.1 25D771280a darwin-arm64, locale pt-BR) [414ms]
    • Flutter version 3.41.4 on channel stable at /Users/bdlukaa/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff37bef603 (4 weeks ago), 2026-03-03 16:03:22 -0800
    • Engine revision e4b8dca3f1
    • Dart version 3.11.1
    • DevTools version 2.54.1
  • Plugin version: 2.7.0
  • Flutter target OS: Android, iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions