This article was previously published under Q124185
The Media Player (MPLAYER.EXE) included with Microsoft Windows andMicrosoft Windows NT (MPLAY32.EXE) provides an auto-repeat option thatautomatically repeats the playback of a multimedia file. You canincorporate this functionality into your application on Digital Videodevices 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:
dwFlags |= MCI_DGV_PLAY_REPEAT;
"Digital Video Command Set for the Media Control Interface" documents theDigital Video MCI extensions. It is available on the Microsoft DeveloperNetwork (MSDN) CD. Look for it in the Specifications section of the CDcontents, under "Digital Video MCI Specification." You can also search theCD using the word MCI_DGV_PLAY_REPEAT for more information about that flag.
3.10 3.50 4.00 95 Video for Windows MCIAVI MCI_PLAY AVI loop continuous play