Updated November 2026: Shaka Player v5.3 (current patch 5.3.6, 20 November 2026) with Next Generation Audio, HLS and SVTA ad interstitials and MoQT draft-22; Cast Web Receiver 3.0.0157 built for Shaka v5+; a Shaka error code lookup table; fresh npm downloads and bundle sizes.

Why this matters

If you ship video in 2026 to a browser, mobile web, Chromecast, smart TV, or some mix of those, someone will ask "Shaka Player or hls.js?" in the first sprint, and the answer shapes two years of engineering work. After this article a product manager should be able to ask an engineer the right questions about format coverage, DRM scope, offline support and smart-TV reach. A frontend, mobile-web or smart-TV engineer should come away with a complete mental model of the library: the engines it is built from, the events that feed a production telemetry pipeline, the config knobs that change ABR behaviour without forking the code, and the four families of error you have to handle on day one. No prior streaming knowledge is assumed, and we define each term where it first appears. If you only read one line, read this: pick hls.js when you ship HLS only and want the smallest bundle; pick Shaka Player when you ship any DASH, or need offline downloads, Chromecast or smart-TV reach. By the end you will know why Shaka Player exists, when to use it instead of hls.js, when to use it instead of dash.js, and why a current Shaka release plays low-latency DASH and HLS at about 3.5 seconds glass-to-glass with no extra player code at all.

What Shaka Player is, and what it is not

Here is the shortest accurate description. Shaka Player is a JavaScript library that reads a streaming manifest in MPEG-DASH or HTTP Live Streaming format, fetches the video chunks it lists, and hands them to the browser's Media Source Extensions API. When the stream is protected, it negotiates decryption keys with the browser's Content Decryption Module. Its event stream is detailed enough to drive a whole production player UI. All of this comes in an open-source, Apache-2.0-licensed package you npm install like any other dependency. By default it has no UI, though it ships an optional, accessible UI library if you want one. It does not transcode: your packager already encoded every byte it sends to the browser. It also plays more than HLS. hls.js plays HLS; Shaka Player plays both DASH and HLS through the same player.load() call.

The project's own README describes it in one sentence: "Shaka Player is an open-source JavaScript library for adaptive media." It plays DASH and HLS in a browser on top of Media Source Extensions and Encrypted Media Extensions (shaka-project/shaka-player, README, accessed 2026-10-09). That is the whole product. Shaka was created at Google in 2014 inside the Widevine team, as a reference DASH player for the Widevine DRM ecosystem. It was open-sourced in 2015 and later moved from the Google organisation on GitHub to the community-driven shaka-project org. In October 2026 the README lists three maintainers: Ateme, Google and Paramount (shaka-project/shaka-player, README for v5.2.13, accessed 2026-10-09). The current line is v5.3. v5.0.0 shipped on 6 February 2026, v5.1.0 on 15 April 2026, v5.2.0 on 10 July 2026 and v5.3.0 on 16 October 2026; v5.3.6 was published on 20 November 2026 (npm registry, shaka-player, accessed 2026-11-20). The team patches four branches every week (4.15, 4.16, 5.2 and 5.3), so a pinned older line still gets fixes. The 5.1 line stopped at 5.1.27 on 16 October 2026. Weekly npm downloads reached 507,191 for 13–19 November 2026, up from 391,229 in the first week of October 2026. In the same week hls.js did 15.4 million and dash.js 1.41 million (npm downloads API, accessed 2026-11-20). The two serve different audiences. hls.js is the default for "I just need HLS on the web". Shaka is the default for "I need DASH, or I need both, or I need offline, or I need Chromecast, or I need a player that does not depend on Apple's roadmap".

Two cards of the same layout compare Shaka Player and hls.js on six axes. Shaka Player, Apache 2.0, since 2014, v5.2: DASH yes, multi-period and LL-DASH through the DASH ManifestParser with content steering; HLS yes, LL-HLS parts and DATERANGE on the same StreamingEngine as DASH; multi-DRM Widevine, PlayReady and FairPlay plus ClearKey in one config block; offline storage yes, shaka.offline.Storage on IndexedDB with persistent licences; Chromecast: the default Cast receiver player for DASH and HLS since September 2026; about 391K npm downloads a week in October 2026, a smaller, DRM-heavy audience. hls.js, Apache 2.0, Dailymotion, 2015: DASH no, reach for Shaka or dash.js; HLS yes, LL-HLS parts, ManagedMediaSource on iOS; multi-DRM Widevine, PlayReady and FairPlay through drmSystems config since v1.3; no first-class offline API, you wire IndexedDB yourself; Chromecast not in core, only through Video.js or JW Player wrappers; about 9.7M npm downloads a week in October 2026, a bigger corpus and a smaller bundle. A note below says Tizen 2017+ is tested by the Shaka team, while webOS, Titan OS, TiVo OS, Hisense, Vizio and PlayStation are community-supported. Figure 1. Shaka Player covers both DASH and HLS through one API; hls.js covers HLS only. The choice is rarely about HLS quality — it is about the rest of the surface.

Two lines in a fresh tab tell you whether Shaka is supported: shaka.polyfill.installAll() followed by shaka.Player.isBrowserSupported(). The first installs polyfills that smooth over differences between browser implementations of Media Source Extensions and Encrypted Media Extensions. The second returns true in Chrome, Edge, Firefox, Opera, modern Safari with the ManagedMediaSource API, the Chromecast firmware's Web Receiver, the Tizen 2017+ smart TV browser, the WebOS browser since 4.0, and, as of v5.1, TiVo OS and Titan OS. It returns false on browser engines with no MSE at all, which in 2026 covers almost nothing on the modern web. Smart TVs need one caveat. The Shaka team actively tests Tizen 2017 models and the latest Chromecast firmware, while webOS, Hisense, Vizio, PlayStation 4 and 5, Titan OS and TiVo OS are listed as expected to work but community-supported (shaka-project/shaka-player, README support matrix, v5.2.13).

Shaka Player official website, demo, npm package and docs

Shaka Player has no separate marketing site. Its official home is the GitHub repository shaka-project/shaka-player, and the official Shaka Player demo lives at shaka-project.github.io/shaka-player-release. The old shaka-player-demo.appspot.com address now redirects there, and the API docs and tutorials moved to shaka-project.github.io/shaka-player/docs/api/ (checked 2026-10-09). Shaka Player is free and Apache-2.0 licensed; on 9 October 2026 it had 8,244 GitHub stars and 1,521 forks.

