Hi
MediaFoundationNotify is called for each frame, so you can just assign/save the bitmap then:
// frame received
procedure Tfmain.ImageEnView1MediaFoundationNotify(Sender, MediaFoundationObject: TObject; NotifyType: TIEMediaFountationNotifyType);
var
sample: TIEMFReceivedSample;
begin
sample := ImageEnView1.IO.MediaFoundationSourceReader.GetNextSample();
try
if sample.StreamType = mmf_VIDEO_STREAM then
begin
sample.DecodeSample(ImageEnView1.IEBitmap);
--> Do something with ImageEnView1.IEBitmap...
ImageEnView1.Update();
end;
finally
sample.Free();
end;
inc(FPS);
end;
Nigel
Xequte Software
www.xequte.com
nigel@xequte.com