//---------------------------------------------------------------------------

#ifndef FrmCameraPlayerFH
#define FrmCameraPlayerFH
//---------------------------------------------------------------------------
#include "FFBaseComponent.hpp"
#include "FFBasePlay.hpp"
#include "FFPlay.hpp"
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <OleCtrls.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include <Menus.hpp>
//---------------------------------------------------------------------------

class TFrmCameraPlayer : public TForm
{
__published:	// IDE-managed Components
    TTimer *TmrShow;
    TPopupMenu *PopupMenu1;
    TMenuItem *MnuConnect;
    TMenuItem *MnuDisconnect;
    TFFPlayer *FFPlayer1;
    TPanel *PnlCamera;
    TImage *ImgNoData;
    TPanel *PnlName;
    TMenuItem *MnuInfo;
    TMenuItem *N1;
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall FormDestroy(TObject *Sender);
    void __fastcall MnuConnectClick(TObject *Sender);
    void __fastcall MnuDisconnectClick(TObject *Sender);
    void __fastcall PnlCameraDblClick(TObject *Sender);
    void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
    void __fastcall MnuInfoClick(TObject *Sender);
private:	// User declarations

public:		// User declarations

    bool    FFullScreen;
    TRect   FLastBounds;
    TWinControl *FParent;

    bool    FPlay;
    bool    FAutoPlay;
    long    FConHandle;

    String  FId;
    String  FName;
    String  FStreamingType;
    String  FViewAddress;
    String  FFullAddress;

    bool    Installed;
    String  CCAM_ID;
    String  NAME;
    String  STRM_ADDR;
    String  FULL_STRM_ADDR;
    int     VIEW_MODE;

    void __fastcall InitCamera(bool AInstalled, String ACtlrNmbr, String AName, String AStrmAddr, String AFullStrmAddr, int AViewMode);
    void __fastcall LoadEmptyImage();

    void __fastcall AutoPlay();
    void __fastcall Play();
    void __fastcall Stop();

    __fastcall TFrmCameraPlayer(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFrmCameraPlayer *FrmCameraPlayer;
//---------------------------------------------------------------------------
#endif

