On this page
An HTML5 streaming player SDK is a software library that plays streaming video inside a web page using only the browser’s built-in technology, without plugins. It takes care of everything between the video file and the viewer: fetching the stream, switching quality, decrypting protected content, showing subtitles and reporting what happens. HTML5 playback has been the standard since Flash disappeared, so the interesting question today is not whether to use it, but how it works and what a good player SDK should do. This article explains the building blocks.
The HTML5 video element and its limits
Every modern browser has a <video> element. Point it at a single MP4 file and it plays, with no extra code. For a short clip that is fine, but for a professional platform a single file falls short: every viewer gets the same quality regardless of their connection, the file is easy to download, and you can’t add protection, multiple audio tracks or live streams. That is why streaming platforms don’t serve one file but a stream, and use a player SDK to handle it.
The building blocks: HLS, DASH, MSE and EME
HLS and MPEG-DASH
Streaming video is cut into short segments of a few seconds, each encoded in several qualities. A manifest file lists which qualities and segments exist. The two main formats for this are HLS, developed by Apple, and MPEG-DASH, an international standard. Both work the same way in principle, and with the CMAF container format the same segments can often serve both.
Adaptive bitrate streaming
Because every segment exists in several qualities, the player can switch between them while the video plays. On a fast connection and a large screen it picks HD or 4K; when the connection drops, it steps down instead of stopping to buffer. This adaptive bitrate logic is one of the main jobs of a player SDK.
Media Source Extensions (MSE)
Most browsers can’t play an HLS or DASH manifest directly. Media Source Extensions is the web standard that lets JavaScript fetch the segments and feed them to the video element one by one. The player SDK does that work. Safari is the exception: it plays HLS natively, which is why HLS works on every Apple device.
Encrypted Media Extensions (EME)
For paid content you need DRM. Encrypted Media Extensions is the standard that lets the player talk to the DRM system built into the browser: Widevine in Chrome, Firefox and Edge, FairPlay in Safari and PlayReady in Edge on Windows. The player requests a licence, and the browser decrypts the video without exposing the key. Read more in our article on digital rights management.
What a player SDK adds
On top of these standards, a player SDK gives developers a ready-made player and an API to control it. Typical features:
- Playback controls and an API: play, pause, seek, volume, fullscreen, plus events your own code can respond to.
- Subtitles and audio tracks: switchable languages instead of subtitles burned into the image.
- DRM and access control: licence requests and fallbacks for devices that don’t support a given DRM system.
- Live and on demand: the same player for live streams and recordings.
- Casting: sending the video to a TV with Chromecast or AirPlay.
- Analytics and error handling: reporting what is watched, and recovering from network hiccups instead of showing an error.
- Branding: a player that matches your site rather than someone else’s.
Open-source player or a complete platform?
Open-source libraries such as hls.js, dash.js, Shaka Player and Video.js are mature and widely used. They solve playback, but nothing around it: you still need encoding, storage, a CDN, a DRM licence service, user accounts, payments and apps for other screens. For a development team building a custom product that can be the right choice. If you want to run a video service rather than build one, a platform that delivers the player together with everything behind it saves a lot of time. See how to embed a video player in your website for the practical side.
The AudiencePlayer player
AudiencePlayer includes its own player, one player for both video and audio. It streams adaptively up to 4K, shows switchable subtitles and multiple audio tracks, remembers where viewers left off, offers a skip-intro button and 10 seconds forward or back, and supports DRM and geo-restriction. Chromecast and AirPlay are available as an add-on module. On AudiencePlayer, content is encrypted with ClearKey (AES-128) as the basic layer, with Widevine, FairPlay and PlayReady available for full DRM, and the player automatically retries and resumes playback after a network hiccup instead of showing an error.
You can use the player in several ways:
- On your own AudiencePlayer website, with no code at all.
- Embedded in an existing site, through video embedding or the WordPress plugin.
- Headless, in your own front end: developers use the GraphQL API for content, users and entitlements, and integrate the web player library for playback. The API access article in the help centre is the starting point.
If you build your own front end, keep a few things in mind. Admin API credentials are for server-to-server use only and must never appear in client-side code. The API is rate-limited, and there is a limit on concurrent streams per user, so a custom app that sends every play request from one account will run into errors. And test on the real front end in several browsers and devices before launch, not only in the CMS preview.
Want to see the player with your own content? Request a demo, or contact us to discuss an integration.
Frequently Asked Questions
What is the difference between an HTML5 player and a player SDK?
An HTML5 player is the visible video player in the browser. A player SDK is the library behind it, with an API that developers use to control playback, handle streaming formats and DRM, and respond to events.
Should I use HLS or MPEG-DASH?
Both deliver adaptive streaming. HLS plays natively on Apple devices and works almost everywhere through MSE, while DASH is an open international standard used widely outside the Apple world; most professional platforms support both, so viewers don’t have to think about it.
Do viewers need to install anything to play DRM-protected video?
No. Widevine, FairPlay and PlayReady are built into modern browsers and devices, and the player talks to them through Encrypted Media Extensions. Very old devices may fall back to basic encryption.
Can I use the AudiencePlayer player in my own website or app?
Yes. You can embed videos in an existing site, use the WordPress plugin, or build a headless front end on the GraphQL API with the web player library. API access depends on your plan.
Can I change the look of the subtitles in the player?
On AudiencePlayer, subtitle styling and the subtitle menu are part of the player and can’t be customised. Viewers can switch between languages, and the label in the menu comes from the language you set when you add the subtitle file.


