-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Use case
When looking for packages to play audio, it is very common (at least for me) to look for official packages as they are usually more widely used and better supported. Trying video_player seems to be a common pattern and since it mostly work (at least in Web and Android), some users (like me) start using it, only to eventually bump into some wall and finding out audio is not officially supported and getting a "tough luck you spent time with video_player but this won't fix".
This is a non-exhaustive list of audio-related issues I found, which suggests I'm not alone here:
- [video_player ] Ability to play local mp3 audio files. #38480
- Audio support #47105
- video_player: Can't play short (sub-second) audio files if play() is called a while (1 or 2 seconds) after initialize() #75508
- [video_player] How to play audio in background ?? #48008
There is even people answering questions and recommending to use video_player as an audio player in stackoverflow:
Proposal
Just add some clear message at the top of the package home page saying that even when audio-only playing might work incidentally, it is not officially supported and it should not be used, and ideally listing alternative package to reproduce audio (like just_audio). It would be also put another note in the supported formats section, since when you click in there you'll find audio-only formats listed as supported.