Solved

Using AVI files with NT 4

Posted on 1999-01-22
3
161 Views
Last Modified: 2010-04-06
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?

procedure PlayTheAVI(AVIFile:string);
var
 PC: array[0..255] of char;
begin
 WinExec(StrPCopy(PC, 'MPlayer.exe /play /close '+ AVIFile), sw_Show);
end;

Thanks.
0
Comment
Question by:Monroe406
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 80 total points
ID: 1362914
If there is no such a player you can't do anything about it... If there is a player like that in WinNT then it would be displayed...

you could try this also...

ShellExecute(0, 'MPlayer.exe /play /close '+ AVIFile, nil, nil, SW_NORMAL);

-Viktor
--Ivanov
0
 

Author Comment

by:Monroe406
ID: 1362915
Surely Windows NT 4 must ship with a default component to handle AVI files?  No?
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1362916
I'm not a WinNT person, but it probably should have something with it, or maybe not...

WinNT is created for people who need to work with the Network, and Win95/98 and the such are created for entertainment, so I'm not sure... I've never used WinNT, but there might be a player on the CD, so if someone wants to play a CD, he just installs the program and plays it.. YOu should ask a person who has winNT... The code should work if there is a media player installed, so you go and ask someone who has WinNT, if there is a orignal media player installed when you first install WInNT>..

-Viktor
--Ivanov
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question