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

RTC: Rename ISrsRtcPublisher to ISrsRtcPublishStream

This commit is contained in:
winlin 2020-07-07 16:57:33 +08:00
parent 0cdfd062f2
commit 4c73b9a819
4 changed files with 18 additions and 17 deletions

View file

@ -813,7 +813,7 @@ srs_error_t SrsRtcPlayer::on_rtcp_ps_feedback(char* buf, int nb_buf)
switch (fmt) {
case kPLI: {
ISrsRtcPublisher* publisher = session_->source_->rtc_publisher();
ISrsRtcPublishStream* publisher = session_->source_->publish_stream();
if (publisher) {
publisher->request_keyframe();
srs_trace("RTC request PLI");
@ -873,7 +873,7 @@ SrsRtcPublisher::~SrsRtcPublisher()
{
// TODO: FIXME: Do unpublish when session timeout.
if (source) {
source->set_rtc_publisher(NULL);
source->set_publish_stream(NULL);
source->on_unpublish();
}
@ -923,7 +923,7 @@ srs_error_t SrsRtcPublisher::initialize(uint32_t vssrc, uint32_t assrc, int twcc
return srs_error_wrap(err, "on publish");
}
source->set_rtc_publisher(this);
source->set_publish_stream(this);
if (_srs_rtc_hijacker) {
if ((err = _srs_rtc_hijacker->on_start_publish(session_, this, req)) != srs_success) {