Last active
April 27, 2020 12:07
-
-
Save NishiGaba/c7d21f47b0246692a56609719786b674 to your computer and use it in GitHub Desktop.
Hide Audio and Video Download Controls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<audio controls> | |
<source src="your_mp3_file" type="audio/mpeg"> | |
</audio> | |
<video width="100%" height="100%" controls> | |
<source src="your_video_url"> | |
</video> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* HIDE DOWNLOAD BUTTON OF AUDIO */ | |
audio::-internal-media-controls-download-button { | |
display:none; | |
} | |
audio::-webkit-media-controls-enclosure { | |
overflow:hidden; | |
} | |
audio::-webkit-media-controls-panel { | |
width: calc(100% + 30px); /* Adjust as needed */ | |
} | |
/* HIDE DOWNLOAD BUTTON OF VIDEO */ | |
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 */ | |
} |
I tested it,it doesn't work.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems like this doesn't work.