隐藏video的下载和全屏
2020-06-15 本文已影响0人
记忆是条狗
js隐藏:
let video = document.querySelectorAll("video")[0];
video.setAttribute(
"controlsList",
"nofullscreen nodownload noremote footbar"
);
css隐藏全屏:
video::-webkit-media-controls-fullscreen-button {
display: none !important;
}