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

  1. Open the project VB\SAMPLES\MCI\MCITEST.MAK.



  1. 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.


  2. 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"
     


  3. 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.


  4. 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"
     


  5. Save the work, and run the application.


Additional query words: 2.00 3.00 mci control multimedia multi media

Keywords :
Version :
Platform :
Issue type :


Last Reviewed: June 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.