@simba-dev/react-native-media-player 1.5.18 → 1.5.20
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.
- package/README.md +45 -4
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -10,6 +10,8 @@ React Native video & audio player powered by [libmpv](https://mpv.io/), with fir
|
|
|
10
10
|
<a href="./LICENSE"><img alt="License: MIT" src="https://img.shields.io/github/license/pavalep/react-native-media-player?color=blue" /></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/@simba-dev/react-native-media-player"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@simba-dev/react-native-media-player" /></a>
|
|
12
12
|
<a href="https://github.com/pavalep/react-native-media-player/tags"><img alt="GitHub tags" src="https://img.shields.io/github/tag-date/pavalep/react-native-media-player?label=latest%20tag&sort=semver" /></a>
|
|
13
|
+
<a href="https://github.com/sponsors/pavalep"><img alt="Sponsor" src="https://img.shields.io/badge/Sponsor-pavalep-ea4aaa?logo=githubsponsors&logoColor=white" /></a>
|
|
14
|
+
<a href="https://buymeacoffee.com/pavalep"><img alt="Buy Me a Coffee" src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?logo=buy-me-a-coffee&logoColor=black" /></a>
|
|
13
15
|
<a href="https://github.com/pavalep/react-native-media-player/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/pavalep/react-native-media-player/ci.yml?branch=main&label=CI&logo=githubactions&logoColor=white" /></a>
|
|
14
16
|
<a href="https://github.com/pavalep/react-native-media-player/actions/workflows/release.yml"><img alt="Release" src="https://img.shields.io/github/actions/workflow/status/pavalep/react-native-media-player/release.yml?label=Release&logo=githubactions&logoColor=white" /></a>
|
|
15
17
|
</p>
|
|
@@ -37,8 +39,9 @@ React Native video & audio player powered by [libmpv](https://mpv.io/), with fir
|
|
|
37
39
|
9. [API reference](#api-reference)
|
|
38
40
|
10. [Troubleshooting](#troubleshooting)
|
|
39
41
|
11. [Limitations](#limitations)
|
|
40
|
-
12. [
|
|
41
|
-
13. [
|
|
42
|
+
12. [Sponsor & support](#sponsor--support)
|
|
43
|
+
13. [Contributing](#contributing)
|
|
44
|
+
14. [License](#license)
|
|
42
45
|
|
|
43
46
|
---
|
|
44
47
|
|
|
@@ -522,9 +525,25 @@ npm start --reset-cache
|
|
|
522
525
|
### Player launches but video is black
|
|
523
526
|
|
|
524
527
|
- **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
|
|
528
|
+
- **Codec:** if the device can't decode the format (rare - libmpv handles most), try `hardwareDecoding: 'no'` to force software decoding.
|
|
526
529
|
- **HTTPS:** libmpv's curl backend rejects malformed URLs. Ensure your media URLs are valid `https://` (or `content://` for local files).
|
|
527
530
|
|
|
531
|
+
### App is stuck at a white screen after splash (no JS error, just white)
|
|
532
|
+
|
|
533
|
+
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:
|
|
534
|
+
|
|
535
|
+
```
|
|
536
|
+
dlopen failed: cannot locate symbol
|
|
537
|
+
"_ZNSt6__ndk127__from_chars_floating_pointIfE..."
|
|
538
|
+
referenced by ".../libmpv.so"
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
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.
|
|
542
|
+
|
|
543
|
+
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.
|
|
544
|
+
|
|
545
|
+
After this, `gradle :app:assembleDebug` will bundle the lib's libc++_shared.so and `libsimbaplayer_mpv.so` will resolve symbols cleanly.
|
|
546
|
+
|
|
528
547
|
### PiP doesn't auto-enter on home press
|
|
529
548
|
|
|
530
549
|
Make sure:
|
|
@@ -621,6 +640,28 @@ Make sure the package is in your `dependencies` (not `devDependencies`) and Metr
|
|
|
621
640
|
- **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
641
|
- **React Native ≥ 0.76 only.** Bridgeless mode is required (the TurboModule path uses `TurboReactPackage`, which doesn't work on the legacy bridge).
|
|
623
642
|
|
|
643
|
+
## Sponsor & support
|
|
644
|
+
|
|
645
|
+
`@simba-dev/react-native-media-player` is free, open source software made possible by [Paval E P](https://github.com/pavalep) and the contributors who help maintain it. If you find it useful in your own work, consider supporting its continued development.
|
|
646
|
+
|
|
647
|
+
<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>
|
|
648
|
+
|
|
649
|
+
Every contribution — large or small — helps me spend more time maintaining, experimenting, and shipping the next set of fixes and features. 🙏
|
|
650
|
+
|
|
651
|
+
### About the maintainer
|
|
652
|
+
|
|
653
|
+
> 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. 🇮🇳
|
|
654
|
+
>
|
|
655
|
+
> 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). 🙌
|
|
656
|
+
>
|
|
657
|
+
> 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. ✨
|
|
658
|
+
>
|
|
659
|
+
> 💡 Have a viable project or something interesting you'd like to build together?
|
|
660
|
+
> 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. 🤝
|
|
661
|
+
>
|
|
662
|
+
> Your support keeps independent work moving. 🦋
|
|
663
|
+
> Gracias for being here! ❤️
|
|
664
|
+
|
|
624
665
|
## Contributing
|
|
625
666
|
|
|
626
667
|
### Local development
|
|
@@ -681,4 +722,4 @@ Consumers are responsible for ensuring their app's license obligations are met w
|
|
|
681
722
|
|
|
682
723
|
---
|
|
683
724
|
|
|
684
|
-
**Status:**
|
|
725
|
+
**Status:** latest published version is **1.5.20** 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.
|
|
4
|
-
"description": "React Native video
|
|
3
|
+
"version": "1.5.20",
|
|
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": "
|
|
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",
|