You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
676 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. MediaMtx (C++) - path (MediaMTX: internal/core/path.go)
  3. A MediaPath (lib/data/media/mtx: stream, readers, recorder) with a static source (RTSP camera).
  4. */
  5. #pragma once
  6. #include <memory>
  7. #include <string>
  8. #include <core/mediaPath.h>
  9. #include "../conf/conf.h"
  10. #include "../staticsources/rtsp/rtspSource.h"
  11. namespace mtx {
  12. class Path : public MediaPath
  13. {
  14. public:
  15. Path(const PathConf & conf, const Conf & global);
  16. ~Path() override;
  17. void start();
  18. void stop();
  19. const PathConf & conf() const { return m_conf; }
  20. PathInfo info() const;
  21. private:
  22. PathConf m_conf;
  23. Conf m_fullConf;
  24. std::unique_ptr<RtspSource> m_pSource;
  25. };
  26. } // namespace mtx