Update index.html
Browse files- index.html +14 -1
index.html
CHANGED
@@ -1454,7 +1454,20 @@ document.getElementById('sw-register-btn').addEventListener('click', registerSer
|
|
1454 |
playbackSpeedValue.textContent = speed.toFixed(2) + 'x';
|
1455 |
speedSlider.value = speed;
|
1456 |
}
|
1457 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1458 |
// γγ¬γ€γ€γΌγ³γ³γγγΌγ«γζεΉε
|
1459 |
function enablePlayerControls() {
|
1460 |
disabledOverlay.style.display = 'none';
|
|
|
1454 |
playbackSpeedValue.textContent = speed.toFixed(2) + 'x';
|
1455 |
speedSlider.value = speed;
|
1456 |
}
|
1457 |
+
document.addEventListener('visibilitychange', function() {
|
1458 |
+
if (document.hidden) {
|
1459 |
+
// γΏγγιγ’γ―γγ£γγ«γͺγ£γγεζγγ§γγ―γεζ’
|
1460 |
+
stopSyncCheck();
|
1461 |
+
if (isPlaying) {
|
1462 |
+
pauseMedia();
|
1463 |
+
}
|
1464 |
+
} else {
|
1465 |
+
// γΏγγγ’γ―γγ£γγ«γͺγ£γγεζγγ§γγ―γει
|
1466 |
+
if (isPlaying) {
|
1467 |
+
startSyncCheck();
|
1468 |
+
}
|
1469 |
+
}
|
1470 |
+
});
|
1471 |
// γγ¬γ€γ€γΌγ³γ³γγγΌγ«γζεΉε
|
1472 |
function enablePlayerControls() {
|
1473 |
disabledOverlay.style.display = 'none';
|