Hello,
I'm trying to put a trackbar onto my mediaplayer. The trackbar works fine for just tracking the position but I don't know how to make it change the mediaplayer position when it is dragged. Here's the code I have so far:
Does anyone know how to change the TMediaPlayer position when you drag the trackbar?
I'm trying to put a trackbar onto my mediaplayer. The trackbar works fine for just tracking the position but I don't know how to make it change the mediaplayer position when it is dragged. Here's the code I have so far:
Code:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
TrackBar1.Max:=MediaPlayer1.Length;
TrackBar1.Position := MediaPlayer1.Position;
end;
Does anyone know how to change the TMediaPlayer position when you drag the trackbar?