Skip to content

Feature(carousel): Achieve loop playback using logical offsets.#1664

Closed
Li-JinKang wants to merge 4 commits into
PixelPlayerHQ:masterfrom
Li-JinKang:feature-carousel
Closed

Feature(carousel): Achieve loop playback using logical offsets.#1664
Li-JinKang wants to merge 4 commits into
PixelPlayerHQ:masterfrom
Li-JinKang:feature-carousel

Conversation

@Li-JinKang

Copy link
Copy Markdown
Contributor

Implementation principle:
real list: A B C
virtual list: C` A B C A`
Map C' to C.

Detail:

  • Implemented a virtual indexing system to allow the album carousel to
    loop infinitely.
  • Added PrefetchAlbumNeighborsWithMapping function, accepting virtualToRealIndex mapping function

A brief screen recording:
https://github.com/user-attachments/assets/aa4694d9-9d45-49b7-a9ca-c91aad88fc2c

Implemented a virtual indexing system to allow the album carousel to
loop infinitely.
- Added PrefetchAlbumNeighborsWithMapping function, accepting virtualToRealIndex mapping function
- Ensure that the flags are correctly reset even if scrollToItem throws an exception.
# Conflicts:
#	app/src/main/java/com/theveloper/pixelplay/presentation/components/AlbumCarouselSelection.kt
@Li-JinKang Li-JinKang closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant