Player.open error
#1
Hi,
I'm using kodi on libreelec.
If I want to play music from a command line like this:

Code:
curl --header "Content-Type: application/json" --request POST --data '{"jsonrpc": "2.0", "method": "Player.Open", "params": {"item":{"file":"plugin://plugin.audio.radio_de/station/104717"}},"id": 63 }' http://192.168.0.100:8080/jsonrpc

I have got the following answer:

Code:
Error: Kodi: (kodi) Message error, unknown type in OnPlay/OnResume message: 'unknown' from '{"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"type":"unknown"},"player":{"playerid":-1,"speed":1}},"sender":"xbmc"}}'

nothing happens until I ask again the same command line. In this case, music start but still have a error message:

Code:
Error: Kodi: (kodi) Message error, unknown type in OnPlay/OnResume message: 'unknown' from '{"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"type":"unknown"},"player":{"playerid":0,"speed":1}},"sender":"xbmc"}}'

Does someone has a idea?

thanks
Reply
#2
I've tried to start a web content instead of a radio.de plugin content:

Code:
curl --header "Content-Type: application/json" --request POST --data '{"jsonrpc": "2.0", "method": "Player.Open", "params": {"item":{"file":"http://statslive.infomaniak.ch/playlist/radionova/radionova-high.mp3/playlist.m3u"}},"id": 4 }' http://192.168.0.100:8080/jsonrpc

I don't have this behavior, the problem may be with radio.de add-on?
Reply
#3
from your first post, i tried what you wrote i got no error message

Code:
curl -s "http://kodi:[email protected]:8080/jsonrpc?Base" -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"plugin://plugin.audio.radio_de/station/104717"}}}'
Reply

Logout Mark Read Team Forum Stats Members Help
Player.open error0