Is any way that is safe to display videos in a browser, Like, one of his security things, the video cannot be downloaded thanks
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- “Zero out” sensitive String data in Swift
I think you mean that you don't want your video to be downloaded or copied?
If so then it is more or less impossible to stop people downloading the video - there are many tools available to download even from big providers like YouTube.
So the approach most take is to encrypt the video and use HTML5's Encrypted Media Extension (EME) to handle secure playback - basically support DRM on the video.
If you just want to put a basic barrier to stop casual users copying the video then MPEG DASH 'clearkey' encryption or HLS AES encryption may be sufficient for your needs - these are not considered robust by most large content owners, but may be fine for simple use.
You can use ffmpeg and openssl to create an AES encrypted HLS stream - the ffmpeg documentation (http://ffmpeg.org/ffmpeg-all.html#Options-34) includes this example script:
You can also use mp4Box (https://gpac.wp.imt.fr/mp4box/encryption/common-encryption/) to create basic clear DASH encryptions:
The drm info is included in the drm_file.xml and is explained at the link above.