2

If there any solution how to fix mediaplayer. Currenttime on Android (Rad studio 10.3.2) ? Values not correct (sometimes negative values), on windows work fine

Armin Taghavizad
  • 1,625
  • 7
  • 35
  • 57

1 Answers1

1

Never mind, I modified the following code in FMX.Media.Android.pas to fix it. It seems Embarcadero hasn't bothered fixing it for several versions.

Result := Round(TMediaTime(FPlayer.getCurrentPosition) * MediaTimeScale / MSecsPerSec);

Ross
  • 157
  • 9