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 (#2509)
* 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
9bf5005bdd
commit
345b691895
4 changed files with 148 additions and 1 deletions
|
@ -264,6 +264,8 @@ private:
|
|||
// Interface ISrsRtcPLIWorkerHandler
|
||||
public:
|
||||
virtual srs_error_t do_request_keyframe(uint32_t ssrc, SrsContextId cid);
|
||||
private:
|
||||
virtual void http_hooks_on_stop();
|
||||
};
|
||||
|
||||
// A fast timer for publish stream, for RTCP feedback.
|
||||
|
@ -375,6 +377,8 @@ private:
|
|||
SrsRtcVideoRecvTrack* get_video_track(uint32_t ssrc);
|
||||
void update_rtt(uint32_t ssrc, int rtt);
|
||||
void update_send_report_time(uint32_t ssrc, const SrsNtp& ntp);
|
||||
private:
|
||||
virtual void http_hooks_on_unpublish();
|
||||
};
|
||||
|
||||
// Callback for RTC connection.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue