Search code examples
firemonkeyandroid-music-playeraudiotracktrackbardelphi-10.3-rio

Why tmediaplayer.CurrentTime not working for Android?


I want to make control audio with tackBar I use this code When audio is playing, my code on timer is

If trackbar1.max<>mediaplayer1.duration then 
  trackbar1.max := mediaplayer1.duration;

If trackbar1.value<>mediaplayer1.currentTime then 
  trackbar1.value :=mediaplayer1.currentTime

This code works perfectly for windows, but on Android no (trackbar keep changing up down up down)


Solution

    1. It's a bug (RSP-19678).

    2. You may get fix from this repository.