hmm...well, lets start with AVI's. Here is a little snip of code from an application I have out. It works fine for me displaying multimedia files. Of course there are certain files that I cannot get to play in MS-MediaPlayer iself, and they won't play here either.
procedure TfrmQuestionEditor.sbtnOpenResourceClick(Sender: TObject);
begin
with OpenDialog1 do begin
FileName := '';
Filter := 'All (*.mpg, *.mpeg, *.avi, *.mp3, *.wav)|*.mpg;*.mpeg;*.avi;*.mp3;*.wav|' +
'Video (*.mpg, *.mpeg, *.avi)|*.mpg;*.mpeg;*.avi|' +
'Sound (*.mp3, *.wav)|*.mp3;*.wav';
if execute then begin
edresourceName.Text := Filename;
if cbxResourcePreview.Checked then begin
MediaPlayer1.FileName := Filename;
MediaPlayer1.Open;
MediaPlayer1.Display := pnlDisplay;
MediaPlayer1.DisplayRect := pnlDisplay.ClientRect;
MediaPlayer1.Play;
end; // if checked
end; // if execute;
end; // with
end;
I will go into GIF's in the next message.
Andrew