* Make initial variant selection based on preferred codec rather than the first variant in the multivariant playlist
* Fix `minAutoLevel` and `ttfb` usage in abandon rules check
* Fix filtering of invalid video-ranges
* Log reason for ignoring start candidates with a particular codec
* Add rendition helper and move SCORE logic into getStartCodecTier
* Add support for MediaCapabilities video configuration filtering
FIxes#5707
* Add support for MediaCapabilities audio configuration filtering
Related to #5704 and #4072
* Add __USE_MEDIA_CAPABILITIES__ build const to remove MediaCapabilities checks from light build
* MediaCapabilities: Assume a framerate of 30fps since decodingInfo will throw with Level default of 0.
* Select variant with alternate video codec on video append error
* Use complete media-parsed codec name when determining if changeType should be appended
* Add `firstAutoLevel` to API.md
* Fix Low-Latency part and fragment tracking regression introduced in #5102
* Fix issues with reuse of player instance when loading additional assets
Fixes#5425
* Reset SourceBuffers in `loadSource()` when the asset URL has changed, or buffer-controller setup has begun
* Remove old parts from the fragment tracker on frag buffered
* Remove old parts from the fragment tracker on frag buffered
* Reset eme-controller key format promise on manifest loading
* Load Steering Manifest
* Make UA check lazy for legacy unsupported MP3 in MP4 container check
* Add Redundant Streams tests
* Add FRAME-RATE to Redundant Stream group key and level sorting
Optimize MANIFEST_PARSED level filtering
Optimize Media Playlist check
* Do not group Variant levels with PATHWAY-ID into Fallback Stream URLs (unless building without Content Steering support)
Store and return seperate LevelAttributes per Fallback Stream URL
Align Level audio and text group ids with Fallback Stream URLs (Level._urlId)
* Content Steering Pathway grouping and selection
#5074
* Support removeLevel and improve capLevelController with level index changes
* Pathway Clone Variants
* Pathway Clone Rendition Groups
* Fix audio track alignment with timescales that differ and smooth switch when attributes do not change
* Always emit LEVEL_SWITCHING on Pathway change to ensure audio and subtitle tracks update as well
* Fix unregister listeners in fps and latency controller
* Unit test clean up
* Update README for Content Steering
* Add support for com.apple.fps keySystem
* Improve support for DRM key-systems and key handling
Resolves#2833#2737#4318#4538
* Update README `licenseXhrSetup` example
* Update api-extractor markdown
* Attach CDM on start when even when initial fragments do not have a key associated with them
* Handle expired key status correctly
* Map key-sessions by key ID and log key ID more often than URI
* Support "clear-lead" key-session creation without new config
* Emit and handle FRAG_PARSING_ERROR from transmuxers (#5018)
* Emit and handle FRAG_PARSING_ERROR from transmuxers
Related to #5011
* Switch levels on Key and Fragment parsing errors or escalate to fatal error
* Route all key-system errors to `onFragmentOrKeyLoadError`
* Populate EMEKeyError.err for better demo error logging
* Remove `useEmeEncryptedEvent` and mark `widevineLicenseUrl` as deprecated in API.md
* Add support for EXT-X-SESSION-KEY tags (for key-system access on manifest loaded)
#4927
* Throw before licenseXhrSetup if key was removed
* Make key session promise chain more consice
* Stop on fatal key system errors
* Only request access to key-systems for keys matching those found in the config one at time (to avoid gaining access to WV and PR on Edge)
* Modify key-system helpers so that it's easier to support additional key-system strings
* Add undocumented `generateRequest` ("Content ID") filter
Co-authored-by: Vincent Valot <vincent.valot@bedrockstreaming.com>
- Do not adjustSliding twice with delta playlist
- Add LevelDetail adjustedSliding distinguished from PTSKnown (+5 squashed commits)
- Align streams without DISCONTINUITY, PROGRAM-DATE-TIME, or known-PTS on SEQUENCE-NUMBER to improve first fragment requested
- Fix delta playlist merging without fragment PTS (adjustSliding with skipped segments)
- Fix playlist sliding check
- Sync levels on PTS by setting transmuxer defaultInitPTS
Add playbackRate controls to demo
- Add lowLatencyMode config (doesn't yet disable part playlist loading)
- Add SKIP delta playlist tag to README
Named exports can be more easily tree-shook or deadcode detected by the
available options that can do that, so using them over default exports
could make a future optimization easier to do.
* Start and stop subtitle loading in sync with startLoad()/stopLoad() API calls
* Compute sliding & merge subtitle playlists during live playback
* Fix shared references between subtitle-track-controller and subtitle-stream-controller
* Refactoring:
* Extend subtitle-stream-controller from base-stream-controller
* Move more shared logic into base-stream-controller
* Move live reload interval calculation into a shared function & import into subtitle-track-controller
* Remove the trackId from subtitle fragments, and refer to them by their level property
* Several other minor refactorings (flipped conditionals, destructuring args, organizing functions)
* Add a bunch of unit tests
* Refactor fragment-loader to directly return results via promise
Refactor classes which load fragments in order to utilize new promise flow
* Typescript fragment loading classes
* Fix exceptions; rename tracks[] to levels[] in *-stream-controllers for compatibility in base-stream-controller