FrmStreamPlayerF.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. //---------------------------------------------------------------------------
  30. typedef struct tagPlayerinfo
  31. {
  32. bool Installed;
  33. bool IsCctv;
  34. String ID;
  35. String NAME;
  36. String RTSP_ADDR;
  37. TCDSObject *Data;
  38. } PLAYER_INFO;
  39. class TFrmStreamPlayer : public TForm
  40. {
  41. __published: // IDE-managed Components
  42. TPanel *PnlStream;
  43. TTimer *TmrShow;
  44. TPanel *PnlBlob;
  45. TADOQuery *pADO;
  46. TImage *ImgBlob;
  47. TPopupMenu *PopupMenu1;
  48. TMenuItem *MnuConnect;
  49. TMenuItem *MnuDisconnect;
  50. TFFPlayer *FFPlayer1;
  51. TcxLabel *lblErr1;
  52. TcxLabel *lblErr2;
  53. TcxLabel *lblErr3;
  54. TcxLabel *lblErr4;
  55. TcxLabel *lblErr5;
  56. TcxLabel *lblErr6;
  57. void __fastcall TmrShowTimer(TObject *Sender);
  58. void __fastcall FormShow(TObject *Sender);
  59. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  60. void __fastcall FormDestroy(TObject *Sender);
  61. void __fastcall MnuConnectClick(TObject *Sender);
  62. void __fastcall MnuDisconnectClick(TObject *Sender);
  63. void __fastcall PnlStreamDblClick(TObject *Sender);
  64. void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
  65. private: // User declarations
  66. bool FPlay;
  67. bool FDispBlob;
  68. DWORD FProcessId;
  69. HWND FWnd;
  70. public: // User declarations
  71. bool FFullScreen;
  72. TRect FLastBounds;
  73. TWinControl *FParent;
  74. PLAYER_INFO FObj;
  75. bool FAutoPlay;
  76. long FConHandle;
  77. //bool FInstalled;
  78. String FId;
  79. String FGroup;
  80. String FName;
  81. String FStreamingType;
  82. String FViewAddress;
  83. String FFullAddress;
  84. void __fastcall MaxOrNormalForm(TForm *AForm, bool AMax);
  85. void __fastcall InitCamera(void *ACctv, bool AAutoPlay=true);
  86. void __fastcall Connect();
  87. void __fastcall Disconnect();
  88. void __fastcall CameraRelease();
  89. void __fastcall RefreshPlayer();
  90. __fastcall TFrmStreamPlayer(TComponent* Owner);
  91. };
  92. //---------------------------------------------------------------------------
  93. //extern PACKAGE TFrmStreamPlayer *FrmStreamPlayer;
  94. //---------------------------------------------------------------------------
  95. #endif