From 82fa8e04ebf0e5ea18cb6288381eaf326928f258 Mon Sep 17 00:00:00 2001 From: sravan Date: Thu, 23 Jul 2026 19:57:07 +0530 Subject: [PATCH] =?UTF-8?q?fix(video):=20one=20centred=20control=20?= =?UTF-8?q?=E2=80=94=20download=20=E2=86=92=20%=20=E2=86=92=20play,=20as?= =?UTF-8?q?=20specified?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The download button was a small corner overlay, which landed on top of the native control bar's speaker icon. That was not the design asked for either: it should be a single control in the CENTRE that turns into a play button once downloaded. The tile is now the masked poster plus one centred button: not downloaded → download icon (the element has no src at all, so nothing is fetched until it is tapped) downloading → live % inside that same button, in place downloaded → play icon; tapping plays the LOCAL file The native control bar is switched on only when playback starts, so there is nothing for the control to collide with. Progress reports into the button rather than the floating chip, so a video download no longer shows two indicators. Also gives the tile a min-height so the thread doesn't jump while the poster loads. Web/PWA is untouched — it has nowhere to download to, so it keeps streaming with native controls. Co-Authored-By: Claude Opus 4.8 --- server/public/home.html | 77 +++++++++++++++++++++++++---------------- 1 file changed, 48 insertions(+), 29 deletions(-) diff --git a/server/public/home.html b/server/public/home.html index 972f398..0ef5929 100644 --- a/server/public/home.html +++ b/server/public/home.html @@ -664,7 +664,7 @@ /* In-chat video: native