2.2.0 (2017-08-23)
New features:
- Add support for EVENT type playlists in HLS
- Add new option for offline protected content without persistent licensing
- Allow applications to render their own text tracks
- Allow applications to control streaming retry behavior
- Add support for additional TTML styles
- Add channel count information for both DASH & HLS
- Add basic xlink support in DASH (actuate=onLoad only)
- Add API to limit playable/seekable range for VOD content.
- Add new error code for container/codec support issues
- The default ABR manager is much more configurable
- Add stream bandwidth info to variant tracks
- Add player.isAudioOnly()
- Expose presentation start time through player
- Add bandwidth info to switch history
- Improved Chromecast media queries
- Stricter runtime type-checking of EME cert configuration
Bugfixes:
- Fix flakiness in offline-related tests
Demo app:
- Added robustness fields to the UI
Docs:
- Updated upgrade guide for v2.2
Broken compatibility:
- The text-parsing plugin API has changed. Plugins now return shaka.text.Cue
objects instead of VTTCue or TextTrackCue objects. All application-specific
text-parsing plugins MUST be updated.
Deprecated:
- The configuration for a custom ABR manager has changed. Applications with
custom AbrManager implementations SHOULD now configure abrFactory instead of
abr.manager.- #744
- The old interface will be removed in v2.3.
- The config API for AbrManager has changed. setDefaultEstimate() and
setRestrictions() have been replaced with configure(). Applications with
custom AbrManager implementations SHOULD implement the new configure()
method.- #744
- The old interface will be removed in v2.3.
- The choice API for AbrManager has changed. chooseStreams() has been
replaced with chooseVariants(), and the switch callback now takes a variant.- #954
- The old interface will be removed in v2.3.
- The getTracks() and selectTrack() methods which were deprecated in v2.1 have
now been removed.