This commit is contained in:
legop3
2026-02-21 13:40:02 -05:00
parent cc92174d79
commit 657189e979
3 changed files with 4 additions and 3 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -11,7 +11,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" /> <meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
<title>Multi Roomba Rover</title> <title>Multi Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-B-zhHWLf.js"></script> <script type="module" crossorigin src="/assets/index-Bqpg29IV.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Bz1ixYh7.css"> <link rel="stylesheet" crossorigin href="/assets/index-Bz1ixYh7.css">
</head> </head>
<body> <body>
+2 -1
View File
@@ -323,6 +323,7 @@ export default function VideoTile({
return undefined; return undefined;
} }
const unlock = () => { const unlock = () => {
if (audioContextRef.current?.state === 'running') return;
logAudio('unlock/gesture'); logAudio('unlock/gesture');
forceUnlockCompressorAudio(); forceUnlockCompressorAudio();
}; };
@@ -586,7 +587,7 @@ export default function VideoTile({
target.play().then(() => logAudio('audio/play-ok')).catch((err) => logAudio('audio/play-fail', { error: err?.message })); target.play().then(() => logAudio('audio/play-ok')).catch((err) => logAudio('audio/play-fail', { error: err?.message }));
} }
} }
if (['error', 'failed', 'disconnected', 'closed'].includes(nextStatus)) { if (['error', 'failed'].includes(nextStatus)) {
scheduleAudioRestart(); scheduleAudioRestart();
} }
}; };