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

RTC: Use event notify for stream source

This commit is contained in:
winlin 2020-09-23 19:29:19 +08:00
parent 2b47b42213
commit fb6c2fdf80
4 changed files with 50 additions and 18 deletions

View file

@ -1431,11 +1431,6 @@ srs_error_t SrsRtcPublishStream::do_request_keyframe(uint32_t ssrc, SrsContextId
return err;
}
void SrsRtcPublishStream::on_consumers_finished()
{
session_->on_consumers_finished(req->get_stream_url());
}
srs_error_t SrsRtcPublishStream::notify(int type, srs_utime_t interval, srs_utime_t tick)
{
srs_error_t err = srs_success;
@ -2067,13 +2062,6 @@ srs_error_t SrsRtcConnection::on_rtcp_feedback_remb(SrsRtcpPsfbCommon *rtcp)
return srs_success;
}
void SrsRtcConnection::on_consumers_finished(std::string url)
{
if (hijacker_) {
hijacker_->on_consumers_finished(url);
}
}
void SrsRtcConnection::set_hijacker(ISrsRtcConnectionHijacker* h)
{
hijacker_ = h;