Save to tinydb the minute or second the audio player

how can I save to tinydb the minute or second the audio player stopped, if possible. And then, how to make that when initializing the screen, the player starts in that minute or second that was saved in the tinybd?

store the current position, see the documentation Player - Kodular Docs and later use the SeekTo method to restart from there

Taifun

How to use the SeekTo method to restart from there? What is this exactly? Thanks.

what about taking a quick look into the documentation?
https://docs.kodular.io/components/media/player/#seek-to

Seek To¶

Set a position where the source file should start playing.

also don’t hesitate to try something…
use the previously stored current position together with the SeekTo method to start your audio file at that position

Taifun

1 Like

I have this error.
The operation SeekTo cannot accept the arguments: , [file:///mnt/sdcard/Makeroid/assets/.htm]
Note: You will not see another error reported for 5 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.
remember: the SeekTo method expects a position in milliseconds…

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.

Taifun