Playing an .AVI File with the MCITEST Example
ID: Q98769
|
The information in this article applies to:
-
Microsoft Visual Basic Standard and Professional Editions for Windows, version 3.0
SUMMARY
This article shows how to modify the multimedia sample project MCITEST.MAK
to load and play Microsoft Video for Windows files (.AVI files). To apply
the information in this article, you must have Video for Windows drivers
correctly installed and a valid .AVI file available.
MORE INFORMATION- Open the project VB\SAMPLES\MCI\MCITEST.MAK.
- Select MCITEST.FRM in the Project Window. From the View menu, choose
Code. In the Object combo box, select AI_ANIMATION to display the
AI_ANIMATION_Click event handler.
- Modify the common dialog Filter to display .AVI files:
change: OpenDlg.CMDialog1.Filter = "Movie File (*.mmm)|*.mmm"
to: OpenDlg.CMDialog1.Filter = "Movie File (*.avi)|*.avi"
Modify the DeviceType to access the AVI drivers:
change: Animate.MMControl1.DeviceType = "MMMovie"
to: Animate.MMControl1.DeviceType = "AVIVideo"
- Select ANIMATE.FRM in the Project Window. From the View menu, choose
Code. In the Object combo box, select AI_OPEN to display the
AI_OPEN_Click event handler.
- Modify the DeviceType to access the AVI drivers. Scroll down by pages
to find the location for this change.
change: Animate.MMControl1.DeviceType = "MMMovie"
to: Animate.MMControl1.DeviceType = "AVIVideo"
- Save the work, and run the application.
Additional query words:
2.00 3.00 mci control multimedia multi media
Keywords :
Version :
Platform :
Issue type :
|