Last active
May 8, 2023 17:37
-
-
Save dougcooper/3ab8f5f406c441ede9c8c8f268c4e042 to your computer and use it in GitHub Desktop.
how to set a node property with wireplumber script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vlc_om = ObjectManager { | |
Interest { | |
type = 'node', | |
Constraint { 'node.name', 'matches', 'VLC*' }, | |
}, | |
} | |
vlc_om:connect('object-added', function(om,node) | |
Log.message('VLC input connected') | |
node.properties['priority.session'] = 1050 | |
end) | |
vlc_om:activate() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
adding this script to
/etc/wireplumber/main.lua.d
gives the following error