aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/game/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/game/page.tsx')
-rw-r--r--src/app/game/page.tsx18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/app/game/page.tsx b/src/app/game/page.tsx
index dc0d93d..10b3d5d 100644
--- a/src/app/game/page.tsx
+++ b/src/app/game/page.tsx
@@ -507,6 +507,15 @@ function GameInner() {
{!isVideo && (
<audio ref={audioRef} src={audioUrl || undefined} preload="auto" />
)}
+ {isVideo && (
+ <BackgroundVideo
+ ref={videoRef}
+ src={audioUrl || undefined}
+ preload="auto"
+ playsInline
+ style={{ opacity: backgroundOpacity / 100 }}
+ />
+ )}
<GameNavbar style={{ justifyContent: "space-between" }}>
<div style={{ display: "flex", alignItems: "center", gap: 16 }}>
<Link
@@ -684,15 +693,6 @@ function GameInner() {
</HUD>
<GameArea>
- {isVideo && (
- <BackgroundVideo
- ref={videoRef}
- src={audioUrl || undefined}
- preload="auto"
- playsInline
- style={{ opacity: backgroundOpacity / 100 }}
- />
- )}
{phase === "playing" &&
g.displayedLineIdx < 0 &&
gameLines.length > 0 && (
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage