EME is the bridge between a JavaScript video player and the operating-system or browser-provided DRM CDM (Content Decryption Module). The player creates a MediaKeys object for a chosen key system (com.widevine.alpha, com.microsoft.playready, com.apple.fps), generates a MediaKeySession, hands the session the PSSH initialisation data from the encrypted media, gets a license-request message in return, sends that message to the license server, and feeds the license response back to the session. Once the session is licensed, the player can append encrypted media to MSE and the CDM decrypts it transparently for the decoder.

EME standardised what before 2014 was a per-vendor proprietary API. With EME, the same player code can talk to Widevine in Chrome, PlayReady in Edge, FairPlay in Safari, and Widevine on Android — just by negotiating the key system. The player still needs platform-specific license-server URLs and request formats, but the API surface is identical. Shaka Player and hls.js both use EME for all DRM playback.

EME has been controversial. Mozilla resisted shipping it in Firefox, EFF criticised it as DRM in a web standard, but by 2017 every major browser supported it because every commercial OTT service required it. By 2026 EME is a settled standard — the controversy is over and the API is invisible to viewers. Compatibility issues arise mostly around key system version mismatches (Widevine L1 vs L3, FairPlay version differences across iOS versions) which the player must handle.

Book cover: Video Streaming, Volume 3 of the Fora Soft Video Engineering Handbook

The book · Volume 3 of 7

Video Streaming: A Complete Guide to Video Delivery: From ABR and CDNs to Players, WebRTC, DRM, and the Economics of Streaming

EME is the browser API every protected web stream goes through, so license errors there mean a blank player for paying viewers. Volume 3 covers EME in detail within DRM and content protection, together with web players, ABR, recovery after playback errors and QoE monitoring. Written by Nikolay Sapunov, CEO at Fora Soft.

Read it on Amazon →Kindle & paperback · Fora Soft Video Engineering Handbook

Fixing EME license errors that leave your web player blank?

We will trace your EME and license flow across browsers and give you a fix list for the failures your viewers hit. 250+ video products shipped since 2005.

Book a 30-min call →WhatsApp →Email us →