|
Changing the Playback State
The following examples show how to use the pause, resume, stop, and seek commands.
// Assume the file was opened with the alias 'movie'.
// Pause play.
mciSendString("pause movie", NULL, 0, NULL);
// Resume play.
mciSendString("resume movie", NULL, 0, NULL);
// Stop play.
mciSendString("stop movie", NULL, 0, NULL);
// Seek to the beginning.
mciSendString("seek movie to start", NULL, 0, NULL);
The following example shows how to change the seek mode:
// Set seek mode with the string interface.
// Assume the file was opened with the alias 'movie'.
- oid SetSeekMode(BOOL fExact)
{
if (fExact)
mciSendString("set movie seek exactly on", NULL, 0, NULL);
else
mciSendString("set movie seek exactly off", NULL, 0, NULL);
}
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|