Solved

Using AVI files with NT 4

Posted on 1999-01-22
3
160 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

740 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