You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With older liquidsoap versions (2.1.0) you were able to reuse the same id and therefore set the same namespace for auto generated server functions. With newer versions (2.2.5+) enforcing unique ids, this is not possible anymore.
I therefore propose adding an argument to sources ( mix, input.stream, request.queue or other methods which create server functions on the fly), allowing to set a server namespace different from the id. For mix this is already implemented.
A current work around would be to create all auto generated server functions by hand and set them in the namespace you need. This does create a lot of duplicated code and creates a lot of unnecessary server functions.
For the playout that we have been working on, the upgrade from version 2.1.0 to 2.2.5 or new versions breaks the communication with our control unit. This is due to the fact that we expect the server functions in the same namespace.
When you connect via telnet and call mixer.inputs and help you will see, that mixer.inputs returns in_queue.1 but the server functions for queue have the namespace in_queue. Therefore it is not possible anymore to get a list of available queues and then uses these further down the line.
A solution could be to add an optional namespace argument which would set the namespace for the generated server functions:
The text was updated successfully, but these errors were encountered:
Loxbie
changed the title
Add a namespace argument for auto generated server functions
Feature Request: Namespace argument for auto generated server functions
Jun 20, 2024
With older liquidsoap versions (2.1.0) you were able to reuse the same id and therefore set the same namespace for auto generated server functions. With newer versions (2.2.5+) enforcing unique ids, this is not possible anymore.
I therefore propose adding an argument to sources (
mix
,input.stream
,request.queue
or other methods which create server functions on the fly), allowing to set a server namespace different from the id. Formix
this is already implemented.A current work around would be to create all auto generated server functions by hand and set them in the namespace you need. This does create a lot of duplicated code and creates a lot of unnecessary server functions.
For the playout that we have been working on, the upgrade from version 2.1.0 to 2.2.5 or new versions breaks the communication with our control unit. This is due to the fact that we expect the server functions in the same namespace.
An example of what doesn't work atm:
When you connect via telnet and call
mixer.inputs
andhelp
you will see, thatmixer.inputs
returnsin_queue.1
but the server functions for queue have the namespacein_queue
. Therefore it is not possible anymore to get a list of available queues and then uses these further down the line.A solution could be to add an optional
namespace
argument which would set the namespace for the generated server functions:The text was updated successfully, but these errors were encountered: