mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-03 08:57:32 +08:00
支持remb控制推流比特率
This commit is contained in:
@@ -1241,10 +1241,18 @@ const RtcMedia *RtcSession::getMedia(TrackType type) const{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool RtcSession::supportRtcpFb(const string &name, TrackType type) const {
|
||||
auto media = getMedia(type);
|
||||
if (!media) {
|
||||
return false;
|
||||
}
|
||||
auto &ref = media->plan[0].rtcp_fb;
|
||||
return ref.find(name) != ref.end();
|
||||
}
|
||||
|
||||
static string const kTWCCRtcpFb = "transport-cc";
|
||||
static string const kTWCCExtMap = "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01";
|
||||
|
||||
|
||||
void RtcConfigure::RtcTrackConfigure::enableTWCC(bool enable){
|
||||
if (!enable) {
|
||||
rtcp_fb.erase(kTWCCRtcpFb);
|
||||
|
||||
Reference in New Issue
Block a user