Solved

Using AVI files with NT 4

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now