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

RTC: Hook beofore publish event

This commit is contained in:
winlin 2020-08-17 14:05:01 +08:00
parent d5e1116eb7
commit ecc5f73c54
2 changed files with 8 additions and 0 deletions

View file

@ -497,6 +497,8 @@ public:
public:
// Initialize the hijacker.
virtual srs_error_t initialize() = 0;
// When create publisher.
virtual srs_error_t on_before_publish(SrsRtcConnection* session, SrsRtcPublishStream* publisher, SrsRequest* req) = 0;
// When start publisher by RTC.
virtual srs_error_t on_start_publish(SrsRtcConnection* session, SrsRtcPublishStream* publisher, SrsRequest* req) = 0;
// When stop publish by RTC.