From 3857171bdb6b741a1f83e11fa22875598bc1714e Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Tue, 17 Jun 2025 09:50:42 +0200 Subject: [PATCH] Implement custom video controls with play/pause and seek functionality --- static/index.html | 84 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 79 insertions(+), 5 deletions(-) diff --git a/static/index.html b/static/index.html index 8791786..320b500 100644 --- a/static/index.html +++ b/static/index.html @@ -116,6 +116,41 @@ #video-overlay-container #back-button.button-hidden { opacity: 0; /* Class to hide the button */ } + + #custom-video-controls { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + padding: 10px; + background-color: rgba(0, 0, 0, 0.5); + display: flex; + align-items: center; + z-index: 1; /* Above video, but below back button if it were in the same direct stacking context */ + opacity: 1; + transition: opacity 0.3s ease-in-out; + box-sizing: border-box; + } + + #custom-video-controls.controls-hidden { + opacity: 0; + } + + #custom-play-pause-button { + background: none; + border: none; + color: white; + font-size: 1.5em; /* Adjust size as needed */ + cursor: pointer; + padding: 5px 10px; + margin-right: 10px; + } + + #custom-seek-bar { + flex-grow: 1; + cursor: pointer; + accent-color: #3498db; /* Optional: color for the seek bar thumb and progress */ + }