This commit is contained in:
legop3
2026-02-21 17:22:38 -05:00
parent 657189e979
commit 32ec8e1aa3
3 changed files with 10 additions and 33 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-Bqpg29IV.js"></script> <script type="module" crossorigin src="/assets/index-CtQnuYlS.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Bz1ixYh7.css"> <link rel="stylesheet" crossorigin href="/assets/index-Bz1ixYh7.css">
</head> </head>
<body> <body>
-23
View File
@@ -318,27 +318,6 @@ export default function VideoTile({
logAudio, logAudio,
]); ]);
useEffect(() => {
if (!audioSessionInfo?.url || !autoLevelEnabled || autoLevelMode !== 'compressor') {
return undefined;
}
const unlock = () => {
if (audioContextRef.current?.state === 'running') return;
logAudio('unlock/gesture');
forceUnlockCompressorAudio();
};
window.addEventListener('pointerdown', unlock, { passive: true, capture: true });
window.addEventListener('touchstart', unlock, { passive: true, capture: true });
window.addEventListener('click', unlock, { passive: true, capture: true });
window.addEventListener('keydown', unlock);
return () => {
window.removeEventListener('pointerdown', unlock);
window.removeEventListener('touchstart', unlock);
window.removeEventListener('click', unlock);
window.removeEventListener('keydown', unlock);
};
}, [audioSessionInfo?.url, autoLevelEnabled, autoLevelMode, forceUnlockCompressorAudio, logAudio]);
useEffect(() => { useEffect(() => {
if (!audioSessionInfo?.url || !autoLevelEnabled || autoLevelMode !== 'compressor') { if (!audioSessionInfo?.url || !autoLevelEnabled || autoLevelMode !== 'compressor') {
return undefined; return undefined;
@@ -580,7 +559,6 @@ export default function VideoTile({
}); });
if (nextStatus === 'playing') { if (nextStatus === 'playing') {
resumeAudioContext(); resumeAudioContext();
forceUnlockCompressorAudio();
const target = audioRef.current; const target = audioRef.current;
if (target) { if (target) {
target.muted = false; target.muted = false;
@@ -617,7 +595,6 @@ export default function VideoTile({
audioRestartToken, audioRestartToken,
scheduleAudioRestart, scheduleAudioRestart,
resumeAudioContext, resumeAudioContext,
forceUnlockCompressorAudio,
logAudio, logAudio,
]); ]);