Delphi FMX – How set FMX Media player time by millisecond?

  

FMX Media player set currenttime not worked for me. My code:

mpath:=TPath.GetDocumentsPath+PathDelim;
MediaPlayer1.FileName := mpath + ‘1.m4a’;
MediaPlayer1.Play;
Application.ProcessMessages;
MediaPlayer1.CurrentTime:=MediaPlayer1.Duration div 2;

Comments are closed.