You are looking forWhere it is (November 2026)What you get
Official repositorygithub.com/shaka-project/shaka-playerSource, README support matrices, CHANGELOG, issues, roadmap
Demo playershaka-project.github.io/shaka-player-releaseRelease build with sample DASH, HLS and DRM streams; paste your own manifest URL and license server to test
Nightly demoshaka-project.github.io/shaka-playerThe main branch, for checking a fix before it ships
npm packagenpm install shaka-playerv5.3.6; also on jsDelivr and Google Hosted Libraries
Docsshaka-project.github.io/shaka-player/docs/apiAPI reference plus tutorials: basic usage, DRM, offline, errors, UI
Buildsdist/ in the packageFull build about 298 KB gzipped; DASH-only about 214 KB; HLS-only about 225 KB (no UI, Cast or offline); UI build about 381 KB; experimental build adds MSF and MKV

There is no official Shaka Player APK. Shaka is a JavaScript library, so on Android it runs in Chrome, a WebView or an Android TV web app, and native Android apps use Google's Media3 ExoPlayer instead. We measured the bundle sizes above on the v5.3.6 npm tarball on 20 November 2026; the full build has grown from about 276 KB in v5.2.13. For comparison, hls.js 1.7.4 is about 189 KB gzipped for the full build and 120 KB for the light build.

Why this library exists at all

Two libraries dominate browser-side streaming: hls.js and Shaka Player. They appeared at almost the same time (hls.js at Dailymotion in 2015, Shaka at Google in 2014-2015) and solved related but different problems. hls.js filled the gap left by missing HLS support outside Safari. Apple's HTTP Live Streaming worked natively on iPhone and macOS and nowhere else. Shaka was built to make Google's streaming stack usable on the open web: DASH packaged with Shaka Packager, encrypted with Widevine, served through Google Cloud CDN and played in the Chromecast Web Receiver. The two codebases grew up in parallel and took different positions on layering, ABR and the role of the UI.

The politics behind each project shape its roadmap. Shaka avoids opinions that conflict with the underlying specs. When ISO/IEC ships a new DASH revision, when Apple revises the HLS Authoring Specification, or when W3C tightens Encrypted Media Extensions, Shaka follows. What it adds on top is operational. A NetworkingEngine lets you intercept and rewrite every request. An offline-storage layer lets a user download a movie for a flight. A Chromecast bridge sends the same content to a big screen with one button, and a pluggable AbrManager lets you ship whatever algorithm your data supports. hls.js implements Apple's view of HLS in the browsers Apple does not control. Shaka implements DASH and HLS together in every browser, plus on platforms where the open web has historically struggled (Chromecast, smart TVs).

The largest deployment is Google's own Cast Web Receiver SDK. It has played DASH through Shaka for a long time, and Web Receiver 3.0.0156 (rolled out 4 August to 9 September 2026) set useShakaForHls to true by default. Shaka now plays HLS on Cast as well, with Shaka 4.15.56 as the default bundled version. Web Receiver 3.0.0157 (released 27 October 2026, rollout scheduled to finish on 10 November 2026) updated the receiver SDK for compatibility with Shaka v5+ (Google Cast, Web Receiver release notes, accessed 2026-11-20). As of 9 October 2026 the GitHub repository has 8,244 stars and 1,521 forks, about half of hls.js's 16,970 stars. The user base differs, though. Shaka users are far more likely to be paid OTT services shipping DRM, multi-CDN and offline storage, while hls.js users cover the long tail of webcasts, training videos and small live channels.

The architecture in one paragraph

A running Shaka Player instance is a small graph of engines attached to the top-level shaka.Player class. The constructor wires them up. A NetworkingEngine owns every outbound HTTP request through a plugin-per-scheme system. Each format gets its own ManifestParser instance (one for DASH, one for HLS) that turns manifest bytes into Shaka's internal "Variant" objects. A DrmEngine drives the browser's Encrypted Media Extensions API and the Content Decryption Module behind it, and a StreamingEngine runs the segment-fetch state machine and feeds bytes into the MSE SourceBuffer. A pluggable AbrManager picks the next variant to load. Two pieces are optional: a Storage layer for offline downloads and a shaka.ui.Overlay that renders the play button and controls. You call player.attach(video) to bind the instance to a <video> element, then player.load(url) to start fetching the manifest, and then you listen for events to drive your UI. Everything else is configuration.

The Shaka Player engine graph. A dashed frame marks the core bundle, shaka-player.compiled.js. At the top sits shaka.Player with attach(video), load(url) and configure, the registration seams registerScheme, registerParserByMime and registerKeySystem, and a note that it wires up every engine and is the only object the app talks to. Arrows lead down to six engine cards in a two-by-three grid. NetworkingEngine: every HTTP request goes here; registerScheme(scheme, plugin); RetryParameters and filters. ManifestParser: DASH and HLS, with MSF experimental; registerParserByMime; outputs Variants and Streams. DrmEngine: drives EME and the browser CDM; drm.servers and drm.advanced; Widevine, PlayReady, FairPlay. AbrManager, pluggable: picks the next variant; configure with abrFactory; throughput and dropped frames. shaka.offline.Storage, an optional offline layer: storage.store(uri).promise; IndexedDB and persistent licences. StreamingEngine: the segment-fetch state machine; appends bytes to the SourceBuffer; changeType and stall detection. An arrow leaves the frame from StreamingEngine down to a grey card, Browser: MSE SourceBuffer, W3C Media Source Extensions, ManagedMediaSource on iOS, src = URL.createObjectURL(ms). Beside it, a dashed orange card outside the frame: shaka.ui.Overlay, the separate shaka-player.ui.js bundle with accessible, localised controls, Cast, captions menu and picture-in-picture. The legend maps navy to the player core, green to Shaka engines, purple to the DRM seam and orange to optional or pluggable parts. Figure 2. The Shaka Player engine graph. Every engine has a single responsibility and a clean replacement seam: registerScheme, registerParserByMime, registerKeySystem, configure({abrFactory}).

That paragraph covers the whole picture. The rest of this article looks at each engine in turn, lists the events it emits, and points out the configuration switches that matter.

The NetworkingEngine

