Skip to content

AudioService.stopped, paused ... does not work. #144

@monnguyen2512

Description

@monnguyen2512

Describe the bug
I am trying to pass url to the background via IsolateNameServer, this way the sound still plays, but AudioService.running = false and AudioService.stopped, paused does not work.
Please run with my code, an error will appear.

version: audio_service: ^0.5.4

Link Code

https://github.com/monnguyen2512/audio_service.git

Expected behavior
Actions (pause, ...) can be performed while audio is being played.

Runtime Environment (please complete the following information if relevant):

  • Device: All Device

Flutter SDK version

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.9.1+hotfix.6, on Mac OS X 10.15.1 19B88, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] Android Studio (version 3.5)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions