Skip to content

Instantly share code, notes, and snippets.

@snakebird
Last active May 16, 2016 18:41
Show Gist options
  • Save snakebird/ecdb69f96e0e63efa64cfd31d3ecb10e to your computer and use it in GitHub Desktop.
Save snakebird/ecdb69f96e0e63efa64cfd31d3ecb10e to your computer and use it in GitHub Desktop.
Zmiana wyjścia audio za pomocą YATSE

Sprawdzenie aktualnego ustawienia:

curl -v -H "Content-type: application/json" -d '{"jsonrpc":"2.0","method":"Settings.GetSettingValue", "params":{"setting":"audiooutput.audiodevice"},"id":1}' http://KODI_HOST/jsonrpc

Przykładowe rezultaty w przypadku OpenElec (dla HDMI i BT Audio):

{"id":1,"jsonrpc":"2.0","result":{"value":"PI:HDMI"}}
{"id":1,"jsonrpc":"2.0","result":{"value":"PULSE:Default"}}

Przykładowe ustawienie wyjścia audio na Bluetooth:

curl -v -H "Content-type: application/json" -d '{"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"audiooutput.audiodevice", "value":"PULSE:Default"},"id":1}' http://KODI_HOST/jsonrpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment