Using AVI files with NT 4
Posted on 1999-01-22
I am using Delphi 1. The following procedure works great with Windows 95/98. You simply pass the name of an AVI file, and the procedure will call MPLAYER to view/run the AVI file. However, when this procedure is run on Win NT 4, nothing happens. No error message, and no animation. I suspect that MPLAYER is not a standard component of Win NT, as it is with Win 95/98. If this is true, what then is the default multimedia player for WinNT 4? And how would I modify the procedure so that it would be functional under both Win95/98 and NT 4?
PC: array[0..255] of char;
WinExec(StrPCopy(PC, 'MPlayer.exe /play /close '+ AVIFile), sw_Show);