Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repurpose Lounge to replace jamulus-php? #5

Open
mcfnord opened this issue Mar 25, 2023 · 1 comment
Open

Repurpose Lounge to replace jamulus-php? #5

mcfnord opened this issue Mar 25, 2023 · 1 comment

Comments

@mcfnord
Copy link

mcfnord commented Mar 25, 2023

Hi.

I rely on https://github.com/softins/jamulus-php to gather current details about every connection on every public server.

This PHP briefly connects to each server to gather each connection's username, instrument, and location.

I have considered re-implementing this by repurposing lounge.

However, I know lounge cannot connect to every server. (I wonder why?) I also have heard that the PHP code might just trigger initial connection steps, while the lounge code establishes a stream. Maybe lounge only fails in a later step. So maybe lounge's Go could replace the PHP for this essential data service.

The most valuable piece of new data I want is the "you're muted" state for every channel. I would like to identify servers where nobody can hear a new joiner. Levels are also informative, because I could probably identify silent servers.

Do you think the lounge Go could be repurposed to replace and extend jamulus-php?

@dtinth
Copy link
Owner

dtinth commented Mar 26, 2023

  • The actual Jamulus client implementation is in gojam project.

  • Most connection issues are due to the server’s firewall. The official Jamulus client uses a UDP hole-punching technique, with the help of a directory, to make these server open a port for the client. gojam does support UDP hole punching by supplying a -directory argument, however, it has not been implemented in jamulus-lounge, because it is intended for use with localhost.

  • Right now gojam does not provide information about muted state. However it is possible to retrieve it by implementing support for the relevant message.

  • To answer your question — yes, but not in its current form, but you’d have to implement support for server list-related messages in addition to the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants