Changelog

New features, changes, and fixes in each PRESTOplay for React Native release.

1.4.2

Added

  • Player.getEffectiveUrl(), the EventType.EffectiveUrlChanged event (EffectiveUrlChangedDetails.url) and the useEffectiveUrl hook: the URL the stream is actually loaded from, i.e. the Broadpeak session URL when the Broadpeak plugin redirects the stream, the configured source URL otherwise.

  • ApplePlayerConfiguration.requiresLinearPlayback: disables fast forward, forward skip and scrubbing in the player-provided controls, so an application can enforce playback of mandatory content such as legalese or advertisements. With AVPlayerViewControllerProvider this covers the whole playback UI; with PlayerProvider it covers the Picture-in-Picture window, leaving the application’s own inline controls untouched. Defaults to false.

  • AndroidSdkConfiguration.enableDrmPlaceholderSession: controls the Android SDK’s ENABLE_DRM_PLACEHOLDER_SESSION flag. When omitted the SDK default applies.

Changed

  • Upgraded PRESTOplay SDK for Android to 5.0.0.

  • Upgraded PRESTOplay SDK for Web to 6.36.0.

  • Upgraded PRESTOplay SDK for Apple to 4.2.2.

  • Android: DRM license failures now report nativeError.type as TYPE_DRM_EXCEPTION (25) instead of TYPE_DRMTODAY_EXCEPTION (15), following the native SDK, which reserves the DRMtoday type for DRMtoday-configured playback. ErrorCode.DrmError, the DRMtoday response code and message in error.drm.drmToday, and error.network details are unchanged.

1.4.1

Changed

  • Upgraded PRESTOplay SDK for Apple to 4.2.1.

Added

  • PrestoPlayError.svtaCode: adds the corresponding SVTA Full Code to error payloads; unmapped React Native errors use SVTA code 999.

1.4.0

Added

  • AndroidPlayerConfiguration.pictureInPictureActionsDisabled: when true, the SDK no longer adds its own seek ±10s and play/pause controls to the Picture-in-Picture window, so an application can install its own from native Android code.

  • ErrorCode.OpenAlreadyInProgress (7019): recoverable error raised on iOS/tvOS when Player.open() is called while a previous open is still loading.

  • @castlabs/react-native-prestoplay-playlist: new plugin package for sequential playback of multiple items over a single Player. Provides PlaylistProvider with the usePlaylist/useCurrentPlaylistItem hooks, and a Playlist class modeled on the Web SDK’s clpp.Playlist — queue management (append/insert/remove/clear), navigation (start/next/previous/goTo) and ItemChanged/Modified/Ended/ItemFailed events. Item transitions run natively on every platform (Android SingleControllerPlaylist, iOS native HLS queue and Web clpp.Playlist). The playlist requires a PlayerProvider player; it is not supported with the AVPlayerViewControllerProvider. See the Playlist guide.

  • Playlist error codes: PlaylistMixedContent (14001) and PlaylistUnsupportedContent (14002) reject unsupported queues up front (clear/DRM mixing on iOS and Android; non-HLS items on iOS), and PlaylistItemTransitionFailed (14003) / PlaylistItemPrefetchFailed (14004) type native item load failures, surfaced by the playlist as an ItemFailed event.

  • Playmaker app: playlist mode in the media asset list — build a queue from the listed assets and play it with playlist-aware player controls — and TestRoom playlist support: a toggle that creates a playlist-capable player plus "component": "Playlist" requests for driving the queue.

  • Player.playlistControls: playlist navigation surface on the core player, letting other plugins drive a playlist without depending on the playlist package. The now-playing media controls (lock screen / notification) use it to navigate playlist items: chapters first when present, playlist items at the chapter edges.

  • iOS and tvOS: the Thumbnail component now also shows thumbnails for streams that carry an I-frame only track, without a sideloaded thumbnail track — HLS EXT-X-I-FRAME-STREAM-INF renditions are rendered by the Apple thumbnails engine. Sideloaded tracks still take precedence when remoteThumbnailTracks is configured.

Changed

  • Upgraded PRESTOplay SDK for Apple to 4.1.2.

  • Upgraded PRESTOplay SDK for Web to 6.34.1.

  • The optional mux.js peer dependency moved from 5.14.1 to 6.3.0, matching what PRESTOplay SDK for Web has required since 6.31.0. Web applications that install mux.js — for MPEG-TS/AAC transmuxing or CEA-608/708 embedded captions — should update it alongside this release.

  • Example app renamed to Playmaker app

  • iOS and tvOS: while a previous open() is still loading, a second Player.open() now rejects with the recoverable ErrorCode.OpenAlreadyInProgress (7019), and play()/pause() issued in that window are ignored — retry after the next StateChanged event. Previously such calls raced the native SDK’s load and could silently stop all StateChanged events for the rest of the session while playback and controls kept working.

Fixed

  • iOS: starting a DRM playback or download after refreshing the app from Metro no longer terminates a debug build with an uncaught NSInternalInconsistencyException, and no longer stalls license acquisition. The player and downloader modules now tear down their event emitters and unregister their request/response modifiers when their bridge is invalidated, instead of leaving them registered with the PRESTOplay SDK and emitting into a JavaScript runtime that is gone.

1.3.0

Added

  • usePositionInfo hook and PositionInfo type — returns the current position and liveStartTime as a single, atomic snapshot updated from one PositionChanged listener, avoiding the torn pair that usePosition + useLiveStartTime can briefly expose when derived together.

  • Example app: tvOS (Apple TV) support for the player UI — the controls overlay is navigable with the Siri Remote, control buttons and the settings sheets handle focus, and the seek bar is focusable: left/right seeks while playing and previews thumbnails (committing on Select) while paused.

  • Youbora plugin support for the Web platform.

  • PlayerViewProps.resizeMode: controls how the video is scaled within the <PlayerView> — 'contain' (default, preserves aspect ratio inside the view), 'cover' (preserves aspect ratio, fills the view, may crop), or 'stretch' (fills the view, ignores aspect ratio).

Changed

  • Upgraded PRESTOplay SDK for Android to 4.4.11.

  • TrackManager.getVideoRendition() now returns the currently active rendition even when ABR is enabled; previously it returned null whenever adaptive video was on.

Deprecated

  • usePosition and useLiveStartTime when both values are consumed together (e.g. live wall-clock liveStartTime + position); use usePositionInfo instead.

Fixed

  • iOS: with SecondaryDisplayBehaviour.Never, a blocked playback attempt (secondary display / screen recording detected) now reports ErrorCode.SecondaryDisplayForbidden (6007) instead of ErrorCode.ManifestLoadingFailed (1002).

  • iOS and Web: PositionChanged is now emitted before StateChanged, so a position read from a StateChanged handler is consistent with the new state.

  • iOS: changing chapters from the “Now Playing” notification / lock-screen no longer stops playback.

  • Android: switching a reused Player from live to VOD content now emits the correct seekable range; previously the range updated only for live content, leaving a stale/empty seek range after a live→VOD switch.

  • Web: PositionChanged no longer jumps backwards on live streams — live position now tracks the monotonic media time instead of the live-edge-clamped position, which could wobble on manifest refresh.

1.2.3

Added

  • PrestoPlayError.drm: exposes DRM-related error metadata, including DrmTodayErrorMetadata (responseCode, errorMessage) for DRMtoday license failures.

  • SdkConfiguration.maxNumberOfPlayers: caps the number of concurrent Player instances (default 2); creating an additional player past the limit raises ErrorCode.MaxNumberOfPlayersExceeded (Android, iOS, Web).

  • AndroidSdkConfiguration.secureSurfaceViewDisabled: when true, disables the secure surface view so screenshots and screen recordings of clear content are allowed (protected content is still blocked).

  • ApplePlayerConfiguration.pictureInPictureAllowed: controls whether Picture-in-Picture is allowed on iOS/tvOS — maps to AVPlayerViewController.allowsPictureInPicturePlayback for AVPlayerViewControllerProvider, and gates AVPictureInPictureController creation for PlayerProvider.

  • Android: Added +- 10s buttons to PiP and now-playing plugin.

  • Example app: <PlayerErrorLogger> now displays DRM error details (DRMtoday response code and error message) alongside network error details.

Changed

  • Upgraded PRESTOplay SDK for Apple to 4.1.0.

  • Upgraded PRESTOplay SDK for Web to 6.33.0.

  • remoteTextTracks now accepts multiple RemoteTextTrack items.

  • Example app: renamed the “Use Apple Player (Local Player)” toggle to “Use AVPlayerViewController” to reflect its actual behavior.

Fixed

  • PlayerState.Seeking is now correctly emitted on Android and Web when seeking.

  • iOS: Network error handling for the Castlabs player engine — DASH live streams that exhaust their buffer after repeated segment failures now escalate the cached HTTP failure to a fatal error and emit Stopping/Idle instead of silently transitioning to Ended.

  • Web: Mid-stream 403/401 segment responses now follow the regular retry path instead of being treated as immediate fatal errors; PlayerState.Idle is correctly emitted after fatal errors.

  • iOS: Crash (SIGSEGV) in AVFCore / ApplePlayerProxy related to volume/mute handling during open and replay.

  • iOS: Memory leak in PlayerProxy caused by destroy() not releasing the PiP controller, configuration, and seekable time ranges.

  • Android: Querying PiP support no longer throws SecurityException — replaced AppOpsManager.checkOp with the non-throwing variants (unsafeCheckOpNoThrow on API 29+, checkOpNoThrow below).

1.2.2

Fixed

  • Fix build failures when using React Native with the New Architecture

1.2.1

Added

  • NetworkErrorCause enum exposed via PrestoPlayError.network.

  • iOS: map output protection errors to ErrorCode.SecondaryDisplayForbidden.

  • Documentation: Error Handling guide.

  • Example app: <PlayerErrorLogger> overlay that captures and displays player errors.

Changed

  • PrestoPlayError.metadata renamed to PrestoPlayError.network; underlying type ErrorMetadata renamed to NetworkErrorMetadata.

  • ErrorCode.ManifestLoadingFailed value changed from 4001 to 1002.

Fixed

  • iOS: ConnectivityLost was wrongly mapped to generic PlayerError (7001).

  • iOS: Outside-of-live-window error was reported as generic P7001 instead of ErrorCode.BehindLiveWindow (P5001).

  • iOS: Offline DASH content with startTimeMs did not start playback immediately.

  • Android: PlayerConfiguration.liveConfiguration.liveEdgeLatencyMs was not applied.

1.2.0

Added

  • React Native Bridgeless Architecture support (iOS and Android).

  • Player now emits PlayerState.Ready state on all platforms.

  • Web platform support for the Broadpeak plugin.

  • LogLevel.None: new log level to suppress all logging.

  • PlaybackStats.bufferedTimeMsec: amount of media buffered ahead of the playhead, in milliseconds.

  • SdkConfiguration.androidSdkConfiguration.forceSingleDrmSession: forces a single DRM session on Android.

  • Thumbnails plugin: emits ErrorCode.ThumbnailsImageMissing when a thumbnail image fails to load (Android, Web).

  • Offline DRM license management in react-native-prestoplay-downloader:

    • DrmOfflineState enum

    • useDrmOfflineState hook

    • Download.storeOfflineDrmLicense()

    • Download.deleteOfflineDrmLicense()

  • Example app: mute button.

  • Example app: custom playback speed controls.

  • Example app: <PlayerStats> component.

Changed

  • Broadpeak plugin:

    Added:

    • BroadpeakSettings.streamingSessionOptions

    • BroadpeakSettings.logLevel

    Removed:

    • BroadpeakMetadata

    • PlayerConfiguration.broadpeak

  • Upgraded PRESTOplay SDK for Apple to 4.0.27.

Fixed

  • Android: “Now Playing” notification remained active after the app was killed.

  • SdkConfiguration.logLevel now applies to native code.

  • iOS: Now Playing not updating for live content.

  • iOS: onTrackModelChange not triggered after setAudioTrack on HLS.

  • iOS: Unable to download DRM-protected DASH audio-only content.

  • Web: Captions could not be turned off once selected.

1.1.3

Changed

  • Upgraded PRESTOplay SDK for Apple to 4.0.25.1

Added

  • Broadpeak plugin: added BroadpeakMetadata and PlayerConfiguration.broadpeak.

1.1.2

Changed

  • Upgraded PRESTOplay SDK for Android to 4.4.8

  • Upgraded PRESTOplay SDK for Apple to 4.0.25

  • Youbora plugin changes:

    Added:

    • PlayerConfiguration.youbora.

    • YouboraSettings.logLevel.

    • YouboraSettings.deviceId.

    • YouboraSettings.deviceIsAnonymous.

    • YouboraAnalyticsOptions.contentTitle.

    • YouboraAnalyticsOptions.contentChannel.

    • YouboraAnalyticsOptions.contentMetadata.

    • YouboraAnalyticsOptions.customDimensionValue[1-10].

    Removed:

    • useYouboraExtension hook.

    • YouboraSettings.analyticsOptions.

    • YouboraMetadata.accountCode.

    • YouboraAnalyticsOptions.sessionMetrics.

    • YouboraAnalyticsOptions.deviceUUID.

    • YouboraAnalyticsOptions.deviceIsAnonymous.

    • YouboraAnalyticsOptions.sessionMetrics.

Fixed

  • Fix live stream progress and updates on Apple devices.

1.1.1

Changed

  • Upgraded PRESTOplay SDK for Android to 4.4.6

  • Upgraded PRESTOplay SDK for Apple to 4.0.24

Fixed

  • Fix live stream progress and updates.

  • Fix TrackManager NativeModules import.

  • Fix Chromecast plugin serializer for Verimatrix DRM environment.

  • Fix plugin initialization.

  • Android: Exception raised on player.destroy method.

1.1.0

Added

  • Web platform support.

  • Broadpeak plugin.

  • Youbora plugin for iOS and Android.

  • Added TrackManager.setVideoFilterConfiguration (Android only) - allows filtering video renditions based on bitrate, resolution, and pixel count constraints.

Changed

  • Example app: added PiP button.

Fixed

  • Android: Exception raised on player.destroy method

  • Android: PiP event when enabled delayed. PiP params: setAutoEnterEnabled(false)

1.0.2

Fixed

  • Address error triggered by DASH streams without a seekable range.

1.0.1

Added

  • New AudioTrack properties:

    • AudioTrack.label

    • AudioTrack.bitrate

    • AudioTrack.codecs

    • AudioTrack.mimeType

    • AudioTrack.descriptors

  • New TextTrack properties:

    • TextTrack.mimeType

    • TextTrack.descriptors

  • PrestoPlayError.metadata property is populated with data whenever possible

  • PrestoPlayError.causeMessage property

  • PrestoPlayError.nativeError property

  • react-native-prestoplay-subtitles plugin

  • react-native-prestoplay-chromecast plugin

  • react-native-prestoplay-ios-avplayerviewcontroller plugin

    • New <AVPlayerViewControllerProvider>

  • Subtitle styling API

  • Player.getLiveStartTime implemented (not available on iOS for DASH)

  • Player.getSeekableRange implemented

  • Custom DRM environments

  • New AVPlayer configuration, PlayerConfiguration.apple.appliesMediaSelectionCriteriaAutomatically for iOS/tvOS

Fixed

  • Audio in background not working on iOS when PiP disabled in device settings

  • Handle iOS global errors. DRM expiration error is now raised to react.

Changed

  • Upgraded PRESTOplay SDK for Android to 4.4.3

  • Upgraded PRESTOplay SDK for Apple to 4.0.22

  • PrestoPlayError.metadata is of type ErrorMetadata

  • Renamed useAirPlay hook to useAirPlayExtension

  • Subtitles are no longer a core feature of react-native-prestoplay. Please use the new react-native-prestoplay-subtitles plugin for subtitle functionality.

  • SdkConfiguration: removed licenseKey per platform.

Known issues

  • iOS Downloader: When downloading HLS content for offline playback, if a default audio track (AUTOSELECT=YES) is defined in the HLS manifest, that track must be selected for offline playback to work. Alternatively, do not explicitly select any audio track so the downloader can automatically choose the required tracks. This issue seems reproducible on iOS 18 only.

1.0.0-beta9

Added

  • New stats API:

    • Player.getPlaybackStats

    • usePlaybackStats

  • New player configuration options:

    • PlayerConfiguration.android.segmentParameters

    • PlayerConfiguration.android.segmentQueryParameters

    • PlayerConfiguration.android.contentParameters

    • PlayerConfiguration.android.contentQueryParameters

    • PlayerConfiguration.android.abrConfiguration

    • PlayerConfiguration.apple.networkConfiguration

Fixed

  • Recoverable player errors cause a media session to disconnect on Android

Changed

  • Example app has been updated to use React Native 0.79.5. The example app uses the new bridgeless architecture with the interoperability layer.

  • Upgraded PRESTOplay SDK for Android to 4.4.1

1.0.0-beta8

Fixed

  • usePlayerFatalError hook doesn’t clear the error after a call to Player.stop() or Player.open()

  • Player in wrong state after switching from another audio app on iOS

Changed

  • Upgraded PRESTOplay SDK for Apple to 4.0.15.3

1.0.0-beta7

Added

  • ContentMetaData.chapterInfo option

  • react-native-prestoplay-now-playing plugin supports chapters

Fixed

  • Hooks might not report the latest value

Changed

  • Player listeners are reinitialized after stream load on Android

1.0.0-beta6

Fixed

  • Cracking sound when the screen is locked on iOS

Changed

  • Upgraded PRESTOplay SDK for Apple to 4.0.15.2

1.0.0-beta5

Added

  • ContentMetaData.artist option

  • Mini Player to the example app for use with the global player

Changed

  • Renamed ContentMetaData.thumbnailUrl to ContentMetaData.artworkUrl

  • react-native-prestoplay-now-playing plugin uses Media3 on Android

  • Upgraded PRESTOplay SDK for Android to 4.3.0

Fixed

  • “Now Playing” fails to function after player view destruction on Android

  • Internal improvements

1.0.0-beta4

Fixed

  • SDK version is not correctly reported on license checks

  • Player.setPlaybackSpeed disables audio on Android

  • No audio over Bluetooth on iOS for DASH content

Changed

  • Downgraded the minimum supported versions of iOS and tvOS to 15.1

  • Upgraded PRESTOplay SDK for Apple to 4.0.15.1

1.0.0-beta3

Changed

  • Removed src directories from the SDK bundle

  • Documentation now displays links for returned types

  • Upgraded React Native to 0.76.9

  • Upgraded PRESTOplay SDK for Android to 4.2.88

  • Upgraded PRESTOplay SDK for Apple to 4.0.15

Fixed

  • Export missing types

  • Player release issues

1.0.0-beta2

Added

  • New options to player configuration, offering greater control and flexibility

  • Adjustable playback speed

  • react-native-prestoplay-ios-dash plugin

  • react-native-prestoplay-now-playing plugin

  • react-native-prestoplay-downloader plugin

  • react-native-prestoplay-airplay plugin

Changed

  • Updated PRESTOplay SDK for iOS to 4.0.13

  • Updated PRESTOplay SDK for Android to 4.2.83

Known issues

  • Widevine DRM exception maybe raised on devices with API >= 34 and OEMCrypto code = 29 (Android)

  • To play offline HLS content, an internet connection is required to fetch the FairPlay license, as the Downloader plugin does not fetch the license (iOS)

1.0.0-beta1

  • Improved performance and reliability

  • Basic player functionality

  • DRM support

    • Predefined DRMtoday environment

    • Predefined Verimatrix environment

    • Ability to add custom DRM environment

  • Plugin architecture

  • Subtitles support

  • Thumbnails support

  • PRESTOplay SDK for iOS 4.0.10

  • PRESTOplay SDK for Android 4.2.81

Next topic: Docs for LLM agents
Previous topic: Known issues