takeone-youtube-clone/TODO_next_prev_controls.md
2026-03-11 11:21:33 +03:00

1.2 KiB

TODO: Next/Previous Video Controls for Playlist

Task

Add next and previous video controls to the video player when viewing from a playlist context, plus autoplay toggle.

Implementation Steps

Step 1: Modify VideoController.php

  • Add nextVideo and previousVideo variables based on current video position in playlist
  • Add autoplayNext variable support

Step 2: Modify generic.blade.php

  • Add Next/Previous control buttons overlay on video player
  • Add autoplay toggle switch
  • Add keyboard shortcuts (Left/Right arrows)
  • Style controls to match YouTube-style

Step 3: Modify music.blade.php

  • Add Next/Previous control buttons overlay on video player
  • Add autoplay toggle switch
  • Add keyboard shortcuts (Left/Right arrows)
  • Style controls to match YouTube-style

Step 4: Modify match.blade.php

  • Add Next/Previous control buttons overlay on video player
  • Add autoplay toggle switch
  • Add keyboard shortcuts (Left/Right arrows)
  • Style controls to match YouTube-style

Files Edited

  1. app/Http/Controllers/VideoController.php
  2. resources/views/videos/types/generic.blade.php
  3. resources/views/videos/types/music.blade.php
  4. resources/views/videos/types/match.blade.php

COMPLETED