estbeetoo / node-red-contrib-kodi

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

When I send an image I can't send more videos #17

Open Barabba11 opened 3 months ago

Barabba11 commented 3 months ago

Hi, I've tested locally with Samba

return {
    payload:
    {
        "cmd": "Player.Open",
        "args": {
            "item": {
                "file:": "smb://127.0.0.1/log/test.mp4"
            }

        }
    }
};

the problem is if I tell kodi to open an image the image will still always on top and when I open a video the image still and the video is on background, to see video I've to manyally open the photo. There are commands to close the image?

Barabba11 commented 3 months ago

I've searched for Wike and wanted to try layer stop, but it seams the module can't send it properly, I got error from Kodi.

I've tried


return {
    payload:
    {
        "cmd": "Player.Stop",
    "args": {

            }
    }
};

wit args: or not the same errore, how can I send stop?

Barabba11 commented 3 months ago

better to use transport http instead of samba, I still look for solution how to close an image to wach a video

Barabba11 commented 2 months ago

Solved, somehow. This is a problem of Kodi and I hope they will solve it, I've opened the issue. By now I should send command back and fullscreen, in this way:

return {
    payload:
    {
        "method": "Input.ExecuteAction",
        "args": {
            "action": "back"
        }
    }
};

Also, to start a slideshow with random order I'm usng this: return { payload: { "method": "Player.Open", "args": { "item": { "path": "smb://192.168.101.100/log", "random":true, "recursive":true } } }};