MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / updateTimeElapsed

Function updateTimeElapsed

assets/js/video.js:79–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77// updateTimeElapsed indicates how far through the video
78// the current playback is by updating the timeElapsed element
79function 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

Callers

nothing calls this directly

Calls 1

formatTimeFunction · 0.85

Tested by

no test coverage detected