js-vido – JavaScript Video Download Optimizer is a JavaScript library to optimize HTML pages with video content that prevents videos from being uploaded to mobile devices.
Video download optimizer that prevents videos from being uploaded automatically to mobile and shows poster images instead.
Prevents videos with the “video enhancement” category from downloading to mobile devices by displaying poster images instead. This is done by generating the source element of the video node with the data-src attribute only in the event that the device being used is a laptop or desktop computer.
An instance where this function can be useful is verified by using the auto-played videos used in the backgrounds of webpages, since autoplay does not work on mobile devices, the video will download unnecessarily, which slows down the page loading and consumes data cell phone.
How to make use of it:
1. Load the primary JavaScript within the doc.
<script src="js-vido.js"></script>
2. Embed a video into your doc utilizing data-src
the attribute.
<video class="optimize-video" autoplay muted loop poster="poster.jpg" data-src="1.mp4" data-type="video/mp4"></video>
Prevent Video From Downloading On Mobile, Video Download Optimizer Plugin/Github
See Demo And Download
Official Website(Ariel-MN): Click Here
This superior jQuery/javascript plugin is developed by Ariel-MN. For extra Advanced Usages, please go to the official website.