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
35 lines
676 B
/*
|
|
MediaMtx (C++) - path (MediaMTX: internal/core/path.go)
|
|
A MediaPath (lib/data/media/mtx: stream, readers, recorder) with a static source (RTSP camera).
|
|
*/
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include <core/mediaPath.h>
|
|
|
|
#include "../conf/conf.h"
|
|
#include "../staticsources/rtsp/rtspSource.h"
|
|
|
|
namespace mtx {
|
|
|
|
class Path : public MediaPath
|
|
{
|
|
public:
|
|
Path(const PathConf & conf, const Conf & global);
|
|
~Path() override;
|
|
|
|
void start();
|
|
void stop();
|
|
|
|
const PathConf & conf() const { return m_conf; }
|
|
PathInfo info() const;
|
|
|
|
private:
|
|
PathConf m_conf;
|
|
Conf m_fullConf;
|
|
std::unique_ptr<RtspSource> m_pSource;
|
|
};
|
|
|
|
} // namespace mtx
|