Get duration in 'mm':'ss' format #1569
Unanswered
marcobaradel
asked this question in
Q&A
Replies: 1 comment
-
Hi, If i didn't misunderstand you, This function can solve the problem.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i have a question (probably is a stupid question). I'm using this lib to do an audio player on my app.
I want to realize a box with play and stop button, a progress bar and a realtime counter minutes value on the total duration (ex: 1:24/3:02).
For this last label i'm trying to use the .duration() method, but it return a string with duration in seconds. Exist a method that return it in 'mm':'ss' format or there is a trick to convert it?
I use the variable on the xxxxx.page.html with '{{xxxx}}' format.
I'm waiting for reply,
Thanks for the future help.
Beta Was this translation helpful? Give feedback.
All reactions