Hello everybody,
I try to
get the information about the codec of the actual played audio stream.
(Background: I'm controlling my Denon Receiver already with Eventghost, and want to switch the Upmixer-Setting in the Denon Receiver in depoendent of the audiocodec. The Receiver saves the same setting to all Dolby* Input.

)
What I'm missing is, how I
get the audiocodec information of the actual played stream into eventghost.
Yesterday I played a lot with the xbmc2 plugin.
And I got it to work, that I
get all (!) streamdetails of the current played item into eventghost.
But if the played file has two or more audio streams, I
get the info from all of them. And don't know which one is played.
I think I need the json-rpc item "Player.Audio.Stream" (
https://kodi.wiki/view/JSON-RPC_API/v8# ... dio.Stream)??
(I'm using Kodi 17.6 (Dsplayer) )
Has any one a hint for me how I can
get that?
Another question:
to interpret the json-rpc reply, I have to write a small python snipplet in eventghost?
(I started already one, I think it will work)
Or is there are an easier way to do this?
The logik behind all of this should be:
IF
Audiocodec = "atmos" then set Receiver to Atmos
else if
Audiocodec = "DTS-X" then set Receiver to DTS-X
else
set Receiver to Auro
Many Thanks in advance.