Hello Everyone!
I am new to Pascal so sorry for any mistakes I make describing the subject. What I'm trying to get is the current position of movie I'm playing to make a loop of a certain part depending on RS232 commands I get. Playback and RS232 works fine, but I have a problem with movie position feedback. What I'm using is this procedure to test if i am recieving anything, and "i" which is declared as a single (global variable) is always zero:
procedure TForm1.MPlayerControl1Playing(ASender: TObject; APosition: single);
begin
i:=MPlayerControl1.Position;
Label1.Caption:=FloatToStr(i);
end;
Except for the time when i send a command from button click which is for example:
MPlayerControl1.Position:=10;
Then I get the position shown in Label1, but only for a split second - after MplayingControl1Playing updates the 'i" variable goes back to zero again.
Any help is greatly appreciated.