Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback of playlist stops when sending "Player.GoTo" via JSON API in quick sequence #25134

Open
1 of 7 tasks
wutschel opened this issue May 5, 2024 · 0 comments
Open
1 of 7 tasks
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@wutschel
Copy link

wutschel commented May 5, 2024

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:

  1. Add items to a playlist, e.g. 10 songs
  2. Start playback
  3. 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

  • 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.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

1 participant