| | |
| | | #include <map> |
| | | #include "RtspCaptureElement.h" |
| | | #include "RtspImageRedis.h" |
| | | #include <VideoServer/QiaoJia/DB/LDBTool.h> |
| | | #include "../GB28181DecoderModel/VideoCaptureElementWithRtp.h" |
| | | //#include <VideoCaptureElementWithRtp.h> |
| | | #include <QiaoJia/DB/LDBTool.h> |
| | | #include <basic/util/app/AppPreference.hpp> |
| | | #include "RtspAnalysServer.h" |
| | | //#include <GB28181DecoderModel/VideoCaptureElementWithRtp.h> |
| | | //#include <VideoToImageMulth/rpc/RtspAnalysServer.h> |
| | | |
| | | //using BASICGB28181::VideoCaptureElementWithRtp; |
| | | |
| | | //用来实现recordVideo的RPC的接口类 |
| | | class RtspAnalysManager :public ::RtspAnalys::RtspAnalysServer{ |
| | |
| | | m_lDBTool=new LDBTool; |
| | | init(); |
| | | } |
| | | |
| | | RtspAnalysManager(LDBTool *_dbTool); |
| | | |
| | | virtual ::std::string recordVideo(const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent); |
| | | |
| | | virtual ~RtspAnalysManager(); |
| | | |
| | | int addCamera(const std::string &, const std::string& rtsp); |
| | |
| | | |
| | | private: |
| | | |
| | | RWLock m_imgRedisCRwLock; |
| | | |
| | | LDBTool *m_lDBTool; |
| | | |
| | | int m_GB28181_Enable; |
| | | |
| | | //保存CamID和RtspCaptureElement的映射关系 |
| | | std::map<std::string, RtspCaptureElement *> m_controllers; |
| | | |
| | | //保存CamID和VideoCaptureElementWithRtp的映射关系 |
| | | std::map<std::string, BASICGB28181::VideoCaptureElementWithRtp *> m_controllers_videoCapElem; |
| | | |
| | | //保存CamID和RtspImageRedisElement的映射关系 |
| | | std::map<std::string, RtspImageRedisElement*> m_imgRedisControllers; |
| | | //当前摄像头的数量 |