2021-05-20, 21:57
I understand that the following curl command should be able to change an audio output device. When I try it on 19.1, the curl call works, but it selects the incorrect audio device if I check by going to System>Audio>Audio output device. Note I did find JSON-RPC_API/v12 which does not show
On my system, there are 8 audio devices per my kodi.log but when I check after executing the below command, "HDA Intel, DHMI #0" is displayed but I expect that "HDA Intel, SAM SAMSUNG on HDMI#1" to be there.
I flagged asking a mod to move this to the right section, thanks: https://forum.kodi.tv/forumdisplay.php?fid=174
audiooutput.audiodevice
at all.On my system, there are 8 audio devices per my kodi.log but when I check after executing the below command, "HDA Intel, DHMI #0" is displayed but I expect that "HDA Intel, SAM SAMSUNG on HDMI#1" to be there.
Code:
% curl -v -H "Content-type: application/json" -d '{"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"audiooutput.audiodevice","value":"hdmi:CARD=HDMI,DEV=1"},"id":1}' http://localhost:8080/jsonrpc -u xbmc:xbmc
* Trying ::1:8080...
* Connected to localhost (::1) port 8080 (#0)
* Server auth using Basic with user 'xbmc'
> POST /jsonrpc HTTP/1.1
> Host: localhost:8080
> Authorization: Basic eGJtYzp4Ym1j
> User-Agent: curl/7.76.1
> Accept: */*
> Content-type: application/json
> Content-Length: 139
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Connection: Keep-Alive
< Content-Type: application/json
< Content-Length: 38
< Cache-Control: private, max-age=0, no-cache
< Accept-Ranges: none
< Date: Thu, 20 May 2021 19:57:09 GMT
<
* Connection #0 to host localhost left intact
{"id":1,"jsonrpc":"2.0","result":true}
I flagged asking a mod to move this to the right section, thanks: https://forum.kodi.tv/forumdisplay.php?fid=174