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

#ifndef FRAME_CameraFH
#define FRAME_CameraFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "AcesTechXPlayer2Lib_OCX.h"
#include <OleCtrls.hpp>
#include "FFBaseComponent.hpp"
#include "FFBasePlay.hpp"
#include "FFPlay.hpp"
#include "dxGDIPlusClasses.hpp"
//---------------------------------------------------------------------------
class TFRAMECamera : public TFrame
{
__published:	// IDE-managed Components
    TFFPlayer *FFPlayer;
    TTimer *Timer1;
    TPanel *Panel5;
    TPanel *PnlTitle;
    TPanel *PnlStream;
    TImage *ImgDefault;
    TAcesTechXPlayer2 *AcesTechXPlayer2;
    void __fastcall Timer1Timer(TObject *Sender);
    void __fastcall FFPlayerState(TObject *Sender, TPlayState APlayState);
private:	// User declarations
    String FMngrNmbr;
    String FCtlrId;
    String FCtlrNm;
    String FStreamUrl;
    bool   FPlay;
    long   FConHandle;
public:

    void __fastcall Connect();
    void __fastcall Disconnect();

    bool __fastcall Init(String AMngrNmbr, String ACtlrId, String ACtrlNm, String AStreamUrl);

public:		// User declarations
    __fastcall TFRAMECamera(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFRAMECamera *FRAMECamera;
//---------------------------------------------------------------------------
#endif
