111393
(kampa)
January 27, 2021, 6:09pm
1
Hi
This blocks work well on mp3 less than 5 minutes, but when playing an mp3 of more than two hours, it does not work well, what is the problem?
1 Like
Taifun
January 27, 2021, 11:26pm
2
which component are you using to play the mp3?
for both the Player and the Exo Player component there is the current position property as well as the duration property available…
or are you calculating something different?
Current Position¶
Number Read - Blocks
Returns the current position of the source file that is playing.
Player ▾.Current Position ▾
Duration
Number Read - Blocks
Returns the duration of the source file.
EDIT: I just have seen, you are using the Player component… but I do not understand your calculations…
Taifun
2 Likes
What is this about?
What do you want to achieve, what is the goal?
Before you ask a question / open a new topic please take care of the following points: The forum was previously searched for similar topics / issues. Give a precise (detailed) description of the issue / bug, the goal. Show the (relevant)...
Reading time: 1 mins 🕑
Likes: 74 ❤
111393
(kampa)
January 28, 2021, 8:57am
5
I want to do thing like this
Taifun
January 28, 2021, 5:29pm
6
use the current position and duration properties…
you might want to follow this guide and adjust it to your needs
Designer Part:
(I have tried to make this guide simple so that new members of Kodular can also understand each block, after this guide you will able to make your own music player with your own User interface)
The designer part contains 3 important layouts.
Title Layout - It is a horizontal arrangement contains a back icon.
Main Layout - It is a vertical arrangement that has all functions required in the music player.
List Layout - It is a vertical arrangement that has a list view.There will …
see especially
4) Implementation of Current Time And Total Duration Of Music.
Taifun
1 Like