webrtc answer m-lines次序错误 (#1695)

Co-authored-by: james <mrjamesli@126.com>
This commit is contained in:
sha-long-ba-si
2022-06-11 12:26:31 +08:00
committed by GitHub
parent 483a75284e
commit 3a9408bcec
2 changed files with 138 additions and 132 deletions

View File

@@ -720,7 +720,7 @@ public:
void setDefaultSetting(std::string ice_ufrag, std::string ice_pwd, RtpDirection direction, const SdpAttrFingerprint &fingerprint);
void addCandidate(const SdpAttrCandidate &candidate, mediakit::TrackType type = mediakit::TrackInvalid);
std::shared_ptr<RtcSession> createAnswer(const RtcSession &offer);
std::shared_ptr<RtcSession> createAnswer(const RtcSession &offer) const;
void setPlayRtspInfo(const std::string &sdp);
@@ -728,9 +728,9 @@ public:
void enableREMB(bool enable = true, mediakit::TrackType type = mediakit::TrackInvalid);
private:
void matchMedia(const std::shared_ptr<RtcSession> &ret, mediakit::TrackType type, const std::vector<RtcMedia> &medias, const RtcTrackConfigure &configure);
bool onCheckCodecProfile(const RtcCodecPlan &plan, mediakit::CodecId codec);
void onSelectPlan(RtcCodecPlan &plan, mediakit::CodecId codec);
void matchMedia(const std::shared_ptr<RtcSession> &ret, const RtcMedia &media) const;
bool onCheckCodecProfile(const RtcCodecPlan &plan, mediakit::CodecId codec) const;
void onSelectPlan(RtcCodecPlan &plan, mediakit::CodecId codec) const;
private:
RtcCodecPlan::Ptr _rtsp_video_plan;