Skip to content
Snippets Groups Projects
Commit 4fdccf52 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

config: mimick media-session's v4l2-monitor.conf

parent 100e6dc3
No related branches found
No related tags found
No related merge requests found
......@@ -57,9 +57,6 @@ load_module("si-standard-link")
--
-- load_pw_module ("spa-node-factory")
-- Video4Linux2 device management via udev
load_monitor("v4l2")
-- Automatically suspends idle nodes after 3 seconds
load_script("suspend-node.lua")
......
-- V4L2 monitor config file --
local properties = { }
local rules = {
-- An array of matches/actions to evaluate.
{
-- Rules for matching a device or node. It is an array of
-- properties that all need to match the regexp. If any of the
-- matches work, the actions are executed for the object.
matches = {
{
-- This matches all cards.
{ "device.name", "matches", "v4l2_device.*" },
},
},
-- Apply properties on the matched object.
apply_properties = {
-- ["device.nick"] = "My Device",
},
},
{
matches = {
{
-- Matches all sources.
{ "node.name", "matches", "v4l2_input.*" },
},
{
-- Matches all sinks.
{ "node.name", "matches", "v4l2_output.*" },
},
},
apply_properties = {
--["node.nick"] = "My Node",
--["priority.driver"] = 100,
--["priority.session"] = 100,
--["node.pause-on-idle"] = false,
},
},
}
function enable_v4l2()
load_monitor("v4l2", {
properties = properties,
rules = rules,
})
end
enable_v4l2()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment