xxoo/flutter_video_view — reverse-engineered prompt
Reverse engineered prompt
Build me a lightweight Flutter video player package that feels simple to use but works across Android, iOS, macOS, Windows, Linux, and web.
I want developers to be able to drop a video widget into their app, give it a source URL, asset, or file, and have it play without much setup. It should support normal MP4 playback plus streaming formats like HLS where the platform allows it. Include built in subtitle rendering for internal subtitle tracks, audio track switching, autoplay, looping, play and pause control, and useful playback status updates so apps can react to loading, playing, paused, and errors.
Please also include a small example app that shows basic usage and a more custom player with a play pause button over the video. Make the API feel widget first, with an optional controller for people who need more control. Use Flutter 3.32 or newer, and check current platform docs online if you need to.
Want more depth? Deep Reverse