estbeetoo / node-red-contrib-kodi

Node-RED plugin (node) to communicate with Kodi/XBMC
Other
3 stars 4 forks source link

Struggling with cmd formats Player.PlayPause #11

Open krambriw opened 4 years ago

krambriw commented 4 years ago

I can't get the Player.PlayPause command syntax correctly. I have tried

{
    "cmd": "Player.PlayPause",
    "args": [
        {
            "playerid": 0
        },
        {
            "play": "toggle"
        }
    ]
}

but it just say's "send error: Error: Server responded with error: Invalid params."

Could you give a hint how the arguments shall be formatted/configured? Best regards, Walter

sktaylortrash commented 1 year ago

Necro thread but in case anyone finds this, this works for me

return {
    payload:
    {
        "cmd": "Player.PlayPause",
        "args": {
            "playerid": 1
        },
        "id": "1"
    }
};