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

dvr support plan and default session plan

This commit is contained in:
winlin 2014-04-17 16:57:04 +08:00
parent 4b82a4f510
commit 6f19a83114
5 changed files with 253 additions and 47 deletions

View file

@ -213,10 +213,10 @@ public:
/**
* find stream by vhost/app/stream.
* @param req the client request.
* @return the matched source, never be NULL.
* @param ppsource the matched source, if success never be NULL.
* @remark stream_url should without port and schema.
*/
static SrsSource* find(SrsRequest* req);
static int find(SrsRequest* req, SrsSource** ppsource);
private:
// deep copy of client request.
SrsRequest* req;
@ -271,6 +271,8 @@ public:
*/
SrsSource(SrsRequest* _req);
virtual ~SrsSource();
public:
virtual int initialize();
// interface ISrsReloadHandler
public:
virtual int on_reload_vhost_atc(std::string vhost);