bluez5: autoconnect bluetooth stream nodes

This commit is contained in:
George Kiagiadakis 2021-03-25 18:13:47 +02:00
parent c1f1614eb6
commit dd887a7b3e

View file

@ -73,6 +73,12 @@ function createNode(parent, id, type, factory, properties)
properties["priority.session"] = priority
end
-- autoconnect if it's a stream
if properties["api.bluez5.profile"] == "headset-audio-gateway" or
factory:find("a2dp.source") then
properties["node.autoconnect"] = true
end
-- apply properties from config.rules
rulesApplyProperties(properties)