Skip to content

How to Communicate with nymphcast_server from a Custom App (React Native) #95

@ayushbharadva

Description

@ayushbharadva

📡 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_server expect?

    • Is there a public protocol specification or message format?
    • How should commands like PLAY, PAUSE, or STOP be 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions