just_audio
just_audio copied to clipboard
seek is ignored while loading
Which API doesn't behave as documented, and how does it misbehave? when trying to seek in the loading state, it's ignored
Minimal reproduction project sorry, i don't have time to write one at the moment, i hope you will understand if you absolutely need it to fix this i can find some time later to create it, but i more likely will make a pr fixing this myself
To Reproduce (i.e. user steps, not code)
- have a player in loading state
- seek
Error messages no
Expected behavior seek should be performed no matter what the state is
Screenshots here's a video from my app
https://user-images.githubusercontent.com/39104740/113528197-91f9d800-95c8-11eb-84d2-6600996ed452.mp4
Desktop (please complete the following information): see flutter doctor
Smartphone (please complete the following information): see flutter doctor
Flutter SDK version
flutter doctor -v
[√] Flutter (Channel unknown, 2.1.0-13.0.pre.388, on Microsoft Windows [Version 10.0.19041.867], locale ru-RU)
• Flutter version 2.1.0-13.0.pre.388 at c:\dev\src\flutter
• Framework revision d882bacc9f (26 hours ago), 2021-04-04 02:52:19 +0300
• Engine revision 9651d11fe8
• Dart version 2.13.0 (build 2.13.0-190.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\danya\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.7.30621.155
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 50.0.1
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] IntelliJ IDEA Community Edition (version 2020.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3
• 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
[√] VS Code (version 1.55.0)
• VS Code at C:\Users\danya\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.21.0
[√] Connected device (4 available)
• Redmi Note 5 (mobile) • 40c9f14 • android-arm64 • Android 9 (API 28)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19041.867]
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114
• Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.63
• No issues found!
Additional context no
Seems like the same issue, seek
didn't work but after adding await audioPlayer.load();
seek
started working again.