From 7ba272edf6eb16a07a713cdf987e63f54a77d5af Mon Sep 17 00:00:00 2001 From: ghassan Date: Wed, 21 Oct 2026 12:31:01 +0300 Subject: [PATCH] feat(player): end screen + 5s autoplay countdown When a video finishes and autoplay is on, instead of switching to the next recommendation silently we show a YouTube-style end screen with the next video's thumbnail, title and a radial countdown. The viewer can Cancel to stay put, Play Now to skip the countdown, or just wait and the existing _plOnVideoEnd / navigateNext handoff fires at zero. End screen is skipped entirely when there's no sidebar card to show or when loop is on (loop keeps the old same-video behavior). Co-Authored-By: Claude Opus 4.7 (1M context) --- .../views/components/video-player.blade.php | 174 +++++++++++++++++- 1 file changed, 170 insertions(+), 4 deletions(-) diff --git a/resources/views/components/video-player.blade.php b/resources/views/components/video-player.blade.php index 56f3959..31fc1fd 100644 --- a/resources/views/components/video-player.blade.php +++ b/resources/views/components/video-player.blade.php @@ -205,12 +205,99 @@ {{-- /chrome-controls --}} {{-- /chrome-bottom --}} + {{-- End screen: shown when the video reaches its 'ended' event. Carries + a thumbnail + title for the next recommended video and a radial + countdown ring; auto-advances when the ring completes, cancelled on + any click inside the player. --}} + + {{-- /ytp --}} {{-- /ytp-wrap --}} @once