Skip to content

Commit

Permalink
Update note on supported version of audioplayers
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Oct 28, 2023
1 parent 803afcd commit 1acef82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ To use the gstreamer video player, just rebuild flutter-pi (delete your build fo
And then, just use the stuff in the official [video_player](https://pub.dev/packages/video_player) package. (`VideoPlayer`, `VideoPlayerController`, etc, there's nothing specific you need to do on the dart-side)
### audioplayers
As of current moment flutter-pi implements plugin for `audioplayers: ^4.0.0`.
As of current moment flutter-pi implements plugin for `audioplayers: ^5.0.0`.
There are several things you need to keep in mind:
- As flutter-pi is intended for use on constrained systems like raspberry pi, you should avoid creating multiple temporary instances and instead prefer to use one global instance of `AudioPlayer`. There is limit you can easily hit if you're going to spam multiple instances of `AudioPlayer`
- Plugin was tested to work with ALSA and `pulseaudio` might prevent the plugin from playing audio correctly:
Expand Down

0 comments on commit 1acef82

Please sign in to comment.