shaka-project/shaka-player — reverse-engineered prompt
Reverse engineered prompt
Build me a lightweight JavaScript video player for the browser that can play adaptive streaming video without Flash or plugins. I want it to handle DASH and HLS links, pick the best quality automatically, support live and on demand streams, captions, audio tracks, thumbnails, trick play, and encrypted or protected videos where the browser allows it.
Please include a simple demo page where I can paste a stream URL, press play, see basic controls, switch quality, choose captions or audio, and view useful error messages if something fails. I’d also like support for saving compatible media for offline playback in the browser using local storage tech, with clear limits when licenses or browsers don’t support it.
Keep it dependency light, documented, and usable by other developers as a library. Make it work across modern desktop and mobile browsers as much as possible, with sensible fallbacks for Safari and native HLS. Look up current browser media docs online if you need to.
Want more depth? Deep Reverse