You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which API doesn't behave as documented, and how does it misbehave?
Only on iOS (Works on Android)
When trying to use the playlist feature.
upon calling await _playlist.addAll(audios);
The player jumps directly to the next song instead of queuing it in the playlist.
Minimal reproduction project
Provide a link here using one of two options:
To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:
1. Start the playlist example - https://github.com/rootux/just_audio/blob/minor/just_audio/example/lib/example_playlist.dart
2. Run on IOS (Android works)
3. Click on Play
4. Click rapidly on + to add new items to the playlist
5. observe that the playlist "jumps" and doesn't play fluently
Expected behavior
Expecting the playlist to finish playing current song and then jump to the next one without any skips.
Smartphone (please complete the following information):
Device: iPad 2021
Flutter SDK version
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.7, on macOS 13.4 22F66 darwin-arm64, locale en-IL)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
[✓] VS Code (version 1.79.1)
[✓] Connected device (2 available)
[✓] Network resources
• No issues found!
Additional context
This happens only for the assets audio source that's why I kept the nature sounds.
For me (Not in the example) this happens when I'm using BufferAudioSource.
class BufferAudioSource extends StreamAudioSource {
BufferAudioSource(this._buffer) : super(tag: "buffered_audio");
final Uint8List _buffer;
@override
Future<StreamAudioResponse> request([int? startIndex, int? endIndex]) {
final start = startIndex ?? 0;
final end = endIndex ?? _buffer.length;
return Future.value(
StreamAudioResponse(
sourceLength: _buffer.length,
contentLength: end - start,
offset: start,
contentType: 'audio/mpeg',
stream:
Stream.value(List<int>.from(_buffer.skip(start).take(end - start))),
),
);
}
}
The text was updated successfully, but these errors were encountered:
Oops, it appears that your issue did not follow the template and is missing one or more required sections. Please open a new issue, and provide all required sections and information.
FAQ:
Do I really need to submit a minimal reproduction project for a bug? A: Yes. I prioritise bugs secondarily on how many people are affected, and primarily on whether the bug report is complete, in the sense that it enables me to immediately reproduce it and start working on a fix. If a bug is important to you, the best thing you can do is to provide all requested information ASAP so that I can start looking into it ASAP.
I think I supplied all required information, so did the bot make a mistake? A: The bot only checks the section headings, so when you post a new issue, make sure you leave the section headings intact. (Note that because of this, it is even possible to trick the bot by including only the section headings, and then not providing the requested information under each heading. This is frowned upon, and the issue will be closed manually.)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.
Which API doesn't behave as documented, and how does it misbehave?
Only on iOS (Works on Android)
When trying to use the playlist feature.
upon calling
await _playlist.addAll(audios);
The player jumps directly to the next song instead of queuing it in the playlist.
Minimal reproduction project
Provide a link here using one of two options:
To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:
Expected behavior
Expecting the playlist to finish playing current song and then jump to the next one without any skips.
Smartphone (please complete the following information):
Flutter SDK version
Additional context
This happens only for the assets audio source that's why I kept the nature sounds.
For me (Not in the example) this happens when I'm using BufferAudioSource.
The text was updated successfully, but these errors were encountered: