1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine the pithy print of ingesters.

This commit is contained in:
winlin 2015-06-06 18:57:41 +08:00
parent e4c27a51b8
commit 2a1db36750
2 changed files with 94 additions and 24 deletions

View file

@ -45,14 +45,26 @@ class SrsPithyPrint;
*/
class SrsIngesterFFMPEG
{
public:
private:
std::string vhost;
std::string id;
SrsFFMPEG* ffmpeg;
SrsIngesterFFMPEG(SrsFFMPEG* _ffmpeg, std::string _vhost, std::string _id);
int64_t starttime;
public:
SrsIngesterFFMPEG();
virtual ~SrsIngesterFFMPEG();
public:
virtual int initialize(SrsFFMPEG* ff, std::string v, std::string i);
// the ingest uri, [vhost]/[ingest id]
virtual std::string uri();
// the alive in ms.
virtual int alive();
virtual bool equals(std::string v, std::string i);
virtual bool equals(std::string v);
public:
virtual int start();
virtual void stop();
virtual int cycle();
// @see SrsFFMPEG.fast_stop().
virtual void fast_stop();
};