FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Properties
Description
True if the movie is currently playing, false if it is paused.
Messages
FPCM_GET_PLAYING
FPCM_PUT_PLAYING |
Structures
struct SFPCGetPlaying
{
VARIANT_BOOL Playing;
HRESULT hr;
};
struct SFPCPutPlaying
{
VARIANT_BOOL Playing;
HRESULT hr;
};
|
Example
void GetPlaying(HWND hwndFlashPlayerControl)
{
SFPCGetPlaying info;
::SendMessage(hwndFlashPlayerControl, FPCM_GET_PLAYING, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
TCHAR lpszBuffer[1024];
wsprintf(lpszBuffer, _T("%d"), info.Playing);
::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
}
}
void PutPlaying(HWND hwndFlashPlayerControl, VARIANT_BOOL Playing)
{
SFPCPutPlaying info;
info.Playing = Playing;
::SendMessage(hwndFlashPlayerControl, FPCM_PUT_PLAYING, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
}
}
|
Flash versions
5: supported
6: supported
7: supported
Copyright © 2004 Softanics. All rights reserved.
Delphi is a trademark of Borland Software Corporation.
Macromedia and Shockwave Flash are trademarks of Macromedia, Inc.
|