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

srs-librtmp: implements the publish and play.

This commit is contained in:
winlin 2014-03-02 14:51:19 +08:00
parent fce26d6690
commit c338eb3666
7 changed files with 242 additions and 6 deletions

View file

@ -106,6 +106,7 @@ enum SrsClientType
SrsClientFMLEPublish,
SrsClientFlashPublish,
};
std::string srs_client_type_string(SrsClientType type);
/**
* implements the client role protocol.
@ -137,7 +138,12 @@ public:
virtual int connect_app(std::string app, std::string tc_url);
virtual int create_stream(int& stream_id);
virtual int play(std::string stream, int stream_id);
// flash publish schema:
// connect-app => create-stream => flash-publish
virtual int publish(std::string stream, int stream_id);
// FMLE publish schema:
// connect-app => FMLE publish
virtual int fmle_publish(std::string stream, int& stream_id);
};
/**