Local file playback gets first-class support. file://, asset://, bare paths, and require() assets all resolve correctly on both platforms.
Full notes: rntp.dev/changelog#5.2.0
Added
- Local file support — play audio from
file://URLs, platform assets (bare names like"song.mp3"), andrequire()references. MediaUrl.bundle(iOS) —{ uri: "song.mp3", bundle: "Sounds" }loads from a.bundleresource directory.
Changed
MediaUrltype — now accepts bare filesystem paths, bare asset names, and{ uri: number }forrequire()inside the object form.- Chromecast
mediaUriguard (Android) — only set forhttp/httpsURLs, preventing unreachable local URIs from being sent to Chromecast.
Upgrade
npm install @rntp/player@5.2.0
# iOS
cd ios && pod install