refactor: enhance session management and room joining logic in WebSocket handling
All checks were successful
Build and Push Docker Image / docker (push) Successful in 9s
All checks were successful
Build and Push Docker Image / docker (push) Successful in 9s
This commit is contained in:
@@ -45,3 +45,13 @@ export function applySync(startAt, serverNow) {
|
||||
if (Math.abs($audio.playbackRate - 1) > 0.001) { $audio.playbackRate = 1.0; }
|
||||
}
|
||||
}
|
||||
|
||||
export function stopAudioPlayback() {
|
||||
try { $audio.pause(); } catch {}
|
||||
try { $audio.currentTime = 0; } catch {}
|
||||
try { $audio.src = ''; } catch {}
|
||||
try { $audio.playbackRate = 1.0; } catch {}
|
||||
try { if ($recordDisc) $recordDisc.classList.remove('spin-record'); } catch {}
|
||||
try { if ($progressFill) $progressFill.style.width = '0%'; } catch {}
|
||||
try { if ($bufferBadge) $bufferBadge.classList.add('hidden'); } catch {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user