KratosRepo/drm-player — reverse-engineered prompt

Reverse engineered prompt

Build me a simple static website that lets people play online video streams in the browser, including both normal streams and DRM protected ones, with no backend at all so it can be hosted on GitHub Pages or any basic static host.

I want a main dark themed player page where someone can paste a DASH or HLS stream URL, optionally add a ClearKey key ID and key, and hit Play. It should also work from URL query params so I can use it as an embed link. Please include a second alternate player page with the same features but a different dark style, plus a clean iframe friendly page that shows only the video with a loading state and clear error message.

Also add a very simple HLS only embed page that just takes a video URL param, an HLS page with quality selection and audio track switching, and a separate DASH page for Widevine where I can enter the manifest URL and license server URL. Auto detect stream type when possible, validate missing DRM fields, and make the whole thing polished and easy to use. Look up current docs online if you need to.

Want more depth? Deep Reverse