![]() |
Android When libreelec starts up every time, calling jsonrpc player.open music does not work? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: Android When libreelec starts up every time, calling jsonrpc player.open music does not work? (/showthread.php?tid=363255) |
When libreelec starts up every time, calling jsonrpc player.open music does not work? - twlhack - 2021-06-25 hi,every one! I have two devices, a small linux computer, and a kodi with libreelec system Now, I want to use crontab to execute timing task calls on linux libreelec jsonrpc play music, how do I do it ? I want to play music by calling jsonrpc api on linux machine And pause playback ctr ![]() When I call with the following api, it seems to have no effect the calling method is as follows curl --location --request POST 'http://192.168.50.23:8080/jsonrpc?jsonrpc?Player.Open' \ --header 'Content-Type: application/json' \ --data-raw '[{"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"position":0,"playlistid":0},"options":{}},"id":244}]' curl --location --request POST 'https://192.168.50.23:8080/jsonrpc?Base' \ --header 'Content-Type: application/json' \ --data-raw '[{"jsonrpc":"2.0","method":"Player.GetProperties","params":[0,["playlistid","speed","position","totaltime","time","percentage","shuffled","repeat","canrepeat","canshuffle","canseek","partymode"]],"id":13},{"jsonrpc":"2.0","method":"Player.GetItem","params":[0,["title","thumbnail","file","artist","genre","year","rating","album","track","duration","playcount","dateadded","episode","artistid","albumid","tvshowid","fanart"]],"id":14}]' please help me! Please help me see these two issues 1, When libreelec starts up every time, calling jsonrpc player.open music does not work? 2, "id":14? How to get the jsonrpc id parameter, how to get this id RE: When libreelec starts up every time, calling jsonrpc player.open music does not work? - Klojum - 2021-06-25 (2021-06-25, 12:42)twlhack Wrote: please help me! Please help me see these two issues No need to overdo it, we try to help everyone here. Your linked image does not work for me, perhaps you can upload it by using the i-button in the forum editor. When you do, you will get a URL in return. RE: When libreelec starts up every time, calling jsonrpc player.open music does not work? - Sidewinder_2011 - 2021-06-25 1) do you have anything in your playlist to play 2) the "id":14 can be any thing u want, it could be words not just numbers, it's more to with reference for you self when u get a response, if your making lots of requests at once |