mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
ploo
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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>
|
||||||
|
|||||||
@@ -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,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user