The NetworkingEngine wraps every outbound HTTP request the player makes: manifest fetches, segment fetches, license requests, side-loaded subtitles, server-time synchronisation and offline downloads. It uses a plugin-per-scheme model. Each URI scheme (http, https, data, blob, or a fully custom one) is registered through shaka.net.NetworkingEngine.registerScheme(scheme, plugin), and at most one plugin handles a given scheme. The defaults cover HTTP, HTTPS, data and blob. You replace them when you need to add OAuth headers, proxy through a token-signing service, or route a fetch through a service worker.

Each request passes through three rings of filters. A request filter runs before the fetch; use it to add an Authorization header, rewrite a host, or swap the URL entirely. A response filter runs once the response comes back, and that is where you decrypt a wrapped FairPlay license, parse a custom error envelope, or rewrite a content-type. Between the two sits the retry machinery, governed by RetryParameters: maxAttempts (default 2), baseDelay (1000 ms), backoffFactor (2.0), fuzzFactor (0.5), timeout (30 000 ms), stallTimeout (5 000 ms) and connectionTimeout (10 000 ms). Every retry waits baseDelay × backoffFactor^attempt, fuzzed by ±50% so a fleet of players cannot stampede a recovering origin (shaka-project/shaka-player, Network and Buffering Configuration, accessed 2026-10-09).

Production teams often underestimate Shaka's retry logic, so it is worth a closer look. Each of the three traffic classes (manifest, streaming segments, and DRM licenses) has its own retryParameters object. You can listen to the engine's retry event and call preventDefault() to stop further retries on a 401, where the problem is authentication rather than a transient network failure. The default streaming.failureCallback also treats live and VOD differently. On a live stream it schedules another attempt after certain network errors; on VOD every streaming failure is final. A 30-second outage on a live stream can clear up once the encoder catches up, whereas the same outage on a VOD asset usually means a permanently broken segment URL. If your live product needs a different policy, replace the callback (shaka-project/shaka-player, lib/player.js in v5.2.13, checked 2026-10-09).

The ManifestParser

The ManifestParser turns manifest bytes into Shaka's internal model: a shaka.extern.Manifest object holding a flat list of Variant objects, one per (audio, video, text) combination, each pointing at Stream objects that hold the segment timeline. Shaka has flattened multi-period DASH into continuous streams at parse time since v3. The standard build includes two parsers. The DASH parser handles MPD documents per ISO/IEC 23009-1, and the HLS parser handles m3u8 playlists per IETF RFC 8216 and Apple's HLS Authoring Specification. Microsoft Smooth Streaming support was removed in v5.0 (February 2026), so legacy IIS catalogues need repackaging or an older 4.x branch. The experimental build adds a third, live-only parser for MSF, the Media over QUIC streaming format. To register your own parser, use shaka.media.ManifestParser.registerParserByMime.

The DASH parser came first and has seen the most production use. It supports multi-period MPDs, content steering as defined by DASH-IF, the full SegmentTemplate / SegmentList / SegmentBase suite, the new low-latency availabilityTimeOffset mechanism, multi-DRM through <ContentProtection> elements, multiple audio renditions, and side-loaded subtitles in WebVTT or IMSC. The HLS parser arrived later and has since caught up. It now handles multi-variant playlists with EXT-X-STREAM-INF, multi-audio with EXT-X-MEDIA, key delivery through EXT-X-KEY and EXT-X-SESSION-KEY, byte-range segments, Discontinuity tags, EXT-X-DATERANGE for SCTE-35 ad markers, and the LL-HLS extensions Apple defined in the HLS Authoring Specification (parts, preload hints, blocking reload, rendition reports).

Once the manifest is parsed, the player uses one code path. The StreamingEngine and the AbrManager cannot tell whether a Variant came from an MPD or an m3u8. They see Shaka's internal Variant objects and walk the same state machine. That is why Shaka can play either format without a bloated API: everything format-specific stays inside the ManifestParser.

The DrmEngine and EME

Shaka Player plays Widevine, PlayReady and FairPlay through the browser's Encrypted Media Extensions. You give it one license server URL per key system in drm.servers, and it handles the license exchange. Shaka Player DRM needs no per-browser code.

The DrmEngine is the part of Shaka that handles Digital Rights Management. Suppose the ManifestParser reports that a Variant declares a key system: Widevine via com.widevine.alpha, PlayReady via com.microsoft.playready, or FairPlay via com.apple.fps. The DrmEngine then intercepts the StreamingEngine's segment append, calls navigator.requestMediaKeySystemAccess with the right MediaKeySystemConfiguration, opens a MediaKeySession, fetches the license from the URL configured in drm.servers, and passes the key to the browser's Content Decryption Module. Until the key arrives, the StreamingEngine cannot append encrypted bytes. This is why a slow license server is the most common cause of a black screen with no error on a paid stream.

In 2026 the standard configuration fits in one block:

player.configure({
  drm: {
    servers: {
      'com.widevine.alpha':      'https://drm.example.com/widevine',
      'com.microsoft.playready': 'https://drm.example.com/playready',
      'com.apple.fps':           'https://drm.example.com/fairplay',
    },
    advanced: {
      'com.apple.fps': {
        serverCertificateUri: 'https://drm.example.com/fairplay/cert',
      },
    },
  },
});

That is the entire surface most production deployments need (shaka-project/shaka-player, DRM Configuration tutorial, accessed 2026-10-09). FairPlay is the exception in the configuration syntax: Apple's key system requires a server-issued certificate before the license exchange begins, and Shaka surfaces this as a serverCertificateUri field inside the advanced block. For multi-DRM streams one player.load() call covers all three systems. Shaka picks the right one from the key-system support the browser reports, so you write no branching logic.

The DrmEngine also exposes lower-level seams for cases the defaults do not cover. A drm.initDataTransform callback lets you rewrite the PSSH boxes the browser hands you (the bytes that identify which key the segment was encrypted with) before they reach the CDM. That helps when your packager and your license server disagree about KID format. A request filter on the NetworkingEngine lets you sign license requests, attach a session token, or proxy through a key-rotation service. The drm.advanced block per key system exposes the full MediaKeySystemConfiguration surface (videoRobustness, audioRobustness, persistentState, distinctiveIdentifier) for deployments that need to lock Widevine down to HW_SECURE_ALL on smart TVs.

One Shaka-specific detail: the DrmEngine has its own retryParameters, separate from manifest and streaming retries (see §NetworkingEngine), so a flaky license server backs off on a different schedule than a flaky segment origin. This matters in production. To a viewer both failures look identical ("black screen"), yet they call for different operations playbooks. A segment outage is usually a CDN incident; a license outage is usually a license-server or key-rotation problem.

The StreamingEngine and MSE

The StreamingEngine is the core of the library. It owns the per-Variant fetch loop, calls the AbrManager when it is time to pick a new variant, and places fetched segments into the MSE SourceBuffer objects. It also handles the messy edges the spec authors left for clients to figure out: when to switch SourceBuffers during a seamless quality change (the answer involves SourceBuffer.changeType() for codec switches), when to flush the buffer ahead of the playhead (during a rapid down-shift, so bandwidth is not spent on bytes the user will never see), when to skip a missing segment in the timeline (live streams produce occasional gaps when the encoder restarts), and when to declare a fatal error instead of retrying forever.

The MSE-2 specification (W3C, Media Source Extensions™ 2, Editor's Draft tracked through 2025) added cleaner support for changeType and for appendEncodedChunks. Shaka uses both when available; on browsers that still ship MSE-1, the StreamingEngine emulates the same behaviour with a careful sequence of remove + appendBuffer calls. In production, watch for the "stall": the StreamingEngine believes it is appending bytes, yet the playhead has not advanced for longer than stallThreshold seconds (default 1). Shaka then emits a stalldetected event and, by default, nudges the playhead forward by stallSkip (0.1 s), a tiny offset that recovers from a known browser bug where MSE silently drops a sample. The defaults suit almost every deployment, and the knobs are there if yours is the exception.

On iOS Safari 17 and later, the StreamingEngine can also use the ManagedMediaSource API, Apple's iPhone-Safari subset of MSE that finally lets JavaScript players play DASH on iOS. ManagedMediaSource has tighter rules about when the browser can reclaim memory, and it requires the source element to be wrapped inside a <source> child of <video>. Shaka detects it automatically and routes through it when present. So for the first time the cross-platform stack does not need an "iOS branch". In practice, though, many teams still prefer the native AVFoundation path on iOS when the content is HLS, because that path is hardware-accelerated end to end.

The AbrManager

The AbrManager is the part of Shaka that picks which variant to load next. The default implementation is a throughput-based heuristic. It tracks recent download bandwidth with an exponentially weighted moving average over recent segments, applies a safety factor, and picks the highest variant whose declared bitrate fits below the safety-adjusted estimate. The safety factors (bandwidthDowngradeTarget and bandwidthUpgradeTarget) are asymmetric on purpose. Switching down on jitter costs you quality for a few seconds; switching up too aggressively risks a rebuffer that costs watch time on the order of minutes (shaka-project/shaka-player, Network and Buffering Configuration, accessed 2026-10-09).

Two ABR refinements landed in v5.1. The first is low-latency-aware ABR: Shaka now passes an "is this stream low-latency?" hint to the AbrManager, so the algorithm can stay closer to the live edge instead of letting the buffer grow toward steady-state. The second is dropped-frames-aware ABR. Shaka monitors HTMLVideoElement.getVideoPlaybackQuality() and feeds dropped-frame counts into the AbrManager, so a smart TV that cannot decode 4K HEVC at 60 frames per second falls back to a variant the hardware can sustain rather than stuttering forever. Both ship as defaults and need no configuration (shaka-project/shaka-player, Release v5.1.0, 15 April 2026).

The AbrManager has the cleanest replacement seam in the player. You implement shaka.extern.AbrManager (init, chooseVariant, enable, disable, segmentDownloaded, playbackRateChanged, getBandwidthEstimate, setVariants, configure) and pass a factory through player.configure({abrFactory: () => new MyAbrManager()}). Teams use this seam to ship learning-based ABR, such as Pensieve, Comyco, or a custom in-house algorithm, on top of Shaka without forking the library.

Offline storage

Shaka Player's offline-storage layer is what most clearly separates it from hls.js. With the shaka.offline.Storage API you can download a manifest, every segment it points to, and the DRM license that decrypts it, store all of it in the browser's IndexedDB database, and play it back later when the user is offline. License storage relies on the EME "persistent-license" session type, which Widevine and PlayReady support on most platforms. FairPlay has offline support too, but on iOS it needs more application-side wiring (shaka-project/shaka-player, Offline Storage and Playback tutorial, accessed 2026-10-09).

const storage = new shaka.offline.Storage(player);
storage.configure({
  offline: {
    progressCallback: (content, progress) => console.log(progress),
  },
});
const stored = await storage.store(manifestUri).promise;
// later, even offline:
await player.load(stored.offlineUri);

That snippet is enough to ship a "Save for offline" button on a movie service for long-haul flights. The same API powers the offline-download feature in several OTT apps that ship Shaka inside a webview wrapper. The Storage class has its own progress events and a lifecycle that the application drives.

The UI library and the Cast bridge

Shaka ships an optional UI library as a separate bundle (shaka-player.ui.js). It provides accessible, localised, RTL-aware controls: play, pause, scrub bar, volume, captions menu, audio track menu, quality menu, full-screen, picture-in-picture, and a Cast button that lights up when a Chromecast device is on the same network. The UI is opt-in. If you have your own controls, keep the base shaka-player.compiled.js bundle.

The Cast bridge gets its own paragraph because only Shaka has it. The base library acts as both a sender (the page running in the user's browser) and a receiver (the JavaScript application running on the Chromecast firmware). When a user taps the Cast button, Shaka serialises the current player state (manifest URL, position, DRM configuration, language and caption choices, ABR target) and sends it to the receiver, which loads its own Shaka Player instance and resumes the stream on the TV. Google's Cast Web Receiver SDK already bundles Shaka. Since the 3.0.0156 rollout in August and September 2026 it is the default for both DASH and HLS, so a sender that uses Google's Cast SDK directly can count on the default receiver playing the stream through Shaka. The Shaka-to-Shaka bridge described above (shaka.cast.CastProxy on the sender) is a separate path and needs a receiver app built with shaka.cast.CastReceiver.

A minimum viable Shaka player

The seven lines below load a DASH or HLS stream into a browser tab and start playback. They assume a browser modern enough to support MSE and a manifest that is publicly fetchable.

import shaka from 'shaka-player';

shaka.polyfill.installAll();

if (!shaka.Player.isBrowserSupported()) {
  throw new Error('Browser not supported by Shaka Player');
}

const video = document.getElementById('video');
const player = new shaka.Player();
await player.attach(video);
player.addEventListener('error', e => console.error('Shaka error', e.detail));
await player.load('https://cdn.example.com/asset.mpd');

The API is symmetric. player.attach(video) binds the player to a <video> element, player.load(url) starts fetching the manifest, and player.unload() releases everything. The same code plays an .mpd (DASH) or an .m3u8 (HLS); Shaka picks the parser from the manifest's MIME type or file extension. To add a UI, you swap one line:

const ui = new shaka.ui.Overlay(player, container, video);

That instantiates the optional shaka-player.ui.js bundle and decorates the page with the default control surface. DRM, offline, Cast and ABR overrides are all player.configure() calls layered on top of those seven lines.

A worked latency example

On a 2026 project people often ask: "if we switch from regular DASH to LL-DASH with Shaka, how much glass-to-glass latency do we save?" Here is the arithmetic for one stream.

A regular DASH stream uses 6-second segments, and the player's target buffer sits three segments ahead of the playhead.

Segment duration × buffer depth = 6 s × 3 = 18 s of player-side latency.

Add about 4 seconds of network and origin latency plus 2 seconds of encoder packaging latency, and the glass-to-glass figure comes to:

18 s + 4 s + 2 s = 24 s.

That is steady-state, on a well-behaved CDN. Fine for a "wedding live-stream", too slow for "interactive sports highlights".

The LL-DASH version uses 2-second segments encoded as CMAF chunks of 200 ms each, with availabilityTimeOffset set so the player can request a chunk almost as soon as the encoder produces it. The player's target buffer drops to roughly one segment ahead of the live edge:

Segment duration × buffer depth = 2 s × 1 = 2 s of player-side latency.

Network and origin latency falls to about 1 s in the LL-DASH case, since the CDN shields chunked-transfer-encoded responses; encoder packaging falls to about 0.5 s.

2 s + 1 s + 0.5 s = 3.5 s glass-to-glass.

On a current release the Shaka side needs no change. Since v4.16 (August 2025) streaming.lowLatencyMode defaults to true and only takes effect on streams that advertise low latency; on those streams it also drops inaccurateManifestTolerance to 0 (Shaka Player API docs, shaka.extern.StreamingConfiguration, accessed 2026-10-09). If you pin an older line, or want the intent visible in code, the explicit form is one configuration call:

player.configure({
  streaming: {
    lowLatencyMode: true,
    inaccurateManifestTolerance: 0,
    rebufferingGoal: 0.01,
  },
});

Put those explicit values only on a player instance dedicated to low-latency streams, never in a global config. In both cases that is the whole delta in the player code. The real work sits with the packager (Shaka Packager, Bitmovin, AWS Elemental, or your encoder of choice) and with the CDN, which needs chunked transfer encoding enabled at the origin and intermediate caches that do not strip it. The comparable LL-HLS path, with EXT-X-PART parts and preload hints, is covered by the same default, and you can set lowLatencyMode: false if you ever need to opt out. That is one structural advantage of a multi-format player.

Two horizontal bars on the same scale compare latency budgets. Regular DASH, with 6-second segments and a target buffer of three segments, runs 2 s of encoder, 4 s of network and CDN and 18 s of player buffer, three times 6 s, for 24 s total. LL-DASH, with 2-second segments, 200-ms CMAF chunks and availabilityTimeOffset, runs 0.5 s of encoder, 1 s of network and CDN and 2 s of player buffer, one times 2 s, for 3.5 s total, a bar about one seventh as long. A note reads: the player buffer falls from 18 s to 2 s, which is most of the saving; chunked transfer at the CDN and encoder chunking do the rest. Below, a heading notes that low-latency mode is on by default since v4.16, followed by the explicit form: player.configure with streaming lowLatencyMode true, inaccurateManifestTolerance 0 and rebufferingGoal 0.01. The legend maps orange to encoder, navy to network and CDN, light grey to the regular DASH buffer and green to the LL-DASH buffer. Figure 3. Where the 20-second saving comes from. Most of it is the player buffer dropping from 18 s to 2 s; CDN behaviour and encoder chunking deliver the rest.

Shaka Player vs hls.js — nine axes that decide

Teams ask "Shaka or hls.js?" often enough that a comparison table is required reading. Both libraries are excellent, Apache-2.0-licensed and actively maintained, and serious teams run them in production. Where they differ is in what they cover and how they extend.

AxisShaka Playerhls.jsWinner for this axis
Format coverageDASH + HLS (Smooth Streaming removed in v5.0; MSF over QUIC experimental)HLS onlyShaka if you ship DASH at all
Weekly npm downloads (13–19 Nov 2026)~507,000~15.4 millionhls.js — bigger ecosystem
GitHub stars (9 Oct 2026)~8,200~17,000hls.js — bigger community
Bundle size, gzipped (Nov 2026)~298 KB full; ~214 KB DASH-only; ~225 KB HLS-only~189 KB full; ~120 KB lighthls.js — smaller
DRM scopeWidevine, PlayReady, FairPlay, ClearKey, multi-DRM in one configWidevine, PlayReady, FairPlay through drmSystems (v1.3+)Tie — both ship multi-DRM in 2026
Offline storageFirst-class IndexedDB-based Storage APINo first-class offlineShaka — by a wide margin
ChromecastDefault player in the Google Cast Web Receiver for DASH and, since Aug–Sep 2026, HLSCast through Video.js or custom plumbingShaka — out of the box
Smart-TV coverageTizen 2017+ and Chromecast tested by the team; webOS, Hisense, Vizio, PlayStation, Titan OS, TiVo OS community-supportedTizen / webOS via community forksShaka — wider listed coverage
iOS Safari (ManagedMediaSource)Auto-detected, supported in v4+Auto-detected since v1.5Tie — both ship it
The default decision rule that falls out of this table: pick hls.js when you ship HLS only and want the largest community and smallest bundle; pick Shaka when you ship DASH at all, or when you need offline, Chromecast, or smart-TV reach. The wrong question is "which is better?" — they are not in the same fight. The right question is "which is the smaller bet for the next two years?" and the answer depends on what your packager produces and which devices you have to reach.

The most common shape of a Fora Soft engagement is an OTT product that already has Widevine-encrypted DASH for Android and the web plus FairPlay-encrypted HLS for iOS, wants Chromecast support from launch, and plans to add offline downloads in Q2. That stack picks Shaka almost every time. We ship hls.js only on the rare project that is HLS-only on the web and has no plans to add the rest. The reverse case, an HLS-only training-video platform with no plans to add DRM or Cast, picks hls.js for the smaller bundle and the larger debugging community.

A production error-recovery pattern

Every production Shaka deployment runs into the same family of errors. The library categorises them by shaka.util.Error.Category, which is one of NETWORK, MEDIA, DRM, MANIFEST, STREAMING, TEXT, STORAGE, CAST, PLAYER or ADS, and by shaka.util.Error.Severity, either RECOVERABLE or CRITICAL (shaka-project/shaka-player, Error Handling tutorial, accessed 2026-10-09). Below is the pattern we ship by default.

player.addEventListener('error', event => {
  const error = event.detail;
  const { category, code, severity, data } = error;

  // Telemetry first — every error, recoverable or not, is a data point.
  telemetry.track('shaka_error', { category, code, severity });

  if (severity === shaka.util.Error.Severity.RECOVERABLE) {
    // Shaka is already retrying. Show a small toast and stay silent.
    ui.showToast('Reconnecting…');
    return;
  }

  // CRITICAL: Shaka has given up. Decide what to do per category.
  switch (category) {
    case shaka.util.Error.Category.NETWORK:
      ui.showError('Network problem. Tap to retry.');
      break;
    case shaka.util.Error.Category.MEDIA:
      // Decoder problem — flush MSE and reload.
      player.unload().then(() => player.load(currentUrl));
      break;
    case shaka.util.Error.Category.DRM:
      // License problem — application has to re-authenticate the user.
      ui.showError('Your session expired. Please sign in again.');
      break;
    case shaka.util.Error.Category.MANIFEST:
      // The manifest URL is broken or the asset was withdrawn.
      ui.showError('This title is not currently available.');
      break;
    default:
      ui.showError('Playback failed. Tap to retry.');
  }
});

Most production deployments need no more error handling than that listener. Two details matter. Every error goes to telemetry before any user-facing action runs. Recoverable errors deliberately trigger nothing user-facing, because Shaka is already retrying; showing a banner on every recoverable network blip is the error-handling mistake we see most often in code reviews. The categories above also map cleanly onto the four operations playbooks a streaming product needs: CDN-or-network, packaging-and-MSE, license-server and asset-catalogue.

Shaka error categories mapped to runbooks. A player.on('error') listener sends every error to telemetry first, then checks severity. RECOVERABLE branches right: show a toast only, because Shaka is retrying. CRITICAL goes down into switch on error.category and four rows. NETWORK and STREAMING, segments stopped arriving: the CDN runbook, CDN health and failover, 5xx retry pressure and hit ratio; the viewer sees a banner, tap to retry. MEDIA, a decoder or segment problem: the packaging and MSE runbook, fragment validity and codec, MSE changeType use; a silent reset with unload() and load(). DRM, the CDM never got a key: the license-server runbook, server health and KID and PSSH match, token expiry and Widevine level; the viewer sees a modal, session expired. MANIFEST, the URL is broken or the title withdrawn: the asset-catalogue runbook, publishing pipeline and packager, geo-rights and withdrawn URL; the viewer sees a banner, not available. A closing note: every error goes to telemetry first; the viewer sees a message only on CRITICAL, and recoverable errors stay silent. Figure 4. Map each error category to a specific runbook. The most common error-handling mistake is surfacing every recoverable error to the user.

Shaka Player error codes: how to read them

A Shaka error is a shaka.util.Error object with four fields: a numeric code, a category, a severity and a data array that holds the details. The leading digits of the code give the category: 1xxx network, 2xxx text, 3xxx media, 4xxx manifest, 5xxx streaming, 6xxx DRM, 7xxx player, 8xxx Cast, 9xxx storage and 10xxx ads (shaka-project/shaka-player, lib/util/error.js in v5.3.6, checked 2026-11-20). "Shaka error 1001" is therefore a network error, and "6007" a DRM error.

CodeNameWhat it meansWhere to look first
1001BAD_HTTP_STATUSThe server answered with a failure status; data[1] holds the statusCDN or origin, signed URLs, CORS
1002HTTP_ERRORThe request failed without a server responseNetwork, CORS preflight, mixed content
1003TIMEOUTA request timed outretryParameters.timeout, CDN latency
3014MEDIA_SOURCE_OPERATION_FAILEDA MediaSource operation failed on a segmentCodec string, segment validity, packager
3016VIDEO_ERRORThe video element reported a decode or playback errorCodec support on the device, corrupt media
4000UNABLE_TO_GUESS_MANIFEST_TYPEShaka could not tell DASH from HLS by extension or MIME typePass the MIME type to load() or fix Content-Type
4012RESTRICTIONS_CANNOT_BE_METStreams exist, but restrictions or the key system rule them all outResolution caps, HDCP, DRM robustness
6001REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLENo requested key system is available in this browserKey system support, robustness levels, HTTPS
6007LICENSE_REQUEST_FAILEDThe license request timed out, failed or was rejectedLicense server, tokens, request filters
6012NO_LICENSE_SERVER_GIVENThe manifest signals a key system with no license URL configureddrm.servers
6014EXPIREDEvery key in the session has expiredLicense duration, renewal
7000LOAD_INTERRUPTEDload() was interrupted by unload() or another load()Usually harmless; app navigation

Log code and data together. The code tells you which runbook to open, and data holds the URI, the HTTP status or the browser's own MediaError, which is what you need for the fix.

What v5 changed, and what to ship in 2026

The v5 series is the current line of Shaka Player. v5.0.0 shipped on 6 February 2026 as a breaking release. It removed Microsoft Smooth Streaming, the LRC, SBV and SSA subtitle formats, setTextTrackVisibility and every deprecated API, and apps now have to call updateStartTime instead of setting currentTime during startup. New features include automatic subtitles generated by speech-to-text (configured under accessibility.speechToText); request filters that can run more than once per request, so you can re-sign a license URL on token rotation; AES-256-GCM for HLS; and experimental Media over QUIC playback (shaka-project/shaka-player, CHANGELOG v5.0.0).

v5.1.0 shipped on 15 April 2026 with three changes that matter for production players. The AbrManager now receives a "low-latency hint" from the StreamingEngine, so a custom ABR algorithm can account for live-vs-VOD differences without sniffing the manifest. The AbrManager also sees getVideoPlaybackQuality().droppedVideoFrames now, which lets dropped-frame counts feed into variant selection: a smart TV that cannot decode 4K HEVC at 60 frames per second falls back to 1080p instead of stuttering. v5.1 also adds basic support for two new smart-TV platforms, TiVo OS and Titan OS, closing a gap older versions had with long-tail TVs (shaka-project/shaka-player, Release v5.1.0, 15 April 2026).

v5.2.0 shipped on 10 July 2026, and the 5.2 line still gets weekly patches (5.2.19 on 20 November 2026). Changes worth knowing: MPEG-TS transmuxing now runs in a Web Worker, off the main thread; ClearKey plays in Safari through WebCrypto; getStats() reports timeToFirstFrame, a startup metric you can graph next to rebuffering; the DASH parser resolves linked Periods from the 6th edition of the spec; HLS sequenceMode is now off by default; CMCD reporting moved to the SVTA common library; and the UI gained a fisheye projection for Apple Immersive Video (shaka-project/shaka-player, CHANGELOG v5.2.0). Coming from 5.1, the upgrade is a minor version with no breaking changes listed. Coming from 4.x, budget for the v5.0 removals first, although 4.15 and 4.16 still receive weekly patches.

v5.3.0 shipped on 16 October 2026. The 5.3 line is the one to target for new deployments in November 2026, and v5.3.6 came out on 20 November 2026. The changelog lists no breaking changes. The additions: the DASH parser supports Preselections for Next Generation Audio, IAMF audio in CMAF and MP4 is complete, and ABR now offers every audio track and falls back to fewer channels when the device cannot play the richer one; HLS and SVTA ad interstitials are parsed inside the format parsers, with a cooldown setting for interstitial ads and MediaTailor played-ad-break skipping; DASH reads CMCD parameters signalled in the MPD (6th edition); a new drm.keepDrmEngineOnDetach setting keeps DRM state across detach; HLS falls back to native playback when MSE cannot handle the encryption and preloads AES keys hinted by EXT-X-PRELOAD-HINT; the TS transmuxer handles AV1; and the experimental MSF path moves to MoQT draft-22 with DVR, seeking and SCTE-35, dropping drafts 14 and 16. In the UI there are new seek-back and seek-forward buttons and subtitle style menus (shaka-project/shaka-player, CHANGELOG v5.3.0).

Common pitfalls

Every project hits a few of the same Shaka issues. Here are six worth knowing before you ship.

Forgetting polyfill.installAll. Without it, Safari quietly misbehaves on half a dozen edge cases (audio context state, fullscreen events, ManagedMediaSource detection, Intl.Segmenter for caption rendering), and the symptoms look random. Install the polyfill before you construct the player, every time.

Mixing attach and load order on retries. After a CRITICAL error, a common pattern is await player.unload(); await player.load(url). It works because attach only needs to be called once per <video> element. Calling attach after unload on the same element is either a no-op or a throw, depending on version. Keep the attach tied to the page lifecycle and only unload + load on retry.

Surfacing recoverable errors to the user. Shaka emits error events for both RECOVERABLE and CRITICAL severities. A recoverable error means "I am already retrying", and a red banner on each one makes a working player look broken to the viewer. The minimum is the pattern shown earlier in this article: a toast for recoverable errors, a banner for critical ones.

Copying low-latency values onto regular streams. lowLatencyMode is on by default and changes behaviour only when the manifest advertises low latency. Hand-copying LL values such as inaccurateManifestTolerance: 0 and a tiny rebufferingGoal into a global config strips the drift tolerance regular streams rely on and makes rebuffering more likely. Low latency has to come from the packager (CMAF chunks for DASH, EXT-X-PART parts for HLS); the player should not force it.

Ignoring DRM retry parameters. Manifest and segment retries are only part of the picture. A license server is a separate service with its own SLA and its own failure modes, so configure drm.retryParameters independently and graph them separately in your QoE dashboard.

Trying to render the UI library without its CSS. The optional shaka-player.ui.js bundle needs controls.css to render correctly. After a switch to the UI library, the most common visual bug is "buttons are unstyled rectangles", caused by leaving the stylesheet out of the bundle. The npm package ships both the JS and the CSS.

↓ Free download: Shaka Player Production ChecklistOne page: the v5 line to pin, the engines and their seams, the ABR knobs, the LL-DASH and LL-HLS config, the DRM matrix, and the error categories mapped to runbooks.

Where Fora Soft fits in

We have shipped Shaka Player in production across most of our streaming-adjacent practice areas. That includes OTT and Internet-TV catalogues that need DRM, multi-format coverage and Chromecast from launch, and e-learning platforms that need offline downloads for students on intermittent connectivity. It also includes surveillance products where the same library plays live and recorded footage, plus a small number of telemedicine products that need EME-grade content protection for clinical recordings. In those verticals we have more than once been the engineering team that built the player layer end to end (configuration, ABR override, error telemetry, accessibility). Some audiences can be cleanly served by hls.js, for example a webcast platform whose catalogue is HLS-only and has no near-term DRM plans. There we recommend hls.js and use it instead: the right player is the one that matches the engagement's roadmap, whatever the size of its community on GitHub. If you are building that player layer now, our OTT and IPTV development team ships Shaka with multi-DRM, ABR tuning and Chromecast, and our video streaming software developers build the HLS and DASH packaging behind it. If you are testing Shaka's experimental MSF path for sub-second live playback, our Media over QUIC development team builds the relay and publisher side it plays from.

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

The book

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

This article maps Shaka's engines; volume 3 explains what each one is deciding. It covers the bitrate ladder and the ABR logic behind AbrManager, CDN behaviour and stall recovery, multi-DRM with Widevine, PlayReady and FairPlay, offline and trick play, so every configure() switch has the model behind it. Written by Nikolay Sapunov, CEO at Fora Soft.

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

Shaka or hls.js: which player fits your roadmap?

Tell us your formats, DRM systems, devices and offline plans, and we will tell you which player to ship, which engines to configure, and where your error handling is turning retries into banners. 250+ video products shipped since 2005.

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

See our case studies

References

  1. shaka-project/shaka-player: README and source tree, main branch. https://github.com/shaka-project/shaka-player (accessed 2026-10-09). Project identity, Apache-2.0 license, "DASH & HLS client / MSE-EME player" tagline, supported platforms. README for v5.2.13: maintainers (Ateme, Google, Paramount), platform, DRM and manifest support matrices, builds, demo and docs links.
  2. shaka-project/shaka-player: Tutorial: Basic Usage. https://github.com/shaka-project/shaka-player/blob/main/docs/tutorials/basic-usage.md (accessed 2026-05-24). The minimum-viable player snippet (polyfill, isBrowserSupported, attach, load) and the event listening pattern.
  3. shaka-project/shaka-player: Tutorial: DRM Configuration. https://shaka-project.github.io/shaka-player/docs/api/tutorial-drm-config.html (accessed 2026-10-09). drm.servers map, FairPlay advanced.serverCertificateUri requirement, multi-DRM single configuration.
  4. shaka-project/shaka-player: Tutorial: Network and Buffering Configuration. https://github.com/shaka-project/shaka-player/blob/main/docs/tutorials/network-and-buffering-config.md (accessed 2026-10-09). RetryParameters defaults (maxAttempts 2, baseDelay 1000 ms, backoffFactor 2, fuzzFactor 0.5) and per-class retry separation, re-checked against lib/net/backoff.js in v5.2.13.
  5. shaka-project/shaka-player: Tutorial: Error Handling. https://shaka-project.github.io/shaka-player/docs/api/tutorial-errors.html (accessed 2026-10-09). shaka.util.Error.Category and Severity taxonomy; preventDefault pattern for the retry event.
  6. shaka-project/shaka-player: Tutorial: Offline Storage and Playback. https://shaka-project.github.io/shaka-player/docs/api/tutorial-offline.html (accessed 2026-10-09). shaka.offline.Storage API, IndexedDB storage, and integration with the persistent-license EME session type.
  7. shaka-project/shaka-player: Release v5.1.0, 15 April 2026. https://github.com/shaka-project/shaka-player/releases (accessed 2026-05-24). Low-latency ABR hint, dropped-frame-aware ABR, TiVo OS and Titan OS support, transmuxer optimisations.
  8. shaka-project/shaka-player: CHANGELOG, entries v5.0.0 (6 February 2026), v5.1.0 (15 April 2026), v5.2.0 (10 July 2026) and v5.3.0 (16 October 2026). https://github.com/shaka-project/shaka-player/blob/main/CHANGELOG.md (accessed 2026-11-20). Smooth Streaming and LRC/SBV/SSA removal, automatic subtitles, MoQ/MSF experimental support, Web Worker transmuxing, Safari ClearKey via WebCrypto, timeToFirstFrame, DASH linked Periods; v5.3 Preselections, IAMF, HLS and SVTA interstitials, keepDrmEngineOnDetach, MoQT draft-22; the v4.16.0 change to low latency by default.
  9. Google Cast: Web Receiver release notes (3.0.0150, 3.0.0156, 3.0.0157). https://developers.google.com/cast/docs/release-notes (accessed 2026-11-20). useShakaForHls default set to true, which made Shaka the default for all Cast playbacks. Rollout ran 4 August to 9 September 2026 with default Shaka version 4.15.56; 3.0.0157 (27 October 2026) was updated for compatibility with Shaka v5+.
  10. Shaka Player API docs: shaka.extern.StreamingConfiguration. https://shaka-project.github.io/shaka-player/docs/api/shaka.extern.html (accessed 2026-10-09). lowLatencyMode defaults to true and applies only to streams that support low latency.
  11. npm registry: shaka-player package page and npm downloads API. https://www.npmjs.com/package/shaka-player; registry data: https://registry.npmjs.org/shaka-player/latest and https://api.npmjs.org/downloads/point/last-week/shaka-player (accessed 2026-11-20). v5.3.6 was published 20 November 2026. Downloads: 507,191 for 13–19 November 2026 (hls.js 15,381,341; dashjs 1,410,165) and 391,229 for 1–7 October 2026. Bundle sizes were measured on the v5.3.6, v5.2.13 and hls.js 1.7.4 tarballs.
  12. shaka-project/shaka-player: lib/util/error.js in v5.3.6 (jsDelivr mirror of the npm package). https://cdn.jsdelivr.net/npm/shaka-player@5.3.6/lib/util/error.js (accessed 2026-11-20). Error categories 1 to 10 and the codes in the lookup table.
  13. Standard: IETF RFC 8216, HTTP Live Streaming, R. Pantos and W. May, August 2017. https://www.rfc-editor.org/rfc/rfc8216 (accessed 2026-05-24). The base HLS protocol specification that the Shaka HLS ManifestParser implements.
  14. Standard: Apple Inc., HLS Authoring Specification for Apple Devices, revision 2025-09. https://developer.apple.com/documentation/http-live-streaming/hls-authoring-specification-for-apple-devices (accessed 2026-05-24). Controlling document for the LL-HLS extensions that Shaka v4+ implements (parts, preload hints, blocking reload).
  15. Standard: ISO/IEC 23009-1:2022, Dynamic adaptive streaming over HTTP (DASH), Part 1: Media presentation description and segment formats. https://www.iso.org/standard/83314.html (accessed 2026-05-24). Controlling document for the DASH MPD format that Shaka's DASH ManifestParser implements.
  16. Standard: W3C, Media Source Extensions™, Recommendation 17 November 2016; Media Source Extensions 2 Editor's Draft tracked through 2025. https://www.w3.org/TR/media-source/ (accessed 2026-05-24). The browser API that the StreamingEngine feeds, including SourceBuffer.changeType, which is used during seamless quality switches.
  17. Standard: W3C, Encrypted Media Extensions, Recommendation 18 September 2017; Working Draft updated 20 May 2026. https://www.w3.org/TR/encrypted-media/ (accessed 2026-05-24). The browser API the DrmEngine talks to; requestMediaKeySystemAccess and MediaKeySession lifecycle.
  18. shaka-project/shaka-player: Class: shaka.extern.AbrManager (JSDoc). https://shaka-project.github.io/shaka-player/docs/api/shaka.extern.AbrManager.html (accessed 2026-10-09). The interface used as a replacement seam: init, chooseVariant, segmentDownloaded, setVariants, configure.
  19. shaka-project/shaka-player: Class: shaka.drm.DrmEngine (JSDoc). https://shaka-project.github.io/shaka-player/docs/api/shaka.drm.DrmEngine.html (accessed 2026-10-09). DrmEngine internals, now in the shaka.drm namespace, and its NetworkingEngine dependency.

Under the article's standards-discipline rule, if Shaka's documentation disagrees with the underlying specs (HLS, DASH, MSE, EME), the spec wins. We found no such conflict for the topics covered here. Apple removed HTTP/2 server-push from Low-Latency HLS, and current LL-HLS players reflect that. Shaka is one of them: it relies on blocking playlist reload and preload hints instead of push.