xibosignage / xibo

Xibo Digital Signage
https://xibosignage.com
GNU Affero General Public License v3.0
579 stars 165 forks source link

Dynamic Playlist: Ordering disruption with empty playlist in a sub-playlist #3539

Open ifarzana opened 3 weeks ago

ifarzana commented 3 weeks ago

When an empty dynamic playlist is included alongside other populated dynamic playlists, the intended sequence of media items is disrupted.

Steps to Reproduce:

  1. Create three dynamic playlists:

    • Playlist One: Contains media items A1, A2, A3, A4, A5, and A6.
    • Playlist Two: Contains a single media item B1.
    • Playlist Three: Leave this playlist empty.
  2. Configure the layout

    • Add these three playlists as a sub-playlist on the layout: Expected order:

image

  1. Observe the playback sequence in Layout Preview

Expected Behaviour: The playlists should display in the following order: A1 B1 A2 B1 A3 B1 A4 B1 A5 B1 A6 B1

Actual Behaviour: When the empty playlist (Playlist Three) is included, the sequence is disrupted, resulting in a disordered playback. For example: A1 B1 A1 A2 B1 A2 A3 B1 A3 A4 B1 A4 A5 B1

Additional Findings:

Removing the empty playlist resolves the issue and restores the correct order.

An internal dev environment has a layout (ID 2506) showcasing the issue.

dasgarner commented 2 weeks ago

@PeterMis does this get solved with these changes? https://github.com/xibosignage/xibo/issues/3535