This is a read-only archive of the Mumble forums.

This website archives and makes accessible historical state. It receives no updates or corrections. It is provided only to keep the information accessible as-is, under their old address.

For up-to-date information please refer to the Mumble website and its linked documentation and other resources. For support please refer to one of our other community/support channels.

Jump to content

Building Mumble JSON Bridge


LilyC
 Share

Recommended Posts

  • Administrators

First off: The way things are supposed to work are that you would call the CLI from within your program and that connects to the NamedPipe for you. That way you don't have to hardcode the name of the pipe into your program. See e.g. https://github.com/mumble-voip/mumble-streamdeck-integration/blob/fc658e935ea7a0d26831e4dab48caaf057a1411f/src/MumblePlugin.cpp#L22-L24

 

 

If you want to connect to the named pipe directly and handle everything yourself, you should orient yourself at the implementation of the CLI itself. The creation of the named pipe is the job of the Mumble plugin. Your program (or the CLI) merely connects to an existing pipe (and if it doesn't exist yet, it means the Mumble plugin is currently not active): https://github.com/mumble-voip/mumble-json-bridge/blob/6cf398f0871e040f6684db7844ee4d32c0dd2389/cli/JSONInterface.cpp#L18-L51

Link to comment
Share on other sites

 Share

×
×
  • Create New...