Changelog ********* New features, changes, and fixes in each PRESTOplay for Web Apps release. 6.37.0 ====== This version ships LLM skill in "@castlabs/prestoplay/skills/prestoplay-web/SKILL.md" to enable AI coding agents to integrate the SDK with ease. **Warning** ----------- The UMD build in "@castlabs/prestoplay/cjs/" is deprecated and will be removed in version 7. Use the ES module build in the package root instead, e.g. "import '@castlabs/prestoplay/cl.core.js'" and add it to the transpilation pipeline of your app if you need to support older browsers or smart TVs. Please contact support in case you need any assistance with migration to the ES module build. New Features ------------ * Add support for DASH Alternative MPD events (SGAI). * Support "HOLD-BACK" attribute of "#EXT-X-SERVER-CONTROL" in HLS. Live playback now starts at the server-recommended distance from the live edge. * Support playback of HLS fMP4 streams without a "CODECS" attribute. * Support the "com.microsoft.playready.recommendation.3000" key system for hardware PlayReady (SL3000) on Edge and Chrome on Windows. * Make content steering configurable under "contentSteering". * Trigger "clpp.events.ADS_TIMELINE_CHANGED" for HLS interstitials and DASH Alternative MPD events (SGAI) which carries a timeline of the ad markers as payload. Changes ------- * Bring back APIs accidentally removed in 6.35.0: "clpp.version", "clpp.name", "clpp.utils.strings.fromUtf8", "clpp.drm.HeaderDrm.NAME", "clpp.net.NetworkEngine". * Recover and continue playback of streams which start with a gap in the media at the beginning of the timeline. * Automatically ban failing service locations in content steering in DASH. * Fix PlayReady playback of content with only Widevine PSSH and of HLS content with only Widevine signalled in the manifest. * Fix ad events with Broadpeak SSAI when playback stalls near the end of an ad. * Fix audio when playing an HLS media playlist directly, without a master playlist. * Fix track filtering in case where video can be decrypted but audio cannot. * Fix handling of "default_KID" in encrypted MP4 media (CENC). * Fix a video glitch on Safari which occurs when switching audio tracks in DASH. * Fix handling of IMA ad errors: * When a pre-roll ad fails it does not affect playback of primary content. * IMA log events are no longer treated as errors. This in some cases resulted in an issue where an ad played in the background. * Fix subtitles being displayed twice after switching audio tracks in HLS on Safari. * Configuration option "manifest.clockSyncUri" now overrides "UTCTiming" elements of a DASH manifest instead of only being applied when they are missing. * Fix playback position falling behind in case of live HLS with interstitial ads (SGAI). * Fix an error which happens when the player is released while a call to open() is still in progress in combination with loading specific plugins. * Fix ABR for looped videos, when the video replays from the start it is in high quality (based on network conditions), the buffer is flushed. Deprecations ------------ * Deprecate "clpp.drm.DrmToday.Environment" and "config.ads.hls.resolutionOffsetSec" they will be removed in version 7. * The UMD build in "@castlabs/prestoplay/cjs/" is deprecated and will be removed in version 7. 6.36.1 ====== Changes ------- * Public API methods now throw or reject with "clpp.Error" instead of other data types. Modules affected: "clpp.Player", "clpp.TrackManager", "clpp.BufferInfo", "clpp.Playlist", "clpp.playlist.McPlaylist", "clpp.drm.HeaderDrm", "clpp.utils.strings". * Fix text alignment of subtitles rendered by the HTML text displayer. * Fix "clpp.persistent.removeLicense()". * Add "@convivainc/conviva-js-coresdk" version "4.5.8" as an optional peer dependency. * Fix Conviva reporting after a client-side ad break. 6.36.0 ====== New Features ------------ * Add support for switching between audio tracks that use different codecs. * Enable it by setting "config.mediaSource.codecSwitchingStrategy" to "clpp.CodecSwitchingStrategy.SMOOTH". * A player plugin can now change the stream URL by returning a new URL from "onContentWillLoad()" lifecycle hook. * Add "player.getEffectiveUrl()" which returns the URL the stream is really loaded from, i.e. after a redirect or after an analytics plugin changed it. Every change of this URL is announced by the new event "clpp.events.EFFECTIVE_URL_CHANGED". Changes ------- * Change "player.getCurrentSource()" and "player.getLoadedSource()" to always return a source with absolute URL. * Fix issues with ABR when "initialRestrictions" configured. * Fix text track label on iOS. * Fix support for track restrictions on video width, height and pixel count. (See player configuration option "restrictions"). * Fix processing of default key IDs from MP4 in HLS. * Fix a false positive warning about missing DRM sessions in HLS with Widevine and PlayReady. * Fix playback getting stuck after a video quality switch in some DASH streams. * Fix seeking over a point HLS interstitial. * Fix seeking into an interstitial in a live stream. * Fix subtitles being downloaded and displayed after they were turned off. * Fix "clpp.ima.ImaPlugin.isSdkMissing()". * Fix subtitles in HLS live streams with discontinuity. 6.35.0 ====== **Warning** ----------- Changes in this release might be breaking for some very specific use cases: If you are using configuration flags "safari.enableHlsVideoTrackInfo" or "safari.enableMetadata" please make sure to import the HLS component "@castlabs/prestoplay/cl.hls.js". In the unlikely event that you are using Google Closure Compiler to build your codebase you should now supply your own API definitions for this SDK. You can use "cl.externs.js" from version 6.34.1 as a starting point. New Features ------------ * Support "text/plain" MIME type for SRT subtitles. Changes ------- * Add "conviva.convivaSdkLogLevel" player configuration option to control Conviva SDK logging. * Fix reporting of video source width and height in MuxData analytics. * Fix flash of the main content before IMA SDK pre-roll ads on Tizen. * Move configuration flags "safari.enableHlsVideoTrackInfo" and "safari.enableMetadata" under "@castlabs/prestoplay/cl.hls.js". * Drop config options related to stall detection "stallEnabled", "stallSkip", these do not have a meaningful use-case. * Stop shipping Google Closure Compiler API definition "cl.externs.js". * Fix DASH content steering pathway cloning for empty root BaseURL entries. * Fix playback of clear-lead encrypted content on Chrome and Edge, workaround known browser issues. * Fix issue with processing all-zeroes "default_KID" in encrypted video streams. * Fix detection of E-AC3 JOC (Dolby Atmos) audio tracks in DASH content. * Fix "preferSpatialAudio" player configuration for track selection. * Add support for "urn:mpeg:mpegB:cicp:ChannelConfiguration" audio channel scheme. 6.34.1 ====== Changes ------- * Improve recovery in case of gaps in the buffer on LG TV (webOS). Note that this recovery mechanism may not fully work on devices with old version of MSE such as Tizen 3 or webOS 3. * Fix freeze of multi-period DASH streams with segment timing discrepancies in the manifest. 6.34.0 ====== New Features ------------ * Add ABR stalled segment cancellation. * Improved ABR performance by cancelling long running segment requests. * Add SVTA error codes. * Add support for Broadpeak session options configuration. Changes ------- * Ignore autoplay attribute if found on "