xbmc
xbmc copied to clipboard
Playback of playlist stops when sending "Player.GoTo" via JSON API in quick sequence
Bug report
Describe the bug
Here is a clear and concise description of what the problem is:
As already described in the support forum (link to post) Kodi does not handle multiple quick sequence "Player.GoTo"
JSON API commands gracefully while playing a playlist.
Expected Behavior
Here is a clear and concise description of what was expected to happen:
Kodi processes the JSON API commands in the sequence in which they were sent. Playback continues.
Actual Behavior
If the user sends multiple "Player.GoTo"
commands via JSON API in quick sequence, the playback stops unexpectedly. This happens both in Party mode or while playing songs or video items in a playlist. This is reported by another user to not happen when using a IR remote.
Possible Fix
To Reproduce
Steps to reproduce the behavior:
- Add items to a playlist, e.g. 10 songs
- Start playback
- Send multiple "GoTo" JSON command (see below) in quick sequence. For testing I used 5-6 of such commands (staying with the amount of available playlist items).
JSON command to reproduce:
{"jsonrpc":"2.0","method":"Player.GoTo","params":{"to":"next"}, "id":2}
Remark:
- Alternatively you can use the iOS Remote App to send these command by pressing the "skip" buttons in quick sequence.
- This is not reproducible with the Android Remote App Kore as this does not allow to press "skip" in quick sequence.
Debuglog
The debuglog can be found here:
Screenshots
Here are some links or screenshots to help explain the problem:
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
Different Kodi responses in error case:
In the working case for each skip-event Kodi sends back player notifications in the sequence "Player.OnStop"
> "Player.OnPlay"
> "Player.OnAVStart"
. In the non-working case the order is not kept and the final "Player.OnAVStart"
notification is not received.
Impact of delay on sender side
When pausing the iOS Remote App before sending a next command (tried by simple hardcoding with 0.6s) this problem does not occur.
IR remote does not cause this problem
Another reported that this issue does not show when using an IR remote (link to post).
Your Environment
Used Operating system:
-
[ ] Android
-
[ ] iOS
-
[ ] tvOS
-
[x] Linux
-
[ ] macOS
-
[ ] Windows
-
[ ] Windows UWP
-
Operating system version/name: Linux Mint 21.1
-
Kodi version: 20.5
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.