2022-02-01 10:14:37 -05:00
|
|
|
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,
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-03 12:07:00 +02:00
|
|
|
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,
|
|
|
|
|
-- },
|
|
|
|
|
-- },
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-01 10:14:37 -05:00
|
|
|
function stream_defaults.enable()
|
|
|
|
|
-- Save and restore stream-specific properties
|
2022-02-03 12:07:00 +02:00
|
|
|
load_script("restore-stream.lua", {
|
|
|
|
|
properties = stream_defaults.properties,
|
|
|
|
|
rules = stream_defaults.rules,
|
|
|
|
|
})
|
2022-02-01 10:14:37 -05:00
|
|
|
end
|