Add autoplay toggle button to video player

Agent-Logs-Url: https://github.com/mkelvers/mal/sessions/72375034-49a9-451f-8e30-ee26c9c20eab

Co-authored-by: melosh101 <59763532+melosh101@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-28 06:25:40 +00:00
committed by GitHub
parent 9b33c7593b
commit 77be47297f
2 changed files with 36 additions and 1 deletions

View File

@@ -251,6 +251,20 @@ templ VideoPlayer(data shared.WatchPageData, displayTitle string) {
<path d="M11.9894 5.45398V0L2 7.79529L11.9894 15.5914V10.3033H47.0886V40.1506H33.2442V45H52V5.45398H11.9894Z" fill="white"></path>
</svg>
</button>
<button
data-autoplay
class="flex h-9 w-9 items-center justify-center text-white sm:h-10 sm:w-10"
title="Autoplay: On"
>
<svg
class="h-5 w-5 sm:h-6 sm:w-6"
viewBox="0 0 24 24"
aria-hidden="true"
>
<polygon points="5 6 16 12 5 18" fill="white" stroke="none"></polygon>
<line x1="19" y1="6" x2="19" y2="18" stroke="white" stroke-width="2" stroke-linecap="round"></line>
</svg>
</button>
<button
data-fullscreen
class="flex h-9 w-9 items-center justify-center text-white sm:h-10 sm:w-10"