-
-
Notifications
You must be signed in to change notification settings - Fork 84
Description
📡 How to Communicate with nymphcast_server from a Custom App (React Native Feature)
Hi NymphCast team and @MayaPosch 👋,
First off, thank you for this fantastic project! It's an amazing concept, and I’m really excited to integrate it into my react-native app setup.
✅ What I’ve Got Working
- I’m able to run
nymphcast_server(v0.1) on my Windows 11 PC. - When using the official NymphCast Android app, everything works smoothly — I can successfully cast media from my phone to the PC.
🎯 What I Want to Achieve
I already have a React Native app — it’s similar to a Google Home-style app, where users can control their smart appliances over the local network.
Now, I want to add a feature that allows users to:
- Discover available cast targets on the local network
- Select a device and cast MP3 files from the phone to it
- Control playback (play, pause, stop)
Eventually, this feature is intended to work with Wi-Fi speakers. But for testing purposes, I’m using my PC, where I’ve set up nymphcast_server to simulate a castable speaker device.
So instead of building a separate NymphCast client, I want to integrate this casting functionality directly into my existing react-native app.
❓ What I Need Help With
I’d really appreciate some guidance on:
-
📡 What protocol does
nymphcast_serverexpect?- Is there a public protocol specification or message format?
- How should commands like
PLAY,PAUSE, orSTOPbe structured?
-
💡 Are there any example scripts or tools (in Python, JavaScript, etc.) that demonstrate sending commands to the server?
The client and server are written in C++, and I have a very basic understanding of C++, it’s been difficult to figure out how communication is handled.
🙏 Why I’m Asking
Having a clear way to interact with the NymphCast server from a custom controller would be incredibly helpful — especially for integration into mobile react-native apps like mine.
Any protocol info, examples, or pointers would be deeply appreciated.
Thanks again for your amazing work on this open-source project!