I've been struggling for quite some time for ways to prevent videos from being downloaded, and found an extremely easy way to do it (of course, this will not completely prevent the videos from being downloaded, but will help a lot, as most users will not find a way to overcome it).
Just add this after the opening of your video tag: oncontextmenu="return false;"
When you set oncontextmenu="return false;", the right-click menu will be disabled for your video (while it will still be working for the rest of your site). As simple as that, and no one will be able to right-click and save your video
file.
I've never posted to the Moodle forums before, but I thought it could be interesting to share this solution, as I spent a lot of time looking for something and this is a solution that takes 5 seconds to be implemented, doesn't require
any changes on the pages' programming, and costs nothing.
Best regards,
Lucas.