Html 有没有办法在 HTML5 视频上使用 DRM?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2983555/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a way to use DRM on HTML5 video?
提问by Joost
Since Flash is losing ground I would like to know if there are ways to protect html5 videos with DRM (H264, .ogg and WebM).
由于 Flash 正在失势,我想知道是否有办法使用 DRM(H264、.ogg 和 WebM)保护 html5 视频。
采纳答案by Joost
On the W3C FAQ on HTML5it states:
在关于 HTML5的W3C 常见问题解答中,它指出:
Is there support for digital rights management (DRM) in HTML5 video?HTML5 doesn't provide direct support, nor any barrier, to using DRM in video. It currently expects this to be handled by the particular codec/implementation. There are implementations which allow for DRM in HTML5 video.
Is dealing with DRM in scope for HTML5?If enough stakeholders want to standardise some aspect of handling DRM in HTML5 itself as part of the inclusion of video and audio media, then it makes sense for W3C to help standardise an approach which meets the needs of the market. However like all W3C work, relevant stakeholders need to be and show they are committed to developing it rather than expecting it to happen on its own.
是否支持 HTML5 视频中的数字版权管理 (DRM)?HTML5 对在视频中使用 DRM 不提供直接支持,也没有任何障碍。它目前希望这由特定的编解码器/实现来处理。有一些实现允许在 HTML5 视频中使用 DRM。
是否在 HTML5 范围内处理 DRM?如果有足够多的利益相关者希望在 HTML5 本身中标准化处理 DRM 的某些方面作为包含视频和音频媒体的一部分,那么 W3C 帮助标准化满足市场需求的方法是有意义的。然而,与 W3C 的所有工作一样,相关利益相关者需要并表明他们致力于开发它,而不是期望它自行发生。
Which means it's currently not supported, but there has been a discussion about it on the W3C bug tracker here.
这意味着它是目前不支持,但一直一下在W3C bug跟踪系统的讨论在这里。
Update:People interested in this subject might want to consult the working draft of the new encrypted media extension standard.
更新:对这个主题感兴趣的人可能想咨询新的加密媒体扩展标准的工作草案。
Updated:EME is currently supported in major browsers.
更新:目前主要浏览器支持 EME。
回答by Tony
It does now. https://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html
现在确实如此。 https://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html
Here is an example. http://www.html5rocks.com/en/tutorials/eme/basics/
这是一个例子。 http://www.html5rocks.com/en/tutorials/eme/basics/
This is the best page that I could find on current browser support. http://www.jwplayer.com/html5/mediasource/
这是我能在当前浏览器支持中找到的最好的页面。 http://www.jwplayer.com/html5/mediasource/
At the time of writing this, EME is supported in
在撰写本文时,EME 支持
- IE11 in Win8.1
- Chrome (Desktop and mobile)
- Safari 8 in OSX Yosemite
- Win8.1下的IE11
- Chrome(桌面和移动)
- OSX Yosemite 中的 Safari 8
回答by Kornel
Probably not, even though there's an EME DRM plug-in interface.
可能不会,即使有 EME DRM 插件接口。
Some browsers now support another type of a plug-in called EME (Encrypted Media Extension CDM) for vendor-specific DRM implementations such as Microsoft PlayReady, Google WideVine, Apple FairPlay, etc.
某些浏览器现在支持另一种称为 EME(加密媒体扩展 CDM)的插件,用于供应商特定的 DRM 实现,例如 Microsoft PlayReady、Google WideVine、Apple FairPlay 等。
However, the only part of it that is a public standard is a JS API that launches a vendor-specific EME plug-in.
但是,其中唯一是公共标准的部分是启动特定于供应商的 EME 插件的 JS API。
The actual DRM API required to make use of it is vendor-specific, secret and proprietary. To have working DRM across browsers you will have to sign separate contracts with Adobe, Microsoft, Google and Apple (which may be difficult if you're not Netflix).
使用它所需的实际 DRM API 是特定于供应商的、秘密的和专有的。要跨浏览器使用 DRM,您必须与 Adobe、Microsoft、Google 和 Apple 签订单独的合同(如果您不是 Netflix,这可能会很困难)。
Consider abandoning idea of DRM, as it's more likely to backfire than protect the content.
考虑放弃 DRM 的想法,因为它比保护内容更有可能适得其反。
This is an updated answer, comments don't make sense any more
这是一个更新的答案,评论不再有意义
回答by Gedw99
回答by Joseph
Widewineprovides video DRM for HTML5 and h.264. Recently, another company Haihaisoft said they released HTML5 DRM for MP4 and WebM video: . It doesn't need Flash anymore. You might try it online. HTML5 Demo in Xvast browserDRM-X 4.0 in the news
Widewine为 HTML5 和 h.264 提供视频 DRM。最近,另一家公司海海软件表示,他们发布了用于 MP4 和 WebM 视频的 HTML5 DRM:. 它不再需要 Flash。你可以上网试试。新闻中 Xvast 浏览器DRM-X 4.0 中的HTML5 Demo
回答by Silvia
You could implement some kind of encryption scheme with public/private key - I recently heard about http://www.widevine.com/who seem to be doing something like that for html5 and h.264 . But I am not aware of anyone having applied to web video in general.
您可以使用公钥/私钥实现某种加密方案 - 我最近听说http://www.widevine.com/似乎正在为 html5 和 h.264 做类似的事情。但我不知道有没有人申请过网络视频。
回答by Chris
Sure you can stop someone from downloading the file simply by not giving them permission to download anything from certain folders on your server. Maybe there is something I am missing here. Seems like that would be a relatively easy solution.
当然,您可以通过不授予某人从您服务器上的某些文件夹下载任何内容的权限来阻止某人下载文件。也许我在这里缺少一些东西。看起来这将是一个相对简单的解决方案。