tfsfu: add play red pt negotiate

pull/2104/head
jinxue.cgh 4 years ago committed by winlin
parent 140f8b0fce
commit 58b75c6f1b

@ -2989,8 +2989,17 @@ srs_error_t SrsRtcConnection::negotiate_play_capability(SrsRequest* req, const S
SrsRtcTrackDescription* track = track_descs[i]->copy();
// Use remote/source/offer PayloadType.
track->media_->pt_of_publisher_ = track->media_->pt_;
track->media_->pt_ = remote_payload.payload_type_;
vector<SrsMediaPayloadType> red_pts = remote_media_desc.find_media_with_encoding_name("red");
if (!red_pts.empty() && !track->red_) {
SrsMediaPayloadType red_pt = red_pts.at(0);
track->red_->pt_of_publisher_ = track->red_->pt_;
track->red_->pt_ = red_pt.payload_type_;
}
track->mid_ = remote_media_desc.mid_;
uint32_t publish_ssrc = track->ssrc_;

Loading…
Cancel
Save