FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Properties

Playing

Description

True if the movie is currently playing, false if it is paused.

Messages

FPCM_GET_PLAYING
FPCM_PUT_PLAYING

Structures

struct SFPCGetPlaying
{    
     // [out]
     VARIANT_BOOL Playing;

     // [out]
     HRESULT hr;
};

struct SFPCPutPlaying
{    
     // [out]
     VARIANT_BOOL Playing;

     // [out]
     HRESULT hr;
};

Example

void GetPlaying(HWND hwndFlashPlayerControl)
{
     SFPCGetPlaying info;

     ::SendMessage(hwndFlashPlayerControl, FPCM_GET_PLAYING, 0, (LPARAM)&info);
    
     if FAILED(info.hr)
          // Error
     {
          // ...
     }
     else
          // OK
     {
          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)
          // Error
     {
          // ...
     }
     else
          // OK
     {
          // ...
     }
}

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.