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

fix #293, support rtmp remux to http flv live stream.

This commit is contained in:
winlin 2015-01-18 20:07:54 +08:00
parent 53d9faf395
commit 3b853a6dbd
5 changed files with 53 additions and 9 deletions

View file

@ -100,6 +100,18 @@ private:
virtual int send_messages(SrsFlvEncoder* enc, SrsSharedPtrMessage** msgs, int nb_msgs);
};
/**
* the srs live entry
*/
struct SrsLiveEntry
{
std::string vhost;
std::string mount;
SrsLiveStream* stream;
SrsLiveEntry();
};
/**
* the http server instance,
* serve http static file, flv vod stream and flv live stream.
@ -109,7 +121,7 @@ class SrsHttpServer : public ISrsReloadHandler
public:
SrsGoHttpServeMux mux;
// the flv live streaming template.
std::map<std::string, std::string> flvs;
std::map<std::string, SrsLiveEntry*> flvs;
public:
SrsHttpServer();
virtual ~SrsHttpServer();