how to disable download option in html video element code example

Example 1: how to stop download option in video tag of HTML

BY LOVE
Just add controlsList="nodownload" in your video tag.

Example 2: video no download html

video::-internal-media-controls-download-button {

display:none;

}

video::-webkit-media-controls-enclosure {

overflow:hidden;

}

video::-webkit-media-controls-panel {

width: calc(100% + 30px); /* Adjust as needed */

}

audio::-internal-media-controls-download-button {

display:none !important;

}

audio::-webkit-media-controls-enclosure {

overflow:hidden !important;

}

audio::-webkit-media-controls-panel {

width: calc(100% + 30px) !important;

}

Tags:

Css Example