From 36aeae2eae0b59d17f450c4b8993d7465ca5570d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Tue, 11 Jun 2019 18:08:28 +0200 Subject: [PATCH] Use formatTime for initial currentTime and duration values --- resources/media-controls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/media-controls.js b/resources/media-controls.js index a68d6954aa1..29860099606 100644 --- a/resources/media-controls.js +++ b/resources/media-controls.js @@ -234,8 +234,8 @@ } // Current time and duration. - let currentTime = "0:00"; - let duration = "0:00"; + let currentTime = formatTime(0); + let duration = formatTime(0); if (!isNaN(this.media.currentTime) && !isNaN(this.media.duration)) { currentTime = formatTime(Math.round(this.media.currentTime * 1000)); duration = formatTime(Math.round(this.media.duration * 1000));