Prevent Video From Downloading On Mobile – Video Download Optimizer

Category: Javascript | March 10, 2021
Author:Ariel-MN
Views Total:265 views
Official Page:Go to website
Last Update:March 10, 2021
License:MIT

Preview:

Prevent Video From Downloading On Mobile – Video Download Optimizer

Description:

A video download optimizer that prevents videos from auto-loading on mobile and displays their poster images instead.

How to use it:

1. Load the main JavaScript in the document.

<script src="js-vido.js"></script>

2. Embed a video into your document using data-src attribute:

<video class="optimize-video" autoplay muted loop poster="poster.jpg" data-src="1.mp4" data-type="video/mp4"></video>

You Might Be Interested In:


Leave a Reply