Hello All, i have a quick question, i'm using the MediaPlayerStream library to play mp3 files from a URL, so far everything works as expected, the problem i'm having is that i'm trying to figure out how to display the track duration time in minutes and seconds (mm:ss) as well as the elapsed time in minutes and seconds (mm:ss/mm:ss).
the information i get from the URL gives me the duration time in seconds, for example a specific track gives the duration time of 209 seconds,
I know for a fact that the value returned in the Json response is the correct value as i've played the mp3 file in my laptop's windows media player and i can see that the total duration of the song is exactly 3 minutes and 28 seconds (03:28).
What is that value returned from the MediaStreamPlayer.getDuration method.
Does anyone have any suggestions on how i might be able to achieve what i'm trying to do here?
Thanks,
Walter
the information i get from the URL gives me the duration time in seconds, for example a specific track gives the duration time of 209 seconds,
however when i use the MediaPlayerStream.getDuration method i get the following:Response from server: {"title":"Banda el recodo-Y Llegaste tu","length":"209","link":"http:\/\/youtubeinmp3.com\/download\/get\/?i=ex3SLjhOvot0Qa2cU3A3wJ5kXa%2B8ckfINrmZXMXJSgKeOtLM5TLEYdh9QO56IGWp%2FhdTmt4j7%2FcjHvxGIzE1vA%3D%3D"}
mp3 duration: 320933392
I know for a fact that the value returned in the Json response is the correct value as i've played the mp3 file in my laptop's windows media player and i can see that the total duration of the song is exactly 3 minutes and 28 seconds (03:28).
What is that value returned from the MediaStreamPlayer.getDuration method.
Does anyone have any suggestions on how i might be able to achieve what i'm trying to do here?
Thanks,
Walter