Stop/start recording when headless on Windows #1024
Replies: 7 comments 2 replies
-
I think the linux headless build supports this with SIGUSR1 or SIGUSR2 not sure if Windows can send these commands |
Beta Was this translation helpful? Give feedback.
-
SIGUSR1 and 2 aren't supported on Windows. Other inter-process communications methods are available on Windows. |
Beta Was this translation helpful? Give feedback.
-
Right. Can you detail what methods would be common/useful on Windows in this case? |
Beta Was this translation helpful? Give feedback.
-
This article discusses various mechanisms in Windows for dealing with the various types of UNIX messages. http://www.zemris.fer.hr/~leonardo/os/math/labosi/pripreme/upute/misc/Unix2Win.htm For SIGUSR1/2 messages it suggests using SendMessage() - although this is asynchronous, so PostMessage() might be better. The function would need to be invoked from a second application or a PowerShell script e.g. as here https://stackoverflow.com/questions/56078270/use-powershell-to-send-message-to-a-window-control |
Beta Was this translation helpful? Give feedback.
-
The PowerShell script option sounds feasible. The existing signal handling code is messy and platform-specific anyway -- introducing proper PostMessage() support would probably be very useful. Another option, of course, is run the server on Linux ;). I have a Windows shortcut that just runs something like |
Beta Was this translation helpful? Give feedback.
-
@Andrew999999 It seems like there may be a solution to this emerging, but if it's OK I'll move this to a Discussion until we agree on a defined action that we can add to the backlog. |
Beta Was this translation helpful? Give feedback.
-
This should be addressed by (something like) #2006 or #1975. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
If jamulus server is started with e.g. Task Scheduler with no gui it is not possible to turn recording on/off. It is either on for the duration the server is running, or off. This mode of operation is used when the user wants to turn the server instance off/on remotely (e.g. when being hosted in AWS) and doesn't want to have to log in as a user each time to start the server.
Describe the solution you'd like
<! --A clear and concise description of what you want to happen. -->
Ability to remotely turn recording off/on on a jamulus server, preferably without having to log in to the Windows server hosting it - although I recognise that that is optional.
Describe alternatives you've considered
Settings file that is periodically read by Jamulus server - easy but will result in delay before recording starts. This would cause usability issues.
Inter-process communication from another application - more complex to code specific to Windows, but would provide instant control which would fit well with useability (e.g. "let's record the next song").
Control from a client - most complex, e.g. which client, but best from a UX perspective as no remote login to the server is required first.
Additional context
A basic capability is available via SIGNIT for linux-hosted servers. But SIGINT is not supported on Windows.
Beta Was this translation helpful? Give feedback.
All reactions