videojs/video.js — reverse-engineered prompt
Reverse engineered prompt
Build me an open source web video player for websites. I want it to work by dropping a simple video tag on a page, then the player upgrades it with nice controls, styling, and a clean JavaScript API.
It should play normal web video formats and also support streaming formats like HLS and DASH. It needs to work well on desktop browsers, phones, tablets, and web based smart TVs. Please include a quick demo page with a poster image, multiple source formats, controls, preload settings, and a fallback message for people without JavaScript or HTML5 video support.
I also want developers to be able to initialize the player automatically with a setup attribute, or manually in JavaScript with options and a ready callback. Add useful events like ended, logging, and a simple way for plugins or custom features to extend the player later. Look up current docs online if you need to.
Want more depth? Deep Reverse