Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julian Bouzas
WirePlumber
Commits
fd7b68df
Commit
fd7b68df
authored
May 21, 2021
by
George Kiagiadakis
Browse files
scripts: remove static-sessions
parent
ac9e1e89
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/config/policy.lua.d/10-default-policy.lua
View file @
fd7b68df
default_policy
=
{}
default_policy
=
{}
default_policy
.
sessions
=
{
-- [session name] = { session properties }
[
"audio"
]
=
{
[
"media.type"
]
=
"Audio"
},
[
"video"
]
=
{
[
"media.type"
]
=
"Video"
},
}
default_policy
.
endpoints
=
{}
default_policy
.
endpoints
=
{}
default_policy
.
policy
=
{
default_policy
.
policy
=
{
...
@@ -27,9 +21,6 @@ function default_policy.enable()
...
@@ -27,9 +21,6 @@ function default_policy.enable()
-- API to access mixer controls, needed for volume ducking
-- API to access mixer controls, needed for volume ducking
load_module
(
"mixer-api"
)
load_module
(
"mixer-api"
)
-- Create sessions statically at startup
load_script
(
"static-sessions.lua"
,
default_policy
.
sessions
)
-- Create endpoints statically at startup
-- Create endpoints statically at startup
load_script
(
"static-endpoints.lua"
,
default_policy
.
endpoints
)
load_script
(
"static-endpoints.lua"
,
default_policy
.
endpoints
)
...
...
src/scripts/static-sessions.lua
deleted
100644 → 0
View file @
ac9e1e89
-- WirePlumber
--
-- Copyright © 2021 Collabora Ltd.
-- @author George Kiagiadakis <george.kiagiadakis@collabora.com>
--
-- SPDX-License-Identifier: MIT
-- Receive script arguments from config.lua
local
sessions_config
=
...
if
sessions_config
then
sessions
=
{}
for
k
,
v
in
pairs
(
sessions_config
)
do
Log
.
info
(
"Creating session: "
..
k
)
sessions
[
k
]
=
ImplSession
()
if
type
(
v
)
==
"table"
then
v
[
"session.name"
]
=
k
sessions
[
k
]:
update_properties
(
v
)
else
sessions
[
k
]:
update_properties
({
[
"session.name"
]
=
k
})
end
sessions
[
k
]:
activate
(
Features
.
ALL
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment