JSON-RPC API Player.Open, varius problems, please help me



Hi, using Kodi 21.0, I try to write quickly and simple:

I use Node red and module for Kodi, I open a video and it works:

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

I open then another video and it works, the video before will be replaced by the new video, and so on.

In the same way I open a photo and works, if I open another photo the previous one is closed and the new one is opened, as expected. If I was seen a previous video the images displays over it.

BUT:
– if now I want to open again a video the image still there, I can’t see the video. The video is playing on background, to see it I have to press exit on keyboard, the image closing and the video on background showing playing. How can I fix it? Should I send a stop command? HOw?
The following commnad returns an error:

Code:
return {
    payload:
    {
        "cmd": "Player.Stop",
    "args": {
           
            }
    }
};

– no all photos can’t be seen, the error on log is:
2024-07-02 14:18:35.977 T:21844    info <general>: set image smb://127.0.0.1/log/test.jpg unplayable
I’ve tried to reset EXIF, resize image, give another fprmat, save in bmp and open it, nothing to do!! WHats is wrong here? If I loda the folder in kodi and open files directlyt, all these file are opening!

–  no all videos can’t be seen, the same problem as pictures, and if I open by file the video works! What’s wrong here? The error is:
2024-07-02 14:23:20.019 T:21844    info <general>: VideoPlayer::OpenFile: smb://127.0.0.1/log/latrottolina.mp4
2024-07-02 14:23:20.020 T:35932    info <general>: Creating InputStream
2024-07-02 14:23:20.037 T:35932   error <general>: CVideoPlayer::OpenInputStream – error opening [smb://127.0.0.1/log/latrottolina.mp4]
2024-07-02 14:23:20.038 T:35932    info <general>: CVideoPlayer::OnExit()
2024-07-02 14:23:20.140 T:21844    info <general>: CVideoPlayer::CloseFile()
2024-07-02 14:23:20.140 T:21844    info <general>: VideoPlayer: waiting for threads to exit
2024-07-02 14:23:20.140 T:21844    info <general>: VideoPlayer: finished waiting

thanks