bluez.lua: set the loopback input stream media class to internal

This hides the loopback stream node from applications, making desktop
environments to not show the 'recording from microphone' icon (Eg gnome-panel)
when the bluetooth device is not recording yet.
This commit is contained in:
Julian Bouzas 2024-01-23 11:59:57 -05:00
parent 2e9e3a7564
commit 95ae88d3e7

View file

@ -386,6 +386,7 @@ function CreateDeviceLoopbackSource (dev_name, dec_desc, dev_id)
local args = Json.Object {
["capture.props"] = Json.Object {
["node.name"] = string.format ("bluez_capture.%s", dev_name),
["media.class"] = "Stream/Input/Audio/Internal",
["node.description"] =
string.format ("Bluetooth capture for %s", dec_desc),
["audio.channels"] = 1,