Fix playlist controls: add to type-specific views (music, generic, match)

Controls were only added to show.blade.php, but music/generic/match videos
render their own complete layouts with their own sidebars. Added the
pl-controls-bar to all three type views and the global CSS to app.blade.php.

- music: full standalone JS with shuffle/loop/autoplay + _plOnTrackEnd hook
- generic/match: syncs with video-player's existing ytpShuffleRow/ytpAutoplayRow toggles
- audio-player: ended handler now calls window._plOnTrackEnd if defined
- video-player: exposes window._ytpNav.next/prev for sidebar prev/next buttons

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
ghassanandClaude Sonnet 4.6 committed 2026-05-16 11:45:33 +03:00
1 parent 05db0e128a
commit 99f71c54e5
6 files changed
+217 -4

No files matched your search

@@ -1175,6 +1175,7 @@ function navigatePrev() {
const url = shuffleOn ? getShuffledPrevUrl() : PREV_URL;
if (url) window.location.href = url;
}
window._ytpNav = { next: navigateNext, prev: navigatePrev };
video.addEventListener('ended', () => {
updatePlayIcon();