stream_defaults = {} stream_defaults.properties = { -- whether to restore the last stream properties or not ["restore-props"] = true, -- whether to restore the last stream target or not ["restore-target"] = true, } stream_defaults.rules = { -- Rules to override settings per node -- { -- matches = { -- { -- { "application.name", "matches", "pw-play" }, -- }, -- }, -- apply_properties = { -- ["state.restore-props"] = false, -- ["state.restore-target"] = false, -- }, -- }, } function stream_defaults.enable() -- Save and restore stream-specific properties load_script("restore-stream.lua", { properties = stream_defaults.properties, rules = stream_defaults.rules, }) end