T O P I C R E V I E W |
graph_man |
Posted - Apr 28 2020 : 18:33:19 At the end of playing the video file, I get "IEEC_COMPLETE" event. But this event does not occur at the end of the animated GIF. How to fix it and stop GIF animation at the end? |
5 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - May 01 2020 : 22:46:27 Hi
Please email me for an update that provides much better performance when playing animated GIFs.
Nigel Xequte Software www.imageen.com
|
graph_man |
Posted - May 01 2020 : 14:09:08 I tried to use the method you proposed, but it loads a animated GIF file several times slower. |
xequte |
Posted - Apr 30 2020 : 21:42:07 Hi
This appears to be a feature of DirectShow. It continually loops animated GIF files and so does not raise an IEEC_COMPLETE event.
You don't need to use DirectShow to play animated gif files, you can just use:
ImageEnView1.IO.LoadFromFile( 'anim.gif' ); ImageEnView1.Playing := True;
https://www.imageen.com/help/TImageEnView.Playing.html
Nigel Xequte Software www.imageen.com |
graph_man |
Posted - Apr 29 2020 : 07:07:06 ImageEnView1->IO->DShowParams->FileInput = OpenImageEnDialog1->FileName; ImageEnView1->IO->DShowParams->EnableSampleGrabber = true; ImageEnView1->IO->DShowParams->RenderAudio = true; ImageEnView1->IO->DShowParams->Connect(); ImageEnView1->IO->DShowParams->Run();
void __fastcall TForm1::ImageEnView1DShowEvent(TObject *Sender) { int event; if (ImageEnView1->IO->DShowParams->Connected) { while (ImageEnView1->IO->DShowParams->GetEventCode(event)) { if (event == IEEC_COMPLETE) Stop1Click(this); //call STOP button } } }
|
xequte |
Posted - Apr 29 2020 : 01:44:41 Hi
What code are you using?
Nigel Xequte Software www.imageen.com
|