Microsoft KB Archive/124185

{|
 * width="100%"|

How to Perform Auto Repeat as Media Player Does

 * }

Q124185

-

The information in this article applies to:


 * Microsoft Video for Windows Development Kit, version 1.1
 * Microsoft Platform Software Development Kit (SDK), on platform(s):
 * Microsoft Windows versions 3.1, 3.11
 * Microsoft Windows NT Server versions 3.1, 3.5, 3.51, 4.0
 * Microsoft Windows NT Workstation versions 3.1, 3.5, 3.51, 4.0
 * Microsoft Windows 2000 Professional
 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-

The Media Player (MPLAYER.EXE) included with Microsoft Windows and Microsoft Windows NT (MPLAY32.EXE) provides an auto-repeat option that automatically repeats the playback of a multimedia file. You can incorporate this functionality into your application on Digital Video devices by using an extension to the standard Media Control Interface (MCI) commands as follows:


 * When calling the mciSendString function, add the word "repeat" to the play command, as in this example:
 * When calling the mciSendCommand function, set the play flag MCI_DGV_PLAY_REPEAT. For example, to add auto repeat functionality to the MOVPLAY sample included with the Video for Windows DK, add the following line to the playMovie function in MOVPLAY1.C, right before the mciSendCommand function call:

"Digital Video Command Set for the Media Control Interface" documents the Digital Video MCI extensions. It is available on the Microsoft Developer Network (MSDN) CD. Look for it in the Specifications section of the CD contents, under "Digital Video MCI Specification." You can also search the CD using the word MCI_DGV_PLAY_REPEAT for more information about that flag.

Additional query words: 3.10 3.50 4.00 95 Video for Windows MCIAVI MCI_PLAY AVI loop continuous play

Keywords :

Issue type :

Technology : kbWin32SDKSearch kbAudDeveloper kbVideoSearch kbSDKSearch