mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #179, support dvr http api. 2.0.123.
This commit is contained in:
parent
691f732204
commit
a3648063d5
5 changed files with 157 additions and 0 deletions
|
@ -44,6 +44,7 @@ class SrsFileWriter;
|
|||
class SrsFlvEncoder;
|
||||
class SrsDvrPlan;
|
||||
class SrsJsonAny;
|
||||
class SrsJsonObject;
|
||||
class SrsThread;
|
||||
|
||||
#include <srs_app_source.hpp>
|
||||
|
@ -305,6 +306,10 @@ private:
|
|||
std::string callback;
|
||||
bool autostart;
|
||||
bool started;
|
||||
private:
|
||||
// user action, reap_segment.
|
||||
std::string action;
|
||||
std::string path_template;
|
||||
public:
|
||||
SrsDvrApiPlan();
|
||||
virtual ~SrsDvrApiPlan();
|
||||
|
@ -322,8 +327,11 @@ public:
|
|||
virtual int start();
|
||||
virtual int dumps(std::stringstream& ss);
|
||||
virtual int stop();
|
||||
virtual int rpc(SrsJsonObject* obj);
|
||||
protected:
|
||||
virtual int on_reap_segment();
|
||||
private:
|
||||
virtual int check_user_actions(SrsSharedPtrMessage* msg);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -389,6 +397,7 @@ public:
|
|||
virtual int dumps(std::string vhost, std::stringstream& ss);
|
||||
virtual int create(SrsJsonAny* json);
|
||||
virtual int stop(std::string vhost);
|
||||
virtual int rpc(SrsJsonAny* json);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue