mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Use formatTime for initial currentTime and duration values
This commit is contained in:
parent
04a40138d0
commit
36aeae2eae
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue