2016-05-13, 12:16
Platform OpenElec on Raspberry PI with omxplayer
Hello I've the following problem:
We have developed an IPTV system based on Raspberry PI and OpenElec.
We play UDP multicast streams that frequently have more than one audio track for example Euronews.
On the file Keyboard.xml we have the action:
<a>AudioNextLanguage</a>
I've also implemented a python script that uses the json rpc request:
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Player.SetAudioStream", "params": { "playerid": 1, "stream": "next"}, "id": 1}')
On a stream like the "Euronews TV channel" both actions does not works.
Kodi/omxplayer seems to change the language but it returns immediately to default one.
In the log after the change language request I receive correctly the log line:
11:38:44 T:2780816464 NOTICE: Opening audio stream: 3 source: 256
but after a second the player came back to the original language:
11:38:45 T:2780816464 NOTICE: Opening audio stream: 2 source: 256
The only way to have change the language is to use the player OSD pressing M on the keyboard.
On the log after this operation I've the line:
12:09:11 T:2933867600 DEBUG: PVR - SaveCurrentChannelSettings - persisting custom channel settings for channel 'Euronews'
Unfortunately we need to change the user language directly from the keyboard or the remote and not using the Player OSD
Thanks for Help
Paolo
Hello I've the following problem:
We have developed an IPTV system based on Raspberry PI and OpenElec.
We play UDP multicast streams that frequently have more than one audio track for example Euronews.
On the file Keyboard.xml we have the action:
<a>AudioNextLanguage</a>
I've also implemented a python script that uses the json rpc request:
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Player.SetAudioStream", "params": { "playerid": 1, "stream": "next"}, "id": 1}')
On a stream like the "Euronews TV channel" both actions does not works.
Kodi/omxplayer seems to change the language but it returns immediately to default one.
In the log after the change language request I receive correctly the log line:
11:38:44 T:2780816464 NOTICE: Opening audio stream: 3 source: 256
but after a second the player came back to the original language:
11:38:45 T:2780816464 NOTICE: Opening audio stream: 2 source: 256
The only way to have change the language is to use the player OSD pressing M on the keyboard.
On the log after this operation I've the line:
12:09:11 T:2933867600 DEBUG: PVR - SaveCurrentChannelSettings - persisting custom channel settings for channel 'Euronews'
Unfortunately we need to change the user language directly from the keyboard or the remote and not using the Player OSD
Thanks for Help
Paolo