1 -- Default policy config file --
5 default_policy.sessions = {
6 -- [session name] = { session properties }
7 ["audio"] = { ["media.type"] = "Audio" },
8 --["video"] = { ["media.type"] = "Video" },
11 default_policy.endpoints = {
12 -- [endpoint name] = { endpoint properties }
14 ["endpoint.multimedia"] = {
15 ["media.class"] = "Audio/Sink",
16 ["role"] = "Multimedia",
18 ["endpoint.speech_low"] = {
19 ["media.class"] = "Audio/Sink",
20 ["role"] = "Speech-Low",
22 ["endpoint.custom_low"] = {
23 ["media.class"] = "Audio/Sink",
24 ["role"] = "Custom-Low",
26 ["endpoint.navigation"] = {
27 ["media.class"] = "Audio/Sink",
28 ["role"] = "Navigation",
30 ["endpoint.speech_high"] = {
31 ["media.class"] = "Audio/Sink",
32 ["role"] = "Speech-High",
34 ["endpoint.custom_high"] = {
35 ["media.class"] = "Audio/Sink",
36 ["role"] = "Custom-High",
38 ["endpoint.communication"] = {
39 ["media.class"] = "Audio/Sink",
40 ["role"] = "Communication",
42 ["endpoint.emergency"] = {
43 ["media.class"] = "Audio/Sink",
44 ["role"] = "Emergency",
48 default_policy.policy = {
49 ["move"] = false, -- moves session items when metadata target.node changes
50 ["follow"] = true, -- moves session items to the default device when it has changed
54 ["alias"] = { "Movie", "Music", "Game" },
56 ["action.default"] = "cork",
60 ["action.default"] = "cork",
61 ["action.Speech-Low"] = "mix",
65 ["action.default"] = "cork",
66 ["action.Custom-Low"] = "mix",
70 ["action.default"] = "cork",
71 ["action.Navigation"] = "mix",
75 ["action.default"] = "cork",
76 ["action.Speech-High"] = "mix",
80 ["action.default"] = "cork",
81 ["action.Custom-High"] = "mix",
85 ["action.default"] = "cork",
86 ["action.Communication"] = "mix",
89 ["alias"] = { "Alert" },
91 ["action.default"] = "cork",
92 ["action.Emergency"] = "mix",
97 function default_policy.enable()
98 -- Session item factories, building blocks for the session management graph
99 -- Do not disable these unless you really know what you are doing
100 load_module("si-node")
101 load_module("si-audio-adapter")
102 load_module("si-standard-link")
103 load_module("si-audio-endpoint")
105 -- Create sessions statically at startup
106 load_script("static-sessions.lua", default_policy.sessions)
109 -- Create endpoints statically at startup
110 load_script("static-endpoints.lua", default_policy.endpoints)
112 -- Create session items for nodes that appear in the graph
113 load_script("create-item.lua")
115 -- Link nodes to each other to make media flow in the graph
116 load_script("policy-node.lua", default_policy.policy)
118 -- Link client nodes with endpoints to make media flow in the graph
119 load_script("policy-endpoint-client.lua", default_policy.policy)
120 load_script("policy-endpoint-client-links.lua", default_policy.policy)
122 -- Link endpoints with device nodes to make media flow in the graph
123 load_script("policy-endpoint-device.lua", default_policy.policy)