mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
* support http hooks for rtc: on_play/stop/publish/unpublish * Update srs_app_rtc_conn.cpp * Update srs_app_rtc_conn.cpp
This commit is contained in:
parent
57f6eb09c1
commit
dffc344747
6 changed files with 151 additions and 2 deletions
|
@ -27,6 +27,8 @@ public:
|
|||
private:
|
||||
virtual srs_error_t do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r, SrsJsonObject* res);
|
||||
srs_error_t check_remote_sdp(const SrsSdp& remote_sdp);
|
||||
private:
|
||||
virtual srs_error_t http_hooks_on_play(SrsRequest* req);
|
||||
};
|
||||
|
||||
class SrsGoApiRtcPublish : public ISrsHttpHandler
|
||||
|
@ -41,6 +43,8 @@ public:
|
|||
private:
|
||||
virtual srs_error_t do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r, SrsJsonObject* res);
|
||||
srs_error_t check_remote_sdp(const SrsSdp& remote_sdp);
|
||||
private:
|
||||
virtual srs_error_t http_hooks_on_publish(SrsRequest* req);
|
||||
};
|
||||
|
||||
class SrsGoApiRtcNACK : public ISrsHttpHandler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue