Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MPEG Playback

Status
Not open for further replies.

gp4

Technical User
Sep 27, 2002
30
AU
Does anyone know how to play MPEG files using Delphi 7.
I've tried using the TMediaPlayer object with the Animate object but it will just show a black screen in the display area.
Any ideas?
Thanks
 
are you sure what you aretrying to view is an MPG and not for example an xvid or divx formatted?

[bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
i don't beleive the mpg is a divx or xvid encoded.

I tested my program using a simple .avi and it works with that.

There isn't really much to my code yet as I am setting the properties of the objects on my form at design time corresponding to filename etc...
 
i retested with a variety of different types of files and find that some mpg files do work.
So its probably the format of the mpg file.
 
What is the problem? Is it that the player screen is black when nothing is playing? Why not set visible to false. Then put Show (visible:= true) in the OnPlay event. Show a bitmap where the video will go. Start play with code.

HTH

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top