fix some grey overlays on the video player with some browsers

This commit is contained in:
Pas 2025-11-05 10:25:48 -07:00
parent a7889d568b
commit 324cff18cc
3 changed files with 6 additions and 1 deletions

View file

@ -62,7 +62,10 @@ function ThumbnailDisplay(props: { at: number; show: boolean }) {
className="h-24 border rounded-xl border-gray-800"
/>
)}
<p className="mt-1 mx-auto text-center border rounded-xl border-gray-800 px-3 py-1 backdrop-blur-lg bg-black bg-opacity-20 w-max">
<p
className="mt-1 mx-auto text-center border rounded-xl border-gray-800 px-3 py-1 backdrop-blur-lg bg-black bg-opacity-20 w-max"
style={{ isolation: "isolate" }}
>
{formattedTime}
</p>
</div>

View file

@ -98,6 +98,7 @@ export function CaptionCue({
styling.backgroundBlur !== 0
? `blur(${Math.floor(styling.backgroundBlur * 64)}px)`
: "none",
isolation: styling.backgroundBlur !== 0 ? "isolate" : "auto",
fontWeight: styling.bold ? "bold" : "normal",
...textEffectStyles,
}}

View file

@ -103,6 +103,7 @@ function VideoElement() {
<video
id="video-element"
className="absolute inset-0 w-full h-screen bg-black"
style={{ isolation: "isolate" }}
autoPlay
playsInline
ref={videoEl}