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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Video in a form

Status
Not open for further replies.

SitesMasstec

Programmer
Sep 26, 2010
526
Brasil
Dear colleagues:

I created a form to display text about some food recipes.

For example, if the user chooses recipe n.17, the form will show a text (inside a text box) about "how to prepare" the food recipe n.17.

Now I want to display a video beside the text, that will play R17.AVI; if the user chooses recipe n.200 the video will play R200.AVI, and so on.

The variable Which_Video stores the name of the video (Which_Video can be R1.AVI, R2.AVI, ... R999.AVI).

Thank you,

SitesMasstec
 
Check "Video Player" class in event of the Multimedia foundation classes or check:
"Play Multimedia Files Using MCI Commands Sample" in Help.


Borislav Borissov
VFP9 SP2, SQL Server
 
DO HOME(2)+"solution\main.prg"

Select Windows API -> Play multimedia files using MCI commands
 
Dear colleagues:

I just want to put a video class in my form (and the video will have the proper Property defined as '=Which_Video' or '&Which_Video' (variable 'Which_Video' may be R1.AVI, R2.AVI, ... R999.AVI, depending of what the user choose from a field, or from a List box('Which recipe do you want to watch?' 1...999).

Which class can I use to do this?

Thank you.
 
Did you press the "See code" button? You can actually copy most of the form objects into your own form, and it will work.
 
Hello tbleken!

Yes, I copied, but I want just play a pre-defined AVI movie.

I think I can just put a class in the form, without bells & whistles, to play a movie.

Thank you,

Sites Masstec
 
Using API is the far easiest solution, since it doesn't require any activeX, DLL or anything, it all comes with Windows. If you want a class, you can create a class. Remember, a class is just a way of storing "things", not necessarily anything magic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top