@simba-dev/react-native-media-player 1.5.16 → 1.5.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +42 -2
  2. package/package.json +8 -3
package/README.md CHANGED
@@ -522,9 +522,25 @@ npm start --reset-cache
522
522
  ### Player launches but video is black
523
523
 
524
524
  - **Permissions:** on API 33+ the app must request `POST_NOTIFICATIONS` before showing the media-style notification. Use `MpvPlayerModule.requestNotificationPermission()`.
525
- - **Codec:** if the device can't decode the format (rare — libmpv handles most), try `hardwareDecoding: 'no'` to force software decoding.
525
+ - **Codec:** if the device can't decode the format (rare - libmpv handles most), try `hardwareDecoding: 'no'` to force software decoding.
526
526
  - **HTTPS:** libmpv's curl backend rejects malformed URLs. Ensure your media URLs are valid `https://` (or `content://` for local files).
527
527
 
528
+ ### App is stuck at a white screen after splash (no JS error, just white)
529
+
530
+ This is almost always a **`dlopen failed: cannot locate symbol` on the libmpv.so** chain — visible in `adb logcat -d --pid=$(adb shell pidof <your.package>) | grep dlopen` as:
531
+
532
+ ```
533
+ dlopen failed: cannot locate symbol
534
+ "_ZNSt6__ndk127__from_chars_floating_pointIfE..."
535
+ referenced by ".../libmpv.so"
536
+ ```
537
+
538
+ Cause: the lib's bundled prebuilts (from `mpv-android` releases) are built against **LLVM 17+ libc++** (NDK r28+), which has `__from_chars_floating_point`. If your APK's `lib/<abi>/libc++_shared.so` is missing that symbol, `libsimbaplayer_mpv.so` fails to load, the `MpvBridgeModule` TurboModule never registers, and the app can't render past splash.
539
+
540
+ Fix: **remove any `excludes += ["lib/*/libc++_shared.so"]` from your `android/app/build.gradle` `packagingOptions { jniLibs { } }` block** if you have one. The lib ships its own LLVM 17+ libc++_shared.so via the postinstall hook (`scripts/download-native.js` downloads the matching `jniLibs.tar.gz` from the GitHub release) and your APK should bundle that copy. Also **delete** any pre-v1.5.14 leftover `app/src/main/jniLibs/<abi>/<abi>/libc++_shared.so` (NDK r27 LLVM 16, missing the symbol) if you kept one around from a prior workaround.
541
+
542
+ After this, `gradle :app:assembleDebug` will bundle the lib's libc++_shared.so and `libsimbaplayer_mpv.so` will resolve symbols cleanly.
543
+
528
544
  ### PiP doesn't auto-enter on home press
529
545
 
530
546
  Make sure:
@@ -621,6 +637,30 @@ Make sure the package is in your `dependencies` (not `devDependencies`) and Metr
621
637
  - **PiP custom RemoteActions.** The lock-screen / PiP notification exposes a fixed set of actions (Play / Pause / Skip-Back / Skip-Forward). Custom actions are a W7+ feature.
622
638
  - **React Native ≥ 0.76 only.** Bridgeless mode is required (the TurboModule path uses `TurboReactPackage`, which doesn't work on the legacy bridge).
623
639
 
640
+ ## Sponsor & support
641
+
642
+ This package is maintained by [Paval E P](https://github.com/pavalep) as part of **Varna Labs** — a sole proprietorship registered under India's Udyam/MSME framework.
643
+
644
+ If you find this package useful in your own work, consider supporting its continued maintenance:
645
+
646
+ <a href="https://buymeacoffee.com/pavalep"><img alt="Buy Me a Coffee" src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black" /></a>
647
+
648
+ Every contribution — large or small — helps me spend more time maintaining, experimenting, and shipping the next set of fixes and features. 🙏
649
+
650
+ ### About the maintainer
651
+
652
+ > I'm an independent developer building software, experimenting with ideas, and working on projects through **Varna Labs**, my sole proprietorship registered under India's Udyam/MSME framework. 🇮🇳
653
+ >
654
+ > If you like my projects, find something I've built useful, or simply want to support independent development, consider [making a contribution](https://buymeacoffee.com/pavalep). 🙌
655
+ >
656
+ > It doesn't have to be much — every little bit helps me spend more time building, experimenting, maintaining projects, and bringing new ideas to life. ✨
657
+ >
658
+ > 💡 Have a viable project or something interesting you'd like to build together?
659
+ > Feel free to [reach out](https://github.com/pavalep). I'm always happy to discuss potential collaborations and see where a good idea can go. 🤝
660
+ >
661
+ > Your support keeps independent work moving. 🦋
662
+ > Gracias for being here! ❤️
663
+
624
664
  ## Contributing
625
665
 
626
666
  ### Local development
@@ -681,4 +721,4 @@ Consumers are responsible for ensuring their app's license obligations are met w
681
721
 
682
722
  ---
683
723
 
684
- **Status:** V12 — latest published version is **1.0.2** on [npmjs](https://www.npmjs.com/package/@simba-dev/react-native-media-player) and [GitHub Releases](https://github.com/pavalep/react-native-media-player/releases). See [CHANGELOG.md](./CHANGELOG.md) for the full per-version notes.
724
+ **Status:** latest published version is **1.5.19** on [npmjs](https://www.npmjs.com/package/@simba-dev/react-native-media-player) and [GitHub Releases](https://github.com/pavalep/react-native-media-player/releases). See [CHANGELOG.md](./CHANGELOG.md) for the full per-version notes.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simba-dev/react-native-media-player",
3
- "version": "1.5.16",
4
- "description": "React Native video/audio player powered by libmpv — Picture-in-Picture, MediaSession, custom RN UI. **V16.0.8 patch release** (2026-09-14) — D-033 16 KB page-size alignment: add_link_options(\"-Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384\") in CMakeLists.txt + ndkVersion r27+ so libsimbaplayer_mpv.so's LOAD segments are aligned to 16 KB (Android 14+ 16 KB page-size requirement). Without this, libsimbaplayer_mpv.so shows \"LOAD segment not aligned\" in the Android App Compatibility dialog and Android refuses to load it — which cascades to \"Unknown error\" for libmpv.so, libc++_shared.so, libav*.so (all transitively loaded via libsimbaplayer_mpv.so's NEEDED list), and the app boots to a white screen. v1.5.7 pre-load attempt was insufficient because the libs themselves weren't loading at all. See CHANGELOG.md for details.",
3
+ "version": "1.5.19",
4
+ "description": "React Native video & audio player powered by libmpv — Picture-in-Picture, MediaSession, foreground service, and a customizable TypeScript UI. Built for Android. Designed as a drop-in replacement for react-native-video / react-native-track-player / expo-av. See CHANGELOG.md for per-version notes.",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
7
7
  "react-native": "src/index.ts",
@@ -39,10 +39,15 @@
39
39
  ],
40
40
  "license": "MIT",
41
41
  "author": {
42
- "name": "SIMBA Mobile Team (@simba-dev)",
42
+ "name": "Paval E P",
43
+ "email": "pavalep@varnalabs.dev",
43
44
  "url": "https://github.com/pavalep"
44
45
  },
45
46
  "homepage": "https://github.com/pavalep/react-native-media-player#readme",
47
+ "funding": {
48
+ "type": "buymeacoffee",
49
+ "url": "https://buymeacoffee.com/pavalep"
50
+ },
46
51
  "private": false,
47
52
  "publishConfig": {
48
53
  "access": "public",