So I made my app to choose .mp3 files using Activity Starter and it plays the audio file with no problem but, it doesn't recognize the audio time. For example, the audio last 16 seconds so I want a label to say the seconds it last (which is 16 seconds).
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
Those are the blocks that I'm using. What I'm trying to do is to play the normal player and run the extension at the same time just to have the seconds.
Can you teach me how to do that?
I have the extension downloaded but It was I little bit confusing for me.
Thank you.
Sorry for not explaining well. What I was trying to say is that I had replaced the blocks from the Player 1 to the taifun player, then changed it again to the normal player blocks.
sure...
just use that block together with your uri to get a filename
you might want to try something and if you got stuck, then post a screenshot of your relevant blocks
How can I set the status as Playing?
It still says that the Player must be in playing status.
I thought that by adding the TaifunPlayer.Start would work but it didn't.
Ok, it is now working.
But it seems that the time displayed are milliseconds instead of seconds and I'm pretty sure I got to divide or something to get the seconds.
So, how can I convert the milliseconds into minutes?
I tried dividing the Duration by 60000 I don't know if it did worked or not it gives numbers that aren't similar to minutes.
It would really help if you provided a screenshot of your relevant blocks including Do it result of your Duration, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
Let's say you have 1000ms this is 1s. If you divide it by 60000, you get the result 0.0166666667. It is 0.016 minutes, which is correct. If you want human readable minutes, use this block.