2017-04-25, 14:42
(2017-04-25, 13:45)mwaterbu Wrote: Forgive my incomplete and non-technical understanding, but would it be possible to implement DRM similarly to Firefox?As I understand they do want to implement DRM exactly the same way as Firefox and Google Chome or any other HTML5 web browser featuring a CDM (Content Decryption Module) interface which followes the W3C EME specification, as at least the EME (Encrypted Media Extensions) part could be made fully open source compatible.
https://andreasgal.com/2014/05/14/eme/
https://www.linaro.org/blog/engineering-update-16-04/
The issue is that Kodi as a GPL licensed software is according the GPL license not allowed to not ship with the CDM (Content Decryption Module) for Google Widevine, Microsoft PlayReady, and Adobe Primetime CDM because it as a proprietary binary blob is not compatible to be included with a GPL software. These mentioned CDM files are what are the actual cloused source "DRM modules" that the controversy is all about as only a few of approved companies have been making them so far for widespread use.
https://support.mozilla.org/en-US/kb/enable-drm
https://www.microsoft.com/playready/features/HTML5.aspx
http://help.adobe.com/en_US/primetime/
To get around that GPL incompatibility with proprietary CDM modules for Widevine/ReadyPlay the Kodi software would simply not ship with those proprietary CDM module files, and instead would use the suggested workaround to rely on the CDM (Content Decryption Module) for Widevine/ReadyPlay that ships with Android (OS) / Microsoft Windows or applications such as the Google Chome / Firefox web browser to have those provide them as system services.
Playback of DRM-protected content in Kodi would then only work if the correct and up-to-date CDM files is already preinstalled on the underlying system (wheather the correct version of those CDM files are preinstalled by Android/Windows or Chrome/Firefox or other system service will probably not really matter to Kodi, though the CDM files will need to be correct and up-to-date). Without those proprietary CDM module files Kodi would simply work as it always has and does, it would still play all your other files and streams, just not any files and streams protected with Widevine/ReadyPlay DRM-encrypted streams.
PS: On a side-note there are open source compatible modules available, such as the Open Content Decryption Module (OCDM), so Kodi could ship with that CDM module:
https://github.com/fraunhoferfokus/open-...ion-module
http://ieeexplore.ieee.org/document/7442371/
Problem is that OCDM will not playback Google Widevine, Microsoft PlayReady, and Adobe Primetime CDM protected-content, as for that you need their closed source proprietary binary blobs.
...at least unless Netflix and HBO, etc. switches to open source compatible CDM module such as the OCDM.