Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffering Error When Skipping to Previous or Next Track in just_audio_windows #47

Open
mmahamed opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mmahamed
Copy link

mmahamed commented Dec 22, 2024

Which API doesn't behave as documented, and how does it misbehave?
player.seek(Duration.zero, index) (I guess. because a few moments after this method app goes to not responding mode)

Minimal reproduction project
Provide a link here using one of two options:

  1. Fork this repository and modify the example to reproduce the bug, then provide a link here.
  2. If the unmodified official example already reproduces the bug, just write "The example".

To Reproduce (i.e. user steps, not code)
To reproduce this issue, follow these steps:

Create a playlist with multiple tracks.
Run the app and play the first track.
Continuously skip to the next and previous tracks.
After a few skips, the app crashes, and the error log is shown.

Error messages

[just_audio_windows]: Broadcast playback event error: Error accessing BufferingProgress. Using default value of 1.

Expected behavior
The navigation between tracks should work smoothly without crashing the app.

Actual Behavior:
The app crashes unexpectedly after skipping tracks a few times.

Operating System: Windows 11
Flutter Version: 3.24.3
Package Versions:
just_audio: latest
just_audio_windows: latest

Flutter SDK version

[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.22631.4037], locale en-US)
    • Flutter version 3.24.3 on channel stable at C:\ProgrammingTools\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (3 months ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\mmahamed\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\OpenLogic\jdk-17.0.12.7-hotspot\bin\java
    • Java version OpenJDK Runtime Environment OpenLogic-OpenJDK (build 17.0.12+7-adhoc..jdk17u)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.5)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.11.35327.3
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.2)
    • Android Studio at C:\ProgrammingTools\android-studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)

[√] VS Code (version 1.96.1)
    • VS Code at C:\Users\mmahamed\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.102.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.4037]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 131.0.6778.205
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 131.0.2903.112

[√] Network resources
    • All expected network resources are available.

• No issues found!

Additional context
This issue occurs only on Windows.
I am using the latest versions of just_audio and just_audio_windows with default configurations.
When I add the preload: true parameter to setAudioSource() method the frequency of this error reduced but not completly solved.

@mmahamed mmahamed added the bug Something isn't working label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant