fix(frontend): unbreak round video ring and playback in firefox

This commit is contained in:
hh
2026-08-06 13:52:27 +02:00
parent ee63f8b783
commit 1e143c7573
2 changed files with 6 additions and 10 deletions
@@ -155,7 +155,7 @@
src={result.url}
controls
playsinline
preload="metadata"
preload="auto"
use:poster
></video>
{:else if result?.state === "ready" && isAudio}
@@ -53,13 +53,13 @@
onended={() => element && releasePlayback(element)}
onplay={() => element && claimPlayback(element)}
playsinline
preload="metadata"
preload="auto"
src={url}
use:poster
></video>
<svg class="ring" viewBox="0 0 200 200" aria-hidden="true">
<svg class="RoundVideoRing" viewBox="0 0 200 200" aria-hidden="true">
<circle
class="ring-progress"
class="RoundVideoProgress"
cx="100"
cy="100"
r={RADIUS}
@@ -143,10 +143,6 @@
background: transparent;
-webkit-tap-highlight-color: transparent;
&:focus {
outline: none;
}
}
video {
@@ -161,7 +157,7 @@
clip-path: circle(50%);
}
.ring {
.RoundVideoRing {
pointer-events: none;
position: absolute;
inset: 0;
@@ -171,7 +167,7 @@
height: 100%;
}
.ring-progress {
.RoundVideoProgress {
fill: transparent;
stroke: var(--color-white);
stroke-width: 4;