improvement
[trackerpp.git] / src / Engine.cpp
index e51dd65..c044ab7 100644 (file)
@@ -39,10 +39,10 @@ Engine::~Engine()
     delete tracker;
 }
 
-void Engine::setVideoSrc(const std::string& url)
+void Engine::setVideoSrc(VideoSrcType type, const std::string& url)
 {
     videoSrc = url;
-    reader = VideoReaderFactory::createVideoReader(VideoSrcType::URL,"rtsp://192.168.1.75:554/stream1");
+    reader = VideoReaderFactory::createVideoReader(type, url);
 }
 
 void Engine::run()