bluefireteam / audioplayers

A Flutter package to play multiple audio files simultaneously (Android/iOS/web/Linux/Windows/macOS)
https://pub.dartlang.org/packages/audioplayers
MIT License
1.98k stars 843 forks source link

shuffle not found #653

Closed Zeehshan closed 3 years ago

Zeehshan commented 3 years ago

we cannot shuffle the audio, i cannot see any method in library

erickzanardo commented 3 years ago

This is not something in the scope of this package and is something that can be implemented by your app, like just a List that represents your playlist and get a random position of that list.

Zeehshan commented 3 years ago

yes butt by random some time it is returning same result

muarachmann commented 3 years ago

As Erick said that is the way to go. Can you show us some code and where you are having difficulties.

Generally I use this for shuffling. Random().nextInt(songListLength - 1) this gives me a number in the list inclusively.

On Sat, Oct 17, 2020 at 12:25 PM haidershah notifications@github.com wrote:

yes butt by random some time it is returning same result

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/luanpotter/audioplayers/issues/653#issuecomment-710840381, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4X4XS4HTHW4CDSPA5FOH3SLF5LXANCNFSM4SUJFL3Q .

--

MUA N. LAURENT: Lead Software Engineer Akivas Inc. https://akivas.com/ muarachmann@akivas.com Makepe Rhone Poulenc, Douala

Zeehshan commented 3 years ago

yea thanks, i hope this will work