-
Notifications
You must be signed in to change notification settings - Fork 843
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
loop #10
Comments
That`s a good idea; currently what flame does to allow this is the following: Future<AudioPlayer> loop(String fileName, { volume: 1.0 }) async {
File file = await load(fileName);
AudioPlayer player = new AudioPlayer();
player.setCompletionHandler(() => player.play(file.path, isLocal: true, volume: volume));
return await player..play(file.path, isLocal: true);
} A completion handler that replays the sound. It'd be nice to have a native option to do it; we just need to consider if it is as easy on iOS. If you'd like, please consider submitting a PR ;) Thanks so much for the contributions, and sorry for the delay! |
This was added on 0.6.0. |
This was referenced Dec 27, 2018
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Android's media player allows looping the audio with:
It would be nice if you could integrate this functionality.
The text was updated successfully, but these errors were encountered: