FrmCameraPlayerF.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCameraPlayerFH
  3. #define FrmCameraPlayerFH
  4. //---------------------------------------------------------------------------
  5. #include "FFBaseComponent.hpp"
  6. #include "FFBasePlay.hpp"
  7. #include "FFPlay.hpp"
  8. #include <Classes.hpp>
  9. #include <Controls.hpp>
  10. #include <StdCtrls.hpp>
  11. #include <Forms.hpp>
  12. #include <ExtCtrls.hpp>
  13. #include <OleCtrls.hpp>
  14. #include "cxContainer.hpp"
  15. #include "cxControls.hpp"
  16. #include "cxEdit.hpp"
  17. #include "cxGraphics.hpp"
  18. #include "cxLabel.hpp"
  19. #include "cxLookAndFeelPainters.hpp"
  20. #include "cxLookAndFeels.hpp"
  21. #include "dxSkinBlack.hpp"
  22. #include "dxSkinBlue.hpp"
  23. #include "dxSkinsCore.hpp"
  24. #include <Menus.hpp>
  25. #include "AcesTechXPlayer2Lib_OCX.h"
  26. //---------------------------------------------------------------------------
  27. class TFrmCameraPlayer : public TForm
  28. {
  29. __published: // IDE-managed Components
  30. TTimer *TmrShow;
  31. TPopupMenu *PopupMenu1;
  32. TMenuItem *MnuConnect;
  33. TMenuItem *MnuDisconnect;
  34. TFFPlayer *FFPlayer1;
  35. TPanel *PnlCamera;
  36. TImage *ImgNoData;
  37. TPanel *PnlName;
  38. TMenuItem *MnuInfo;
  39. TMenuItem *N1;
  40. TAcesTechXPlayer2 *AcesTechXPlayer21;
  41. void __fastcall TmrShowTimer(TObject *Sender);
  42. void __fastcall FormShow(TObject *Sender);
  43. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  44. void __fastcall FormDestroy(TObject *Sender);
  45. void __fastcall MnuConnectClick(TObject *Sender);
  46. void __fastcall MnuDisconnectClick(TObject *Sender);
  47. void __fastcall PnlCameraDblClick(TObject *Sender);
  48. void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
  49. void __fastcall MnuInfoClick(TObject *Sender);
  50. private: // User declarations
  51. public: // User declarations
  52. bool FFullScreen;
  53. TRect FLastBounds;
  54. TWinControl *FParent;
  55. bool FPlay;
  56. bool FAutoPlay;
  57. long FConHandle;
  58. String FId;
  59. String FName;
  60. String FStreamingType;
  61. String FViewAddress;
  62. String FFullAddress;
  63. bool Installed;
  64. String CCAM_ID;
  65. String NAME;
  66. String STRM_ADDR;
  67. String FULL_STRM_ADDR;
  68. int VIEW_MODE;
  69. void __fastcall InitCamera(bool AInstalled, String ACtlrNmbr, String AName, String AStrmAddr, String AFullStrmAddr, int AViewMode);
  70. void __fastcall LoadEmptyImage();
  71. void __fastcall AutoPlay();
  72. void __fastcall Play();
  73. void __fastcall Stop();
  74. __fastcall TFrmCameraPlayer(TComponent* Owner);
  75. };
  76. //---------------------------------------------------------------------------
  77. extern PACKAGE TFrmCameraPlayer *FrmCameraPlayer;
  78. //---------------------------------------------------------------------------
  79. #endif