Skip to content

Commit

Permalink
Fixes the display of minutes in the video player (#5140)
Browse files Browse the repository at this point in the history
* video timestamp

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
abidlabs and gradio-pr-bot committed Aug 8, 2023
1 parent 0dc49b4 commit cd1353f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/wide-bars-train.md
@@ -0,0 +1,6 @@
---
"@gradio/video": patch
"gradio": patch
---

fix:Fixes the display of minutes in the video player
2 changes: 1 addition & 1 deletion js/video/shared/Player.svelte
Expand Up @@ -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}`;
}
Expand Down

1 comment on commit cd1353f

@vercel
Copy link

@vercel vercel bot commented on cd1353f Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.