FrmCrsStreamPlayer2F.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCrsStreamPlayer2FH
  3. #define FrmCrsStreamPlayer2FH
  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 "CDSCrossF.h"
  30. #include "dxSkinMcSkin.hpp"
  31. #include "AcesTechXPlayer2Lib_OCX.h"
  32. //---------------------------------------------------------------------------
  33. #define FFPLAY 0
  34. #define ACES 1
  35. #define MAX_CRSCAM 4
  36. typedef struct _tagCrsCamInfo {
  37. bool Installed;
  38. TPanel *PnlStream;
  39. TPanel *PnlTitle;
  40. String ID;
  41. String NAME;
  42. String STRM_ADDR;
  43. String FULL_STRM_ADDR;
  44. String FCLT_TYPE;
  45. String STRM_TYPE;
  46. TCrossCam *Cmra;
  47. long FConHandle;
  48. TTimer *Timer;
  49. #if FFPLAY
  50. TFFPlayer *FFPlayer;
  51. #endif
  52. #if ACES
  53. TAcesTechXPlayer2 *AcesTechXPlayer;
  54. #endif
  55. } CRSCAM_PLAYER_INFO;
  56. typedef struct tagCrsPlayerinfo
  57. {
  58. CRSCAM_PLAYER_INFO info[MAX_CRSCAM];
  59. } CRS_PLAYER_INFO;
  60. class TFrmCrsStreamPlayer2 : public TForm
  61. {
  62. __published: // IDE-managed Components
  63. TADOQuery *pADO;
  64. TPopupMenu *PopupMenu1;
  65. TMenuItem *MnuConnect;
  66. TMenuItem *MnuDisconnect;
  67. TFFPlayer *FFPlayer1;
  68. TPanel *Panel1;
  69. TPanel *PnlBlob;
  70. TImage *ImgBlob;
  71. TcxLabel *lblErr1;
  72. TcxLabel *lblErr2;
  73. TcxLabel *lblErr3;
  74. TcxLabel *lblErr4;
  75. TcxLabel *lblErr5;
  76. TcxLabel *lblErr6;
  77. TGridPanel *GridPanel1;
  78. TPanel *PnlCam1;
  79. TPanel *PnlCam2;
  80. TcxLabel *cxLabel1;
  81. TcxLabel *cxLabel2;
  82. TPanel *PnlCam3;
  83. TPanel *PnlCam4;
  84. TPanel *PnlTitle1;
  85. TPanel *PnlTitle2;
  86. TPanel *PnlTitle3;
  87. TPanel *PnlTitle4;
  88. TFFPlayer *FFPlayer2;
  89. TFFPlayer *FFPlayer3;
  90. TFFPlayer *FFPlayer4;
  91. TAcesTechXPlayer2 *AcesTechXPlayer21;
  92. TAcesTechXPlayer2 *AcesTechXPlayer22;
  93. TAcesTechXPlayer2 *AcesTechXPlayer23;
  94. TAcesTechXPlayer2 *AcesTechXPlayer24;
  95. TTimer *Timer1;
  96. TTimer *Timer2;
  97. TTimer *Timer3;
  98. TTimer *Timer4;
  99. void __fastcall TmrShowTimer(TObject *Sender);
  100. void __fastcall FormShow(TObject *Sender);
  101. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  102. void __fastcall FormDestroy(TObject *Sender);
  103. void __fastcall MnuConnectClick(TObject *Sender);
  104. void __fastcall MnuDisconnectClick(TObject *Sender);
  105. void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
  106. private: // User declarations
  107. bool FPlay;
  108. bool FDispBlob;
  109. HWND FWnd;
  110. public: // User declarations
  111. bool FFullScreen;
  112. TRect FLastBounds;
  113. TWinControl *FParent;
  114. TCross *FCross;
  115. CRS_PLAYER_INFO FObj;
  116. bool FAutoPlay;
  117. void __fastcall InitCamera(void *ACctv, bool AAutoPlay=true);
  118. void __fastcall Connect(int AIdx);
  119. void __fastcall Disconnect(int AIdx);
  120. void __fastcall ReleaseCamera();
  121. __fastcall TFrmCrsStreamPlayer2(TComponent* Owner);
  122. };
  123. //---------------------------------------------------------------------------
  124. //extern PACKAGE TFrmCrsStreamPlayer *FrmCrsStreamPlayer;
  125. //---------------------------------------------------------------------------
  126. #endif