VOD & OTT · December 4, 2026 · Stan Reshetnyk

Video Streaming Security: What Each Layer Stops, and What DRM Adds

Video Streaming Security: What Each Layer Stops, and What DRM Adds

By Stan Reshetnyk, CTO, Trembit (protocol-level WebRTC engineering and live-streaming infrastructure) · Last updated 20 November 2026

Video streaming security is a stack of separate controls, each stopping a different attacker. HTTPS protects the connection. Signed URLs and tokens control who can fetch segments, and for how long. Segment encryption protects the files on storage and on the CDN. DRM keeps the content key inside a protected module on the viewer’s device, away from page code. Forensic watermarking traces a leak after it happens. None of them replaces the next, and none stops a camera pointed at a screen. This guide sets out what each layer stops, what defeats it, and when a licence makes DRM a requirement rather than a choice. Licence flows and platform wiring are in our VOD/OTT architecture guide.

Key takeaways

  • Each layer answers one threat: TLS stops snooping on the path, signed URLs stop links working after expiry, segment encryption protects copied files, DRM keeps the key from page code and enforces licence policy, watermarking identifies a leaker.
  • A signed URL is a bearer credential, valid for whoever holds it until expiry. HLS AES-128 gives the key to any player that can reach the key URL: key custody, not the cipher, is its limit.
  • DRM does not stop screen capture or a paying viewer restreaming a licensed session. MovieLabs’ Enhanced Content Protection (ECP) specification concedes that screen camcording cannot be prevented, and points to forensic watermarking.
  • The licence agreement decides whether you need DRM. For content you own, signed URLs plus encrypted segments behind a gated key are often enough, in our engineering view.
  • WebRTC encrypts every media hop, but the W3C specifications we read define no DRM path for it. Protect interactive streams with access control and watermarks, or move them to a DRM-capable path at a latency cost.

Not an engineer? Read the key takeaways, what each layer stops, when you need DRM, what multi-DRM costs to run and what Trembit has built.

What does it mean to secure a video stream, and what does each layer stop?

Securing a video stream means choosing which attackers to stop, because each control defeats a different one. The usual threats: a paying viewer shares a link; a script downloads every segment; another site hotlinks your files; someone restreams your live feed; a user rips premium content from the decoded output; a compromised or rooted device gives up the key.

LayerStopsDoes not stopWhat defeats it
HTTPS (TLS)Snooping and tampering between CDN and playerAnything the receiving device does with the segmentsRarely the path itself; TLS ends at the player
Signed URLs, signed cookies, CDN tokensExpired or unsigned links; direct origin access, if the CDN is enforcedSharing or embedding inside the validity window; a viewer saving segmentsA valid token copied before it expires
Segment encryption (HLS AES-128)Reading files lifted from storage, a CDN or a cacheAnyone whose player can fetch the keyRequesting the key URL with the player’s own access
DRM (Widevine, PlayReady, FairPlay)Key extraction by page code; playback outside licence policyScreen capture; restreaming of a licensed session; account sharingA compromised device at an accepted security level; a camera
Forensic watermarkingAnonymity: it identifies the leaking session or releaseThe leak itselfA leak nobody detects or acts on
Geo/VPN filtering, concurrency limitsOut-of-territory viewing; one account on many screensSharing below the limitA VPN the detection misses

Our engineering summary; sources follow below.

Table of six streaming security layers showing what each stops, what it does not stop and what defeats it

Is HTTPS plus a signed URL enough?

For content you own, often yes, provided you accept what a leaked token allows. TLS protects the hop between CDN and player; the player still receives segments it can read and save. Signed URLs and tokens add who, and until when.

Defaults matter. Cloudflare’s Stream documentation says “By default, videos on Stream can be viewed by anyone with just a video id.” A token issued through its API is “valid for 1 hour” by default, and a custom expiry “Cannot be greater than 24 hours in the future from when the token is signed”.

AWS’s CloudFront documentation offers two forms: signed cookies when you “want to provide access to multiple restricted files, for example, all of the files for a video in HLS format”, and signed URLs to “restrict access to individual files” or when the client “doesn’t support cookies”. Its private content guide warns about the back door: “Requiring CloudFront URLs isn’t necessary, but we recommend it to prevent users from bypassing the restrictions that you specify in signed URLs or signed cookies.” Apple’s HLS Authoring Specification adds: “The URLs for Media Segments SHOULD NOT be completely static. URLs should be issued per device or changed over time.”

The threat model. A signed URL is a bearer credential: whoever holds a valid one can fetch until it expires, from anywhere its policy allows. A short lifetime narrows the window, but a two-hour film or a live channel then needs fresh tokens mid-playback: in our engineering view, either the player re-requests the playlist with a new token, or the token is a cookie scoped to the title’s files. Binding a token to an IP address narrows it further, but mobile viewers change addresses mid-session, and CloudFront’s custom policies do not accept IPv6 addresses at all. Neither stops a paying viewer saving the segments they were allowed to fetch.

Is HLS AES-128 encryption secure enough?

It protects the files, not the content from a viewer. RFC 8216, the published HLS specification, defines three methods: “NONE, AES-128, and SAMPLE-AES.” With AES-128, “Media Segments are completely encrypted” with a 128-bit key in Cipher Block Chaining (CBC) mode. A segment copied off storage, a CDN or a proxy cache is unreadable without the key.

Request path from player to app, CDN, manifest and key request, with plaintext marked where the player decrypts

The limit is key delivery. RFC 8216 says: “Encryption keys are specified by URI. The delivery of these keys SHOULD be secured by a mechanism such as HTTP Over TLS [RFC2818] (formerly SSL) in conjunction with a secure realm or a session token.” The player fetches the key and decrypts in its own memory. What defeats it: anyone with the player’s access can request the same key URL and decrypt every segment. The cipher is not the weak point; custody of the key is.

SAMPLE-AES is the method behind Apple’s FairPlay; Apple’s spec says: “If the content is encrypted with FPS, the method MUST be SAMPLE-AES.” The method does not decide custody; the key system does. Whether one encrypted set serves every DRM system depends on which Common Encryption mode, cenc or cbcs, each device accepts; the architecture guide covers that.

When AES-128 is enough, in our engineering view: when the threat is file leakage, and the key URL sits behind the same per-session entitlement as the manifest, with a short-lived token over HTTPS. We have built segment encryption for a client (see below). It is not enough when a licence names a DRM system or a security level.

What does studio-grade multi-DRM add that encryption alone does not?

Two things: a key that never reaches page code, and a licence that carries policy. The W3C Encrypted Media Extensions (EME) specification “does not define a content protection or Digital Rights Management system. Rather, it defines a common API that may be used to discover, select and interact with such systems”. EME defines the Content Decryption Module (CDM) as “the client component that provides the functionality, including decryption”. With a DRM key system, the licence delivers the key to the CDM, and decryption happens there, not in page code. Google says Widevine adopts EME and Common Encryption (CENC, ISO/IEC 23001-7). On policy, Microsoft says PlayReady “provides support for enforcing policies such as expiration dates, security levels, and output restrictions.”

Security levels decide quality per device. On Android, MediaDrm‘s SECURITY_LEVEL_HW_SECURE_ALL means “DRM key management, crypto operations, decoding of content and all handling of the media (compressed and uncompressed) is handled within a hardware backed trusted execution environment” (TEE). At the bottom of its five levels, SECURITY_LEVEL_SW_SECURE_CRYPTO, “DRM key management uses software-based whitebox crypto.” Software is easier to attack, which is why licences cap it.

In our reading, Widevine’s L1 and L3 names follow that hardware and software split. Bitmovin, a player vendor, describes L1 as “Performed entirely within a Trusted Execution Environment (TEE) or secure hardware processor” and L3 as “Performed entirely in software with no hardware protection”, “Typically limited to SD (480p or lower) playback”. It adds that browsers such as Chrome are “Often limited to L3, even on L1-capable systems like Windows or macOS.” PlayReady’s equivalent top level, SL3000, is “For devices only” and uses a TEE.

The SD cap is service policy written into licences, not a Widevine rule. In our engineering view, one title then plays in HD on a phone with hardware DRM and in SD in a browser held to L3, and support hears about it first.

Output protection. HDCP is link protection on HDMI and DisplayPort outputs; EME lets a player check it in advance with a minHdcpVersion policy. MovieLabs’ ECP v1.4 specification states: “The system shall support the requirement of HDCP 2.2 or better for specific content types, e.g., Ultra HD or enhanced HD.”

What DRM still does not stop: screen or camera capture of the decoded picture, a compromised device at a security level the licence accepts, a subscriber restreaming a licensed session, and shared credentials. ECP is blunt: “While ultimately camcording the screen cannot be prevented, it can be addressed by forensic watermarking.”

When do you need DRM, and when is it overkill?

The licence agreement decides, not the technology. MovieLabs published ECP 1.4, the latest version, in August 2024, and it leaves the call to each studio: “Each studio will determine individually which practices are prerequisites to the distribution of its content in any particular situation.” If you license content, the protection schedule in the contract names the systems, security levels, output protection and territory rules, and you build to it. If you own the content, you write the schedule, weighing what a leak would cost against what each layer costs to run. Either way, have an engineer read the protection schedule before you sign; it is a build specification.

ContentWhat the contract or business usually asksMinimum sensible stackUsually skip
Licensed film and TV (HD, UHD, early window)Named DRM systems, a security level per resolution, HDCP for UHD, often watermarking and territory rulesMulti-DRM, signed URLs, geo/VPN filtering, watermarking if namedNothing the schedule names
Live sports rightsTerritory, restreaming and takedown termsShort-lived tokens, geo/VPN filtering, DRM if named, per-session identification if takedowns must land mid-eventPer-release marks (they name no session)
Paid courses, SVOD you ownYour own termsSigned URLs or cookies, AES-128 with a gated key, concurrency limitsMulti-DRM, until a distributor or a measured leak asks for it
Internal trainingSSO and staff-only accessSSO-gated signed URLsDRM, forensic watermarking
Live auction or commerceAuthorised bidders, low delayShort-lived tokens, per-session authorisationDRM on the interactive stream (latency)
Telehealth recordingsPrivacy, not piracyAccess control, encryption at rest, audit logsDRM

Our engineering judgment. A licence schedule overrides any row.

Bringing licence clauses to the table? Our VOD platform team will walk through which layers they name, and where a DRM vendor is the right buy.

Decision flow for DRM: licensed content follows its licence schedule; other content usually skips DRM

What do forensic watermarking, geo-filtering and concurrency limits add?

They answer what DRM leaves open: who leaked, from where, and on how many screens. None of them stops the first copy.

Forensic watermarking embeds an identifier in the picture that is designed to survive into a leaked copy. ECP v1.4 requires “the ability to securely forensically mark video at the server and/or client to recover information necessary to address breaches.” A per-release mark tells you which distribution copy leaked; a per-session mark tells you which account, which is what you need to act.

DASH-IF’s A/B design, published by ETSI as TS 104 002, keeps marking off the device: the transcoder makes an A and a B variant of each segment, and the packager or CDN delivers one or the other per session, so the sequence of choices encodes the session ID. DASH-IF says encoder, packager, CDN and watermarking vendor “have to work hand in hand”. In our engineering view, the cost is double encoding and storage plus edge logic. Client-side marking avoids that but trusts the player. A mark is worth only what your detection and takedown process does with it.

Geo and VPN filtering. ECP v1.4: “Services shall use effective geo-filtering and VPN/proxy detection at the CDN to restrict access to the licensed geographies.” A CDN country rule, such as Cloudflare’s ip.geoip.country, is the simple half; VPN and proxy detection is the hard half, and the VPN it misses defeats the layer.

Concurrency limits cap how many streams one account runs at once. In our engineering view, enforce them where licences or tokens are issued, by refusing a new one past the limit. They defeat credential sharing at scale; sharing under the limit passes.

How is protecting live different from protecting VOD?

Live adds an ingest side to defend and a playlist that keeps changing.

Ingest. Treat the stream key as a password: whoever has it can publish to your channel. Send it over RTMPS rather than plain RTMP, issue one key per publisher, and rotate keys when people or encoders change. Transport security by ingest protocol is in our camera ingest guide.

Playback. A live playlist keeps rolling, so tokens must either last the whole session or refresh with it; signed cookies scoped to the channel’s files avoid re-signing every segment URL. For a long-running channel, in our engineering view, change content keys during the event so one leaked key does not open the whole broadcast. Rotation does nothing against restreaming. It brings a burst of licence requests at each key change, and a DVR window must still serve the older keys, so confirm your packager and key provider handle both.

Latency. Licence acquisition at playback start, per-session watermark variants and key rotation each add work to the delay budget, so latency and protection trade against each other. What delay each protocol gives you is in our protocol map.

The live loss is restreaming during the event. For sports and events, a takedown that lands after the final whistle recovers little, so tokens, geo rules and monitoring have to act while the event is live. If live is your product, our live streaming team will work through ingest and playback protection with you.

Can you put DRM on a WebRTC stream?

WebRTC path with DTLS-SRTP on each hop compared with the EME and CDM path, joined by a dashed vendor bridge claim
video streaming secuirty

Not through a standard browser path in the W3C specifications we read. WebRTC always encrypts media in transit, with DTLS-SRTP mandatory (see the camera ingest guide), but that protects the hop, not the content from the viewer: the receiving browser decrypts the media and hands the page an ordinary track to render.

On 19 November 2026, we searched the editor’s drafts of three W3C specifications. EME never mentions WebRTC, RTCPeerConnection or MediaStream. The WebRTC specification (webrtc-pc) and WebRTC Encoded Transform never mention DRM, “Digital Rights” or “Encrypted Media”.

End-to-end encryption is a different problem. WebRTC Encoded Transform supports end-to-end encryption (E2EE) for a use case that “requires that the conferencing server does not have access to the cleartext media”. The receiving endpoint still holds the key, so E2EE protects a call from the server, not content from the viewer. We cover it in end-to-end encryption for video calls.

