FrmStreamPlayerF.h 2.8 KB

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