Summary
HLS.js v1.3.0-beta.1 is a preview release highlighting improved DRM support coming to HLS.js version 1.3.
This release introduces support for FairPlay Streaming with modern EME, PlayReady support, and improved Widevine support.
Changes Since The Last Release
- Multi-DRM Support (#4930) @robwalch
- Add support for com.apple.fps (#4474) @valotvince
- Eagerly match segments without tolerance offset (#5084) @robwalch
- Fix audio and subtitle controller loading incorrect segments before player seeks to startPosition (VOD) (#5095) @robwalch
(included in v1.2.9 via #5098) - Parallelize key and segment requests (#4861) @robwalch
Demo Page
https://hls-js-b1cb1eb0-2e11-40ac-808b-56bf07ffda6a.netlify.app/demo/
API Changes
See https://github.com/video-dev/hls.js/blob/v1.3.0-beta.1/docs/API.md for API details and examples.
Config changes
- Added
drmSystems
for defining key-system specific license urls and certificatesdrmSystems['com.widevine.alpha'].licenseUrl
replaceswidevineLicenseUrl
(deprecated but still supported)
drmSystemOptions
takes additional optional arguments used for definingMediaKeySystemConfiguration
licenseXhrSetup
- includes additional
keyContext
andlicenseChallenge
arguments - is optionally async: takes a return value of a Uint8Array, a Promise which resolves with a Uint8Array or undefined (returning a value transforms the
licenseChallenge
license request body)
- includes additional
licenseResponseCallback
includes an additionalkeyContext
argument- Changes to the integration of EMEController and KeyLoader may impact custom
config.emeController
implementations- A new
keyLoader
constructor argument has been added to StreamController, AudioStreamController, and SubtitleStreamController via BaseStreamController (this allows all stream controllers to share a common KeyLoader instance) - KeyLoader utilizes an instance of EMEController for handling HLS Keys
- A new
New Error Event ErrorDetails
constants have been added to help with identifying issues when negotiating with CDMs
- New
KEY_SYSTEM_ERROR
type error details:KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED
KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED
KEY_SYSTEM_NO_INIT_DATA
KEY_SYSTEM_SESSION_UPDATE_FAILED
KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED
KEY_SYSTEM_STATUS_INTERNAL_ERROR
Event object additions
MANIFEST_LOADED
event data includessessionKeys
MANIFEST_PARSED
event data includessessionData
andsessionKeys
KEY_LOADED
event data includeskeyInfo
Fragment object changes
- The
levelkey
property has been replaced by an array:levelkeys
- (
levelkey
has been deprecated and will not be supported)
- (
LevelDetails object additions
encryptedFragments
property has been added (assists in dealing with "clear-lead" streams where initial segments are not encrypted)
Feedback
Please provide feedback via Issues in GitHub. For more details on how to contribute to HLS.js, see our CONTRIBUTING guide.