1

We are trying to protect our video data from being downloaded. As of regular practice i am trying to disable contextmenu/longclick/rightclick, But it is not helpful. Below is the sample code

<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<style>
video{
        height : 100%;
        width : 100%;
}
</style>
<body>

<video>
  <source src="http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8" type="video/mp4">
  Your browser does not support HTML5 video.
</video>


</body>
<script>
$('video').bind('contextmenu', function(e) {
    return false;
});
</script>
</html>
Bharath SN
  • 41
  • 2
  • 9
  • If people want it, they usually find a way to get the videos anyway. Other than that, [this might help you](http://stackoverflow.com/questions/737022/how-do-i-disable-right-click-on-my-web-page). – pixeldesu Sep 29 '16 at 08:25

0 Answers0