Is there a way to use DRM on HTML5 video?

38,516

Solution 1

On the W3C FAQ on HTML5 it states:

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.

Which means it's currently not supported, but there has been a discussion about it on the W3C bug tracker here.

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.

Solution 2

It does now. 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/

This is the best page that I could find on current browser support. http://www.jwplayer.com/html5/mediasource/

At the time of writing this, EME is supported in

  • IE11 in Win8.1
  • Chrome (Desktop and mobile)
  • Safari 8 in OSX Yosemite

Solution 3

Probably not, even though there's an EME DRM plug-in interface.

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.

However, the only part of it that is a public standard is a JS API that launches a vendor-specific EME plug-in.

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).

Consider abandoning idea of DRM, as it's more likely to backfire than protect the content.


This is an updated answer, comments don't make sense any more

Solution 4

Already in chrome.

Here is a running example using it.

Solution 5

Widewine provides 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 browser DRM-X 4.0 in the news

Share:
38,516
Joost
Author by

Joost

Artificial Intelligence/Machine Learning Lua (Torch)/Python/JavaScript

Updated on June 20, 2020

Comments

  • Joost
    Joost almost 4 years

    Since Flash is losing ground I would like to know if there are ways to protect html5 videos with DRM (H264, .ogg and WebM).