2022-12-26, 23:31
Hi all,
I have a raspberry PI 4 set up with LibreElec and my goal is to play a file using the remote API. Remote control from other machines is enabled. I'm having no luck playing a file using the following method (using POST):
Response is:
This GET request works:
With the response:
I've come across various posts and examples asking this question but I can't seem to find a working solution. Any tips would be very much appreciated.
Cheers!
I have a raspberry PI 4 set up with LibreElec and my goal is to play a file using the remote API. Remote control from other machines is enabled. I'm having no luck playing a file using the following method (using POST):
json:http://192.168.0.23:8080/jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Player.Open","params":{"item":{"file":"[email protected]"}}}
Response is:
json:{
"error": {
"code": -32700,
"message": "Parse error."
},
"id": null,
"jsonrpc": "2.0"
}
This GET request works:
json:http://192.168.0.23:8080/jsonrpc?request={"jsonrpc": "2.0", "id": 1, "method": "Playlist.GetPlaylists"}
With the response:
json:{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"playlistid": 0,
"type": "audio"
},
{
"playlistid": 1,
"type": "video"
},
{
"playlistid": 2,
"type": "picture"
}
],
}
I've come across various posts and examples asking this question but I can't seem to find a working solution. Any tips would be very much appreciated.
Cheers!