OTTSSAIDRMHLSDASHCMAFSmart TVCloudflare R2

OTNet

Bring-your-own-infrastructure streaming platform with server-side ad insertion. Publishers encode on their own machine and ship to every screen.

Visit Project
OTNet screenshot
OTNet screenshot

OTNet is a complete OTT streaming platform built on a different premise to the rest of the market: you keep your own infrastructure. Publishers encode on their own machine, store content in their own cloud bucket, and ship branded apps to every screen — without handing their library or their margins to a third-party platform.

Server-Side Ad Insertion

OTNet includes its own SSAI ad stitcher for both live and VOD, across HLS and DASH — multi-period DASH and discontinuity-stitched HLS. It reuses already-encoded segments, with no transcoding and no segment proxying at playback time.

Ad metadata is signalled properly on both protocols: SCTE-35 splice_insert cues surfaced as EXT-X-DATERANGE in HLS and EventStream in DASH.

DRM-Aware Ad Insertion

This is where most ad-insertion implementations break. Chrome cannot switch between cenc and cbcs encryption mid-stream — it fails with decrypt error 3 at the ad boundary.

OTNet's ad picker therefore matches protocol, container, encryption scheme and audio layout before it stitches anything. Every possible ad key ID rides along in the playback token, so a rotated ad never fails at the license server mid-break.

Packaging Decisions

  • CMAF with a single cbcs key covers FairPlay, Widevine and PlayReady from one set of segments
  • DASH defaults to cenc, because PlayReady 3.x on pre-2018 Samsung Tizen and LG webOS silently fails to decrypt cbcs — it does not error, it just does not play

Delivery Economics

Content and ads are served from Cloudflare R2 with zero egress fees, against roughly $0.09/GB on S3. Ad impressions are verified server-side and fired from the publisher's own Cloudflare Worker, so the impression count belongs to the publisher rather than to us.

Live and Linear

Linear live channels with DVR, plus AWS MediaTailor channel assembly running alongside OTNet's own channel and EPG implementation.

Clients

A desktop encoder for HLS, DASH and CMAF with Widevine, PlayReady and FairPlay DRM via EZDRM or BuyDRM — plus native TV apps for Samsung Tizen, LG webOS, Android TV and Fire TV.

Technology

Next.js, AWS MediaTailor, Cloudflare R2 and Workers, Electron, FFmpeg, Shaka Packager, Lightning, SwiftUI, Kotlin.

Technologies Used

OTTSSAIDRMHLSDASHCMAFSmart TVCloudflare R2

Want to build something similar?

Let's discuss how we can help bring your vision to life.