Spaces:
Running
Running
Update templates/video_app.html
Browse files- templates/video_app.html +1 -1
templates/video_app.html
CHANGED
|
@@ -600,7 +600,7 @@ function loadResults() {
|
|
| 600 |
function togglePlayPause() {
|
| 601 |
isPlaying = !isPlaying;
|
| 602 |
const playPauseBtn = document.querySelector('#video-container button');
|
| 603 |
-
|
| 604 |
if (isPlaying) {
|
| 605 |
videoElement.play();
|
| 606 |
} else {
|
|
|
|
| 600 |
function togglePlayPause() {
|
| 601 |
isPlaying = !isPlaying;
|
| 602 |
const playPauseBtn = document.querySelector('#video-container button');
|
| 603 |
+
playPauseBtn.textContent = isPlaying ? 'Pause' : 'Play';
|
| 604 |
if (isPlaying) {
|
| 605 |
videoElement.play();
|
| 606 |
} else {
|