2024-04-22, 10:06
Yes, the app polls the player status each second. I took your response as a trigger to review and change the internal code, e.g. I don‘t think it is required to disable the PartyMode button in many error cases.
Edit: I can reproduce the issue about the PartyMode ending when pressing skip/next in a fast sequence. This happens as Kodi responds with an unexpected result when checking for active players. I can reduce the probability of this by not sending another command before the result came back. Possibly this is an issue with JSON handling inside Kodi. I will dig further into this, even though I am not too worried as the situation can be cured by simply enabling PartyMode again.
Edit 2: The issue with pressing "next" in quick sequence also happens for usual playlist, without PartyMode. It happens witheither using Remote screen or NowPlaying/Playlist controls. I debugged the response of the player. Usually the sequence "Player.OnStop" > "Player.OnPlay" > "Player.OnAVStart" is received. In the error case the sequence is different. Seems like this is a race condition inside Kodi.
Edit 3: Started a new thread on this: https://forum.kodi.tv/showthread.php?tid=377231
Edit: I can reproduce the issue about the PartyMode ending when pressing skip/next in a fast sequence. This happens as Kodi responds with an unexpected result when checking for active players. I can reduce the probability of this by not sending another command before the result came back. Possibly this is an issue with JSON handling inside Kodi. I will dig further into this, even though I am not too worried as the situation can be cured by simply enabling PartyMode again.
Edit 2: The issue with pressing "next" in quick sequence also happens for usual playlist, without PartyMode. It happens witheither using Remote screen or NowPlaying/Playlist controls. I debugged the response of the player. Usually the sequence "Player.OnStop" > "Player.OnPlay" > "Player.OnAVStart" is received. In the error case the sequence is different. Seems like this is a race condition inside Kodi.
Edit 3: Started a new thread on this: https://forum.kodi.tv/showthread.php?tid=377231