Disable Download option in HTML5 Video

  See Video Documentation :- 

 

Before - When video tag Download is Enabled .


Here is a Simple Video Tag :- 

    <video width="320" height="240" controls loop>
        <source src="https://www.w3schools.com/tags/movie.mp4" type="video/mp4">
        Your browser does not support the video tag.
    </video>

-- Preview --



For Disabling the Download Option 

After Disabling Download

Add This Attribute 

controlslist="nodownload"

Now the Full Code Will Look Like :- 

    <video width="320" height="240" controls loop controlslist="nodownload">
        <source src="https://www.w3schools.com/tags/movie.mp4" type="video/mp4">
        Your browser does not support the video tag.
    </video>

-- Preview --




Possible controlslist Values :- 
  • nofullscreen
  • nodownload
  • noremoteplayback


Comments