添加twcc相关api

This commit is contained in:
xia-chu
2021-04-28 15:07:15 +08:00
parent ac55ae79fb
commit 9396270ce2
2 changed files with 75 additions and 44 deletions

View File

@@ -591,7 +591,7 @@ public:
//音频时有效
uint32_t channel = 0;
//rtcp反馈
vector<string> rtcp_fb;
set<string> rtcp_fb;
map<string/*key*/, string/*value*/, StrCaseCompare> fmtp;
string getFmtp(const char *key) const;
@@ -693,12 +693,13 @@ public:
RtpDirection direction{RtpDirection::invalid};
SdpAttrFingerprint fingerprint;
vector<string> rtcp_fb;
set<string> rtcp_fb;
set<string> extmap;
vector<CodecId> preferred_codec;
vector<string> extmap;
vector<SdpAttrCandidate> candidate;
void setDefaultSetting(TrackType type);
void enableTWCC(bool enable = true);
};
RtcTrackConfigure video;
@@ -715,6 +716,8 @@ public:
void setPlayRtspInfo(const string &sdp);
void enableTWCC(bool enable = true, TrackType type = TrackInvalid);
private:
void matchMedia(shared_ptr<RtcSession> &ret, TrackType type, const vector<RtcMedia> &medias, const RtcTrackConfigure &configure);
bool onCheckCodecProfile(const RtcCodecPlan &plan, CodecId codec);