Hello,
I’m trying to figure out how to remove the download option (in Chrome) for a video i have in my hype document. I’ve found the necessary javascript on google’s developer page but I am unsure how to make it work in my hype doc. Does anyone know how to do this?
here is the code:
var video = document.querySelector(‘video’);
video.controls; // true
video.controlsList; // [“nofullscreen”, “nodownload”, “noremoteplayback”]
video.controlsList.remove(‘noremoteplayback’);
video.controlsList; // [“nofullscreen”, “nodownload”]
video.getAttribute(‘controlsList’); // “nofullscreen nodownload”
video.controlsList.supports(‘foo’); // false
video.controlsList.supports(‘noremoteplayback’); // true