how to display video download?

how to display video download?

by JianFeng Zhu -
Number of replies: 3

Hi,

How to setup in moodle 3.5.2 to prevent student download video? current right click mouse can save video as ...  to download video to local. 

dowlo

Average of ratings: -
In reply to JianFeng Zhu

Re: how to display video download?

by Colin Fraser -
Picture of Documentation writers Picture of Testers

This is a perennial question and I do not think there has ever been a clear, concise or workable answer to it yet. There is always copyright or other intellectual property rights, but the bottom line is the same. Unless you are prepared to chase the bunny with a lot of money, I think you may be on a loser. 

You can try to work an error trap into the script that controls the viewing of the video. Something like: 

     <video oncontextmenu="return false;" id="my_video" width="800" height="600" controls autoplay>

          <source src="https://path.to/my/video.mp4" type="video/mp4">

    </video>

And I have no idea if that will work or not but it seems logical and makes sense (to me anyway but I am a long way from my code writing days and getting further away every day). 

You can try to hide behind an emulator, however that works.

You can try to do any one of hundreds of things, but I do not believe any of them actually work. 

Best of all, don't put your videos up so anyone can download them. That will stop them. 

In reply to Colin Fraser

Re: how to display video download?

by JianFeng Zhu -

 add oncontextmenu="return false;" in video label. it works. thanks!

In reply to JianFeng Zhu

Re: how to display video download?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You can't.

Anything that comes over the internet can be downloaded. Don't let anybody tell you any different. 

There are readily available browser plugins that make it trivial.