by Smartupworld Websolutions on WordPress.org
Display videos in a responsive modal via shortcode. Supports self-hosted MP4 files and YouTube videos.
Smartupworld Video Modal provides a simple shortcode to open videos in a responsive modal window. It is lightweight, fully responsive, and works with self-hosted MP4 files as well as YouTube videos.
Usage examples:
Self-hosted MP4 video:
[smartupworld_video_modal url=”https://example.com/video.mp4″ button=”Watch Video” type=”video”]
YouTube video:
[smartupworld_video_modal url=”https://www.youtube.com/embed/j_g1BAU_Xyw” button=”Watch YouTube” type=”youtube”]
Features:
* Lightweight and fast modal window
* Fully responsive video container
* Autoplay enabled when modal opens
* Shortcode accepts video URL, button label, and video type
* Works with self-hosted MP4 files
* Supports YouTube videos with type="youtube"