Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
seeking with TVLAVIPlayer.CurrentFrame
09-04-2012, 04:16 AM
Post: #1
seeking with TVLAVIPlayer.CurrentFrame
hello,

I try BasicVideo on Delphi 7, it seems a very good vcl but seeking with TVLAVIPlayer.CurrentFrame works only half the time

I tried this simple code with clock.avi (12 frames) provided on xp :

if not TVLAVIPlayer.Paused then TVLAVIPlayer.Pause;
c := TVLAVIPlayer.CurrentFrame;
for i := c+1 to c+6 do
TVLAVIPlayer.CurrentFrame := i;

the frame is shown once on two (i=1, 3, 5 ...)

and the VLAVIPlayer.OnProgress too, fired once on two

is there a way to solve it ?

thanks in advance
Find all posts by this user
Quote this message in a reply
09-23-2012, 08:47 PM
Post: #2
RE: seeking with TVLAVIPlayer.CurrentFrame
I found an explication with pump, trying that :

VLAVIPlayer1.Pause;
VLAVIPlayer1.ClockSource := csExternal;
VLAVIPlayer1.CurrentPos := n;
VLAVIPlayer1.Pump;
Label1.Caption := IntToStr(VLAVIPlayer1.CurrentFrame); // => n+1

so after Pump VLAVIPlayer1 go on n+1 !
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)