3 ms·
In the current spec[1], CDM might either return the decrypted frame to the browser or forward it to the system. In practice it would be way too easy to patch s
by zimbatm 13y ago
In the current spec[1], CDM might either return the decrypted frame to the browser or forward it to the system.
In practice it would be way too easy to patch say Firefox if they implemented the spec to intercept the decoded frames. It means that either the CDM wouldn't work with any open-source browser, or that they will only directly render to the OS. But in that latter case I don't see how it would play well with the rendering of the page, it would be the same problem we had with old version of flash where you couldn't overlap elements.
Does anyone know if Chromium implements that feature (since Chromebooks already do) ?
[1]: https://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media-fpwd.html https://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-med...
- zimbatm 13y agoIf you want to have a look, here's Chromium's implementation of the spec: https://code.google.com/p/chromium/codesearch#search/&q=MediaKey&sq=package:chromium&type=cs https://code.google.com/p/chromium/codesearch#search/&q=... Update: here is an interface that decrypts a frame and returns the clear version: https://code.google.com/p/chromium/codesearch#chromium/src/webkit/media/crypto/ppapi/cdm/content_decryption_module.h&sq=package:chromium&dr=C&l=344 https://code.google.com/p/chromium/codesearch#chromium/src/w...