rxlabz / audioplayer

A flutter plugin to play audio files iOS / Android / MacOS / Web ( Swift/Java )

Home Page:https://pub.dartlang.org/packages/audioplayer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AudioPlayerState.PAUSED is not detected on Web

digitalrbnz opened this issue · comments

Listening for state changes to the audio player with the following and not seeing any AudioPlayerState.RESUME also, even thought the ENUM talks about resume, there is no such function.

/// Paused. The user can [resume] the playback without providing the URL.
PAUSED,

    player.onPlayerStateChanged.listen((AudioPlayerState s) {
      playerState = s;
      print(playerState);
    });

audioplayer: ^0.8.1
audioplayer_web: ^0.7.1

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.1.0-13.0.pre.293, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-NZ)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.55.1)
[✓] Connected device (2 available)