()
| 77 | // updateTimeElapsed indicates how far through the video |
| 78 | // the current playback is by updating the timeElapsed element |
| 79 | function updateTimeElapsed() { |
| 80 | const time = formatTime(Math.round(video.currentTime)); |
| 81 | timeElapsed.innerText = `${time.minutes}:${time.seconds}`; |
| 82 | timeElapsed.setAttribute('datetime', `${time.minutes}m ${time.seconds}s`); |
| 83 | } |
| 84 | |
| 85 | // updateProgress indicates how far through the video |
| 86 | // the current playback is by updating the progress bar |
nothing calls this directly
no test coverage detected