Prevent HTML5 video from being downloaded (right-click saved)?

前端 未结 20 2301
醉酒成梦
醉酒成梦 2020-11-22 15:33

How can I disable \"Save Video As...\" from a browser\'s right-click menu to prevent clients from downloading a video?

Are there more complete solutions that prevent

20条回答
  •  一生所求
    2020-11-22 16:16

    It seems like streaming the video through websocket is a viable option, as in stream the frames and draw them on a canvas sort of thing.

    Video streaming over websockets using JavaScript

    I think that would provide another level of protection making it more difficult for the client to acquire the video and of course solve your problem with "Save video as..." right-click context menu option ( overkill ?! ).

提交回复
热议问题