"Play using …" via JSON API



I am trying to play from a Kodi instance to another uPNP player. Via the Kodi UI this can be done via “Play using …” from the context menu which then brings up a list of available players. It will then play the selected item via the selected uPNP sink. In my case I am playing from one Kodi instance to another, both have uPNP enabled and both have different names.

I can retrieve the available player names via Player.GetPlayers, and the desired player’s name is showing up, in my case “Kodi (bushel-mint21)”. This is the same name which also is listed in the Kodi UI.

My problem: I cannot trigger playback to this desired device. My common use case is
1. Create a playlist for playlistid 0 (= music)
2. Call Player.Open with following parameters:

Code:
{
    item =     {
        playlistid = 0;
        position = 0;
    };
    options =     {
        playername = "Kodi (buschel-mint)";
        shuffled = 0;
    };
}

As a result I now receive “OK” back as response, but the playback is done on the Kodi instance the JSON command is sent to, and not on the desired instance with the given playername.

Addition al info:
– This also does not work when playing a radio channel id.
– This does not work for Kodi 21.0 and for Kodi 20.5

Am I doing some wrong?