diff --git a/Base/res/html/misc/video-webm.html b/Base/res/html/misc/video-webm.html
index c9706e304d..c61604f403 100644
--- a/Base/res/html/misc/video-webm.html
+++ b/Base/res/html/misc/video-webm.html
@@ -55,9 +55,13 @@
+
+ Current Time |
+ 0.00 seconds |
+
Duration |
- 0 seconds |
+ 0.00 seconds |
Play State |
@@ -79,8 +83,12 @@
document.getElementById('selected').textContent = event.track.selected;
};
+ video.addEventListener('timeupdate', () => {
+ document.getElementById('time').textContent = `${video.currentTime.toFixed(2)} seconds`;
+ });
+
video.addEventListener('durationchange', () => {
- document.getElementById('duration').textContent = `${video.duration} seconds`;
+ document.getElementById('duration').textContent = `${video.duration.toFixed(2)} seconds`;
});
video.addEventListener('loadedmetadata', () => {