Open moos opened 5 years ago
Neat idea! I'd just change the name from playAll to something making it clear that it would be sequential, rather than simultaneous. Maybe even create two methods for both approaches. I'd love to see a PR about that, if you are willing :)
Glad you like the idea. Just got around to implementing a first pass -- comments welcome.
I second this idea. It would be nice to have e.g. when playing chapters in audiobooks
When I saw the loadAll() method in Audio Cache, I got excited that I'd find a
playAll()
method as well. Alas, it was not to be. After spending some time mucking around with Futures and Streams (noob to Dart and Flutter) without success, I thought it'd be great if the library provided this functionality, i.e. to play a list of audio files in sequence, i.e.or alternatively, a node-style sync method,
Yes, there is a clunky brute-force way to get this done (via
onPlayerCompletion
) but I'm looking for a clean, generalized way.Would appreciate thoughts or feedback.