Releases: Rethink-JS/rt-video
Releases · Rethink-JS/rt-video
v1.0.0
Initial stable release of rt-video, a lightweight, attribute-driven video utility for highly customizable Plyr players.
Features:
- Automatic dependency loading (Dynamically fetches Plyr JS & CSS only when needed)
- Attribute-driven configuration (Zero-config HTML setup, supports both
rt-video-*anddata-rt-video-*) - Custom UI cloaking (Seamless loading states that hide raw iframes/video tags behind custom thumbnails)
- Responsive video sources (Breakpoint-based URL switching, e.g.,
desktop.mp4, 991:tablet.mp4) - Smart scroll-autoplay (IntersectionObserver powered, auto-pauses when out of viewport)
- Performance optimized (Built-in lazy-loading via
rt-video-lazyto defer initialization) - Cross-provider support (Handles native HTML5 MP4s and YouTube embeds with safe ID parsing)
- Advanced time controls (Custom start/end times with reliable Media Fragment
#t=injection and JS fallbacks) - Global JS API (
window.RtVideo.init()for programmatic initialization of dynamically injected elements)