FrmStreamPlayerF.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmStreamPlayerFH
  3. #define FrmStreamPlayerFH
  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 <ADODB.hpp>
  15. #include <DB.hpp>
  16. #include <Menus.hpp>
  17. #include "cxContainer.hpp"
  18. #include "cxControls.hpp"
  19. #include "cxEdit.hpp"
  20. #include "cxGraphics.hpp"
  21. #include "cxLabel.hpp"
  22. #include "cxLookAndFeelPainters.hpp"
  23. #include "cxLookAndFeels.hpp"
  24. #include "dxSkinBlack.hpp"
  25. #include "dxSkinBlue.hpp"
  26. #include "dxSkinsCore.hpp"
  27. //---------------------------------------------------------------------------
  28. #include "CDSObjectF.h"
  29. #include "dxSkinMcSkin.hpp"
  30. #include "AcesTechXPlayer2Lib_OCX.h"
  31. //---------------------------------------------------------------------------
  32. typedef struct tagPlayerinfo
  33. {
  34. bool Installed;
  35. String ID;
  36. String NAME;
  37. String STRM_ADDR;
  38. String FULL_STRM_ADDR;
  39. String FCLT_TYPE;
  40. String STRM_TYPE;
  41. TCDSObject *Data;
  42. } PLAYER_INFO;
  43. class TFrmStreamPlayer : public TForm
  44. {
  45. __published: // IDE-managed Components
  46. TPanel *PnlStream;
  47. TTimer *TmrShow;
  48. TPanel *PnlBlob;
  49. TADOQuery *pADO;
  50. TImage *ImgBlob;
  51. TPopupMenu *PopupMenu1;
  52. TMenuItem *MnuConnect;
  53. TMenuItem *MnuDisconnect;
  54. TFFPlayer *FFPlayer1;
  55. TcxLabel *lblErr1;
  56. TcxLabel *lblErr2;
  57. TcxLabel *lblErr3;
  58. TcxLabel *lblErr4;
  59. TcxLabel *lblErr5;
  60. TcxLabel *lblErr6;
  61. TAcesTechXPlayer2 *AcesTechXPlayer21;
  62. void __fastcall TmrShowTimer(TObject *Sender);
  63. void __fastcall FormShow(TObject *Sender);
  64. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  65. void __fastcall FormDestroy(TObject *Sender);
  66. void __fastcall MnuConnectClick(TObject *Sender);
  67. void __fastcall MnuDisconnectClick(TObject *Sender);
  68. void __fastcall PnlStreamDblClick(TObject *Sender);
  69. void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
  70. private: // User declarations
  71. bool FPlay;
  72. bool FDispBlob;
  73. HWND FWnd;
  74. public: // User declarations
  75. bool FFullScreen;
  76. TRect FLastBounds;
  77. TWinControl *FParent;
  78. PLAYER_INFO FObj;
  79. bool FAutoPlay;
  80. long FConHandle;
  81. //bool FInstalled;
  82. String FId;
  83. String FGroup;
  84. String FName;
  85. String FStreamingType;
  86. String FViewAddress;
  87. String FFullAddress;
  88. String FCctvType;
  89. void __fastcall MaxOrNormalForm(TForm *AForm, bool AMax);
  90. void __fastcall InitCamera(void *ACctv, bool AAutoPlay=true);
  91. void __fastcall Connect();
  92. void __fastcall Disconnect();
  93. void __fastcall CameraRelease();
  94. void __fastcall RefreshPlayer();
  95. __fastcall TFrmStreamPlayer(TComponent* Owner);
  96. };
  97. //---------------------------------------------------------------------------
  98. //extern PACKAGE TFrmStreamPlayer *FrmStreamPlayer;
  99. //---------------------------------------------------------------------------
  100. #endif