Set metadata from config file properties
I am looking to implement the PipeWire server in a very slim configuration on my server, and I noticed that there does not seem to be a way to set the contents of metadata
objects from the factory args
. You must instead use context.exec
with pw-metadata
. It would be fantastic to be able to provide it through the properties, something like:
context.objects = [
{ factory = metadata
args = {
metadata.name = default
metadata.values = [
{ key = default.audio.sink value = { name = somesink } }
{ key = default.audio.source value = { name = somesource } }
]
}
}
]
If something like this is already possible then I'd love to know. I've scoured the Internet but couldn't find anything, and based on my weak reading of the source, the metadata module does not appear to use properties for anything but the metadata name.
I plan to use this for more than just default devices, but if there's a different way to do that then that's cool too.