Jump to content

how to disable 'save video as' option in HTML5 video control


rhishi20
 Share

Recommended Posts

I have used html5 video control which is streaming video over our website. after right clicking video control 'save video as' option is available. but i just want to give authority of streaming to the viewer. so, please suggest me how to disable 'save video as' option from that list.

Link to comment
Share on other sites

you can't prevent people from saving a video thats streaming onto their PC. Just like you can't read my post and then not be allowed to remember it.

 

You can make it harder for the user to save the video. but anyone who can see the video can work hard enough to save it. be it by either viewing the browser resources to see the actual video file the server is letting the browser 'borrow', by fishing the video out of the browser cache, or by performing actual video capture with some program like camtasia.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

You can't remove that option, the same as you can't remove the "Save image as..." option on images.

You can.

in the <img> tag add <img oncontextmenu="return false;"> Will stop right clicking on an image.

Link to comment
Share on other sites

are you positive? are you sure oncontextmenu isn't a browser-specific attribute? that may work on some browsers but I could instead open up in like chrome and have no trouble saving the image. or again I can simply look at the href attribute in any browser and cut out the middle man.

Link to comment
Share on other sites

Despite being able to stop right clicking, you still can't stop them from taking the image or the video. They can copy the URL from the page's source code, or check all the page media from the browser's options.

 

There's no way to protect content that you've posted online.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...