media-kit / media-kit

A cross-platform video player & audio player for Flutter & Dart.
https://github.com/media-kit/media-kit
MIT License
1.18k stars 195 forks source link

Any plans to add support for transparency / alpha channels? #1037

Open willsmanley opened 1 week ago

willsmanley commented 1 week ago

See this example for how it works in web: https://rotato.app/blog/transparent-videos-for-the-web

Some sample videos to test out with: https://rotato.netlify.app/alpha-demo/movie-hevc.mov https://rotato.netlify.app/alpha-demo/movie-webm.webm

the flutter-maintained video_player doesn't support transparency either, so this might be a good way to add a novel feature if it is feasible. happy to help implement if someone knows what to do but doesnt have enough time.

reason this could be really cool is to overlay advanced animations like particle effect on top of other widgets (ex an improved, 3d version of siri orb)

NinjaChunksBackup commented 5 days ago

The orb animation is exactly what I am looking for, and I have seen a lot of libraries and plugins but they do not seem to be working, still trying and finding if anyone could.

Some promising libraries include: https://github.com/qq326646683/flutter_vap https://github.com/pengboboer/alpha_player_plugin https://github.com/smallwhitexujian/flutter_plugin_alpha_player https://github.com/starkdmi/media_tool_flutter

Someone on stack overflow explained how to use flutter vap: https://stackoverflow.com/questions/74528023/is-there-a-way-to-play-a-transparent-video-in-flutter