1

in my wordpress page i use elementor and make playlist for videos when video played, the download button will show and when pressed, start to download. i dont want any user download that videos.

i use javascript code :

jQuery( document ).ready(function() {
  jQuery("video").each(function(){
    jQuery(this).attr('controlsList','nodownload');
    jQuery(this).load();
  });
});

but work for first video in my playlist, when selected other video, js not work and download button are there and user can download video

enter image description here

1 Answers1

0

Have you tried not disabling the download function per se but simply hiding the download button using CSS?

The code would be:

.respective-class {
  display: none;
  }

or

.respective-class {
  visibility: hidden;
  }
Julia
  • 43
  • 6