Playing an .AVI File with the MCITEST Example (98769)



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 3.0
  • Microsoft Visual Basic Professional Edition for Windows 3.0

This article was previously published under Q98769

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.

Modification Type:MajorLast Reviewed:10/30/2003
Keywords:KB98769