Vendor bridges exist. EZDRM, a DRM service vendor, describes “a patent pending solution that combines WebRTC low-latency video delivery with commercial-grade DRM content security”. In its description, encrypted CMAF travels over a WebRTC connection to a player component that hands it to the device CDM. That is a vendor claim about a proprietary design, not a standard; we have not tested it.

What we recommend, in our engineering view: for interactive streams such as bidding, calls and live classes, protect access rather than the bits. Use short-lived join tokens, per-session authorisation on the media server, a visible overlay with the viewer’s identity where leaks matter, and mid-session removal. If a licence demands DRM for a stream, deliver that stream over low-latency HLS or DASH through the standard EME path and accept the added delay, or validate a vendor bridge against the licensor’s schedule first.

What does multi-DRM cost to run, and who should run it?

The cost sits less in licences than in keys, devices and operations. Prices depend on volume and vendor, so get quotes.

  • Licences. Google says: “A license agreement is required for the use of Widevine products or services. Widevine does not assess any fee for use of its products and services.” That does not make multi-DRM free. In our engineering view, the licence servers and key services you buy or run are a separate cost line, priced by the vendor.
  • Apple credentials. Apple approves FairPlay deployment “only if your team provides a streaming service to consumers”, so your own team requests it, on Apple’s timeline.
  • Keys per tier. ECP v1.4: “ECP protected content shall use content encryption keys that are different from those used for encrypting content protected with less than ECP-level security.” In practice, a lower tier that L3 browsers may play and a UHD tier on hardware DRM need separate keys and separate licence policies.
  • Device testing. Each target device, at the security level it actually gets, with HDCP on TV outputs.
  • Player work per platform: EME on the web, native players elsewhere.
  • Incident operations. If the licence service is down, no protected title starts; run it like an authentication service, monitored and redundant.

Who should run it, in our engineering view: integrate a licence service and own the integration, rather than building a licence server. Five questions to ask any DRM vendor:

  1. Who holds the content keys, and can we export them if we leave?
  2. Which security level does each of our target devices get, and at what resolution?
  3. How is key rotation for live supported and priced?
  4. What happens to playback start when your licence service is unavailable?
  5. How do we configure separate keys and policies per protection tier?

Ask each vendor to price its quote against the cost lines above, so the quotes compare.

What has Trembit built around stream protection?

We have no published client project that ships studio-grade multi-DRM (Widevine, PlayReady, FairPlay), forensic watermarking or MovieLabs-level content protection, so the DRM, watermarking and WebRTC-DRM sections rest on the specifications and vendor documentation cited, not on our own delivery.

What we have built sits in the layers below DRM:

  • Segment encryption at the edge. For a defense client streaming from drones, we built a GStreamer pipeline on Raspberry Pi hardware that serves WebRTC and AES-encrypted HLS from one encoding pipeline. Video is encrypted in transit: DTLS-SRTP for WebRTC, AES-encrypted HLS segments. That is segment encryption, not studio DRM.
  • Token-based offline access. For an artist content marketplace, we built offline downloads with “pre-validated access tokens that work without connectivity”. That is access control, not DRM.

For the DRM layer itself, we would integrate a vendor’s licence service, as the cost section recommends, and own the access and delivery layers around it. Scoping protection for an on-demand catalogue? Our VOD platform team starts by reading your licence against these layers.

FAQ

Do I need DRM to stream video? Only if a licence requires it, or a leak would cost more than DRM costs to run. Licensed film, TV and sports usually come with a protection schedule. For content you own, signed URLs plus encrypted segments behind a gated key often suffice.

Are signed URLs the same as DRM? No. A signed URL controls who can fetch a file and until when; once fetched, the segment is the viewer’s to keep. DRM controls the decryption key and enforces licence policy on the device. Many products use both.

What do Widevine L1 and L3 mean for playback quality? L1 decrypts and decodes in a hardware-backed environment; L3 runs in software. Per Bitmovin, L3 is typically held to SD, and browsers often get L3 even on L1-capable machines. That cap is service and licence policy, not a Widevine rule.

Can WebRTC streams use DRM? Not through a standard browser path in the W3C specifications we read. WebRTC encrypts every hop, but the receiving browser holds the decrypted media. Protect interactive streams with access control and watermarks, or move licensed content to a DRM-capable low-latency path.

Deciding how much protection your streams need? Book a free 30-minute call with a Trembit engineer. Bring the licence clauses or your device list, whether the content is VOD or live, and the leak or contract line behind the question. You’ll leave with the layers that requirement maps to, and the ones you can skip. No deck, no pitch.

Stan Reshetnyk
Written by Stan Reshetnyk CTO

Related Articles

Ready to start?

Let Us Work Together

Tell us about your project and we'll get back within 24 hours.

Get in Touch