Skip to content

Make it more clear that video_player doesn't support audio (even if it's accidentally supported in some platforms) #75636

@llucax

Description

@llucax

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/p: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions