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

add publish edge framework

This commit is contained in:
winlin 2014-04-27 09:29:37 +08:00
parent 270b1270af
commit ec96072472
6 changed files with 365 additions and 22 deletions

View file

@ -37,7 +37,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_app_st.hpp>
#include <srs_app_reload.hpp>
class SrsEdge;
class SrsPlayEdge;
class SrsPublishEdge;
class SrsSource;
class SrsCommonMessage;
class SrsOnMetaDataPacket;
@ -236,7 +237,8 @@ private:
SrsEncoder* encoder;
#endif
// edge control service
SrsEdge* edge;
SrsPlayEdge* play_edge;
SrsPublishEdge* publish_edge;
// gop cache for client fast startup.
SrsGopCache* gop_cache;
// to forward stream to other servers
@ -314,6 +316,8 @@ public:
virtual bool is_atc();
// for edge, when play edge stream, check the state
virtual int on_edge_start_play();
// for edge, when publish edge stream, check the state
virtual int on_edge_start_publish();
private:
virtual int create_forwarders();
virtual void destroy_forwarders();