Skip to content

CDN & Versioning

All xStreams SDKs are hosted on cdn.xstreams.io and follow semantic versioning.

Version formats

You can load SDK files using three URL patterns:

PatternExampleCachingUse when
Exact version@1.1.01 year (immutable)Production — never changes
Major version@15 minutesWant bug fixes but no breaking changes
Latest@latest5 minutesDevelopment / testing

Examples

html
<!-- Exact — never changes, safest for production -->
<script src="https://cdn.xstreams.io/sdk/web/player-shaka@2.1.0/xstreams-player-shaka.js"></script>

<!-- Major — auto-updates within v2.x (no breaking changes) -->
<script src="https://cdn.xstreams.io/sdk/web/player-shaka@2/xstreams-player-shaka.js"></script>

<!-- Latest — always the newest version -->
<script src="https://cdn.xstreams.io/sdk/web/player-shaka@latest/xstreams-player-shaka.js"></script>

Version manifest

All available packages and versions are listed at:

https://cdn.xstreams.io/sdk/versions.json

This returns a JSON file with every package, its latest version, all released versions, and their status (stable or deprecated).

Web SDK files

Each web package includes:

FileDescription
xstreams-player-*.jsFull source (readable)
xstreams-player-*.min.jsMinified (production)
xstreams-player-*.cssEdition-specific styles
xstreams-player-*.d.tsTypeScript definitions

Always load the base CSS before the edition CSS:

html
<link rel="stylesheet" href="https://cdn.xstreams.io/sdk/web/base-css@latest/xstreams-player-base.css">
<link rel="stylesheet" href="https://cdn.xstreams.io/sdk/web/player-shaka@2.1.0/xstreams-player-shaka.css">

Native SDK downloads

PlatformURL
Androidhttps://cdn.xstreams.io/sdk/android/xstreams-player-1.0.0.aar
iOShttps://cdn.xstreams.io/sdk/ios/XStreamsPlayer-1.0.0.zip
Flutterhttps://cdn.xstreams.io/sdk/flutter/xstreams_player-1.0.0.tar.gz

Response headers

Every CDN response includes:

HeaderValue
X-CacheHIT (served from edge) or MISS (fetched from origin)
X-SDK-VersionThe resolved version (e.g., 2.1.0)
X-SDK-PackagePackage name (e.g., player-shaka)
Cache-ControlCaching policy for this response

SRI (Subresource Integrity)

For maximum security, use exact versions with SRI hashes:

html
<script
  src="https://cdn.xstreams.io/sdk/web/player-shaka@2.1.0/xstreams-player-shaka.js"
  integrity="sha384-..."
  crossorigin="anonymous"
></script>

Generate the hash: curl -s URL | openssl dgst -sha384 -binary | openssl base64 -A

Live streaming infrastructure for developers.