Changelog¶
New features, changes, and fixes in each PRESTOplay for React Native release.
1.4.2¶
Added¶
Player.getEffectiveUrl(), theEventType.EffectiveUrlChangedevent (EffectiveUrlChangedDetails.url) and theuseEffectiveUrlhook: 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. WithAVPlayerViewControllerProviderthis covers the whole playback UI; withPlayerProviderit covers the Picture-in-Picture window, leaving the application’s own inline controls untouched. Defaults tofalse.AndroidSdkConfiguration.enableDrmPlaceholderSession: controls the Android SDK’sENABLE_DRM_PLACEHOLDER_SESSIONflag. 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.typeasTYPE_DRM_EXCEPTION(25) instead ofTYPE_DRMTODAY_EXCEPTION(15), following the native SDK, which reserves the DRMtoday type for DRMtoday-configured playback.ErrorCode.DrmError, the DRMtoday response code and message inerror.drm.drmToday, anderror.networkdetails are unchanged.
1.4.1¶
Changed¶
Upgraded PRESTOplay SDK for Apple to 4.2.1.
Added¶
PrestoPlayError.svtaCode: adds the corresponding SVTAFull Codeto error payloads; unmapped React Native errors use SVTA code999.
1.4.0¶
Added¶
AndroidPlayerConfiguration.pictureInPictureActionsDisabled: whentrue, 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 whenPlayer.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 singlePlayer. ProvidesPlaylistProviderwith theusePlaylist/useCurrentPlaylistItemhooks, and aPlaylistclass modeled on the Web SDK’sclpp.Playlist— queue management (append/insert/remove/clear), navigation (start/next/previous/goTo) andItemChanged/Modified/Ended/ItemFailedevents. Item transitions run natively on every platform (AndroidSingleControllerPlaylist, iOS native HLS queue and Webclpp.Playlist). The playlist requires aPlayerProviderplayer; it is not supported with theAVPlayerViewControllerProvider. See the Playlist guide.Playlist error codes:
PlaylistMixedContent(14001) andPlaylistUnsupportedContent(14002) reject unsupported queues up front (clear/DRM mixing on iOS and Android; non-HLS items on iOS), andPlaylistItemTransitionFailed(14003) /PlaylistItemPrefetchFailed(14004) type native item load failures, surfaced by the playlist as anItemFailedevent.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
Thumbnailcomponent now also shows thumbnails for streams that carry an I-frame only track, without a sideloaded thumbnail track — HLSEXT-X-I-FRAME-STREAM-INFrenditions are rendered by the Apple thumbnails engine. Sideloaded tracks still take precedence whenremoteThumbnailTracksis configured.
Changed¶
Upgraded PRESTOplay SDK for Apple to 4.1.2.
Upgraded PRESTOplay SDK for Web to 6.34.1.
The optional
mux.jspeer dependency moved from5.14.1to6.3.0, matching what PRESTOplay SDK for Web has required since 6.31.0. Web applications that installmux.js— for MPEG-TS/AAC transmuxing or CEA-608/708 embedded captions — should update it alongside this release.Exampleapp renamed toPlaymakerappiOS and tvOS: while a previous
open()is still loading, a secondPlayer.open()now rejects with the recoverableErrorCode.OpenAlreadyInProgress(7019), andplay()/pause()issued in that window are ignored — retry after the nextStateChangedevent. Previously such calls raced the native SDK’s load and could silently stop allStateChangedevents 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¶
usePositionInfohook andPositionInfotype — returns the currentpositionandliveStartTimeas a single, atomic snapshot updated from onePositionChangedlistener, avoiding the torn pair thatusePosition+useLiveStartTimecan 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 returnednullwhenever adaptive video was on.
Deprecated¶
usePositionanduseLiveStartTimewhen both values are consumed together (e.g. live wall-clockliveStartTime + position); useusePositionInfoinstead.
Fixed¶
iOS: with
SecondaryDisplayBehaviour.Never, a blocked playback attempt (secondary display / screen recording detected) now reportsErrorCode.SecondaryDisplayForbidden(6007) instead ofErrorCode.ManifestLoadingFailed(1002).iOS and Web:
PositionChangedis now emitted beforeStateChanged, so a position read from aStateChangedhandler is consistent with the new state.iOS: changing chapters from the “Now Playing” notification / lock-screen no longer stops playback.
Android: switching a reused
Playerfrom 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:
PositionChangedno 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, includingDrmTodayErrorMetadata(responseCode,errorMessage) for DRMtoday license failures.SdkConfiguration.maxNumberOfPlayers: caps the number of concurrentPlayerinstances (default2); creating an additional player past the limit raisesErrorCode.MaxNumberOfPlayersExceeded(Android, iOS, Web).AndroidSdkConfiguration.secureSurfaceViewDisabled: whentrue, 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 toAVPlayerViewController.allowsPictureInPicturePlaybackforAVPlayerViewControllerProvider, and gatesAVPictureInPictureControllercreation forPlayerProvider.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.
remoteTextTracksnow accepts multipleRemoteTextTrackitems.Example app: renamed the “Use Apple Player (Local Player)” toggle to “Use AVPlayerViewController” to reflect its actual behavior.
Fixed¶
PlayerState.Seekingis 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/Idleinstead of silently transitioning toEnded.Web: Mid-stream 403/401 segment responses now follow the regular retry path instead of being treated as immediate fatal errors;
PlayerState.Idleis correctly emitted after fatal errors.iOS: Crash (SIGSEGV) in
AVFCore/ApplePlayerProxyrelated to volume/mute handling duringopenand replay.iOS: Memory leak in
PlayerProxycaused bydestroy()not releasing the PiP controller, configuration, and seekable time ranges.Android: Querying PiP support no longer throws
SecurityException— replacedAppOpsManager.checkOpwith the non-throwing variants (unsafeCheckOpNoThrowon API 29+,checkOpNoThrowbelow).
1.2.2¶
Fixed¶
Fix build failures when using React Native with the New Architecture
1.2.1¶
Added¶
NetworkErrorCauseenum exposed viaPrestoPlayError.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.metadatarenamed toPrestoPlayError.network; underlying typeErrorMetadatarenamed toNetworkErrorMetadata.ErrorCode.ManifestLoadingFailedvalue changed from4001to1002.
Fixed¶
iOS:
ConnectivityLostwas wrongly mapped to genericPlayerError(7001).iOS: Outside-of-live-window error was reported as generic P7001 instead of
ErrorCode.BehindLiveWindow(P5001).iOS: Offline DASH content with
startTimeMsdid not start playback immediately.Android:
PlayerConfiguration.liveConfiguration.liveEdgeLatencyMswas not applied.
1.2.0¶
Added¶
React Native Bridgeless Architecture support (iOS and Android).
Player now emits
PlayerState.Readystate 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.ThumbnailsImageMissingwhen a thumbnail image fails to load (Android, Web).Offline DRM license management in
react-native-prestoplay-downloader:DrmOfflineStateenumuseDrmOfflineStatehookDownload.storeOfflineDrmLicense()Download.deleteOfflineDrmLicense()
Example app: mute button.
Example app: custom playback speed controls.
Example app:
<PlayerStats>component.
Changed¶
Broadpeak plugin:
Added:
BroadpeakSettings.streamingSessionOptionsBroadpeakSettings.logLevel
Removed:
BroadpeakMetadataPlayerConfiguration.broadpeak
Upgraded PRESTOplay SDK for Apple to 4.0.27.
Fixed¶
Android: “Now Playing” notification remained active after the app was killed.
SdkConfiguration.logLevelnow applies to native code.iOS: Now Playing not updating for live content.
iOS:
onTrackModelChangenot triggered aftersetAudioTrackon 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
BroadpeakMetadataandPlayerConfiguration.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:
useYouboraExtensionhook.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
AudioTrackproperties:AudioTrack.labelAudioTrack.bitrateAudioTrack.codecsAudioTrack.mimeTypeAudioTrack.descriptors
New
TextTrackproperties:TextTrack.mimeTypeTextTrack.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.getLiveStartTimeimplemented (not available on iOS for DASH)Player.getSeekableRangeimplementedCustom 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
useAirPlayhook touseAirPlayExtensionSubtitles 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.getPlaybackStatsusePlaybackStats
New player configuration options:
PlayerConfiguration.android.segmentParametersPlayerConfiguration.android.segmentQueryParametersPlayerConfiguration.android.contentParametersPlayerConfiguration.android.contentQueryParametersPlayerConfiguration.android.abrConfigurationPlayerConfiguration.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¶
usePlayerFatalErrorhook doesn’t clear the error after a call toPlayer.stop()orPlayer.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.chapterInfooptionreact-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.artistoptionMini Player to the example app for use with the global player
Changed¶
Renamed
ContentMetaData.thumbnailUrltoContentMetaData.artworkUrlreact-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.setPlaybackSpeeddisables audio on AndroidNo 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