sampotts/plyr — reverse-engineered prompt
Reverse engineered prompt
Build me a simple, lightweight media player I can drop into a website for video and audio. It should work with normal HTML5 video and audio, and also be able to enhance embedded YouTube and Vimeo players so they all feel consistent. I want it to be responsive, accessible, keyboard friendly, and easy to restyle so people can match it to their site without ugly markup hacks.
Please include the usual player controls like play and pause, seek, volume, fullscreen, speed, captions, picture in picture when supported, and inline playback on mobile. It should support multiple caption tracks, screen readers, preview thumbnails, and a clean event and control API so developers can listen for things like play, pause, seek, and volume changes in the same way across all media types.
Add a small demo page that shows HTML5 video, HTML5 audio, YouTube, and Vimeo examples, plus basic setup instructions for script, styles, and simple markup. If you need details, look up current browser and embed docs online.
Want more depth? Deep Reverse