• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Disable Video Download

Chris D

XenForo developer
Staff member
#2
It's impossible to prevent it completely.

There is a permission:
upload_2015-7-22_22-4-52.png

Which disables this button:
button.png

But the default behaviour of pretty much all browsers will still allow that to be downloaded via its right click context menu. Even if you can remove the default browser controls the URL to the video is plainly visible.

That said, if you're users aren't very "savvy", for example, they're not likely to know how to view the page source to get the video URL, then you might be able to disable the context menu for the video element with this custom JS:

Code:
<script>
$(document).ready(function(){
   $('.video-js').bind('contextmenu', function() { return false; });
});
</script>
Add that to the bottom of your xengallery_media_view template (or similar).

And that is pretty much all you can do. There may be other ways to do this. Obviously sites like YouTube and Vimeo use proprietary video players and on the surface it would seem that these seem to block the ability to directly download their contents, but, of course, there are may ways and many sites out there that will download any content you like from these sites in seconds. So, with that in mind the best you will do is slow people down rather than actually properly preventing this.
 
#3
Thanks work great this is that I need.

Please I post a thread asking how show video player bigger when I share the video in a thread, now show too small
Screen Shot 07-22-15 at 03.36 PM.PNG
 

51463

Well-known member
#4
I agree with this suggestion.

What we need is to separate the permissions now that video uploading is avilable. Not just 1 "Download Media"

Download Videos
Download Images

upload_2015-7-22_22-4-52.png




I know you said that people can still download videos even if you give us that option .

But i would say the majority of users aren't so much computer savvy. So this would help us with server resources and still being able to download images.


.
.
 
Last edited: