Fixes the display of minutes in the video player (#5140)

* video timestamp

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Abubakar Abid 2023-08-08 17:31:51 -04:00 committed by GitHub
parent 0dc49b4c51
commit cd1353fa3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/video": patch
"gradio": patch
---
fix:Fixes the display of minutes in the video player

View File

@ -67,7 +67,7 @@
const minutes = Math.floor(seconds / 60);
let _seconds: number | string = Math.floor(seconds % 60);
if (seconds < 10) _seconds = `0${_seconds}`;
if (_seconds < 10) _seconds = `0${_seconds}`;
return `${minutes}:${_seconds}`;
}