BitrateAllocator的创建
PeerConnectionFactory::CreatePeerConnection
Call::Create = new internal::Call
bitrate_allocator_(new BitrateAllocator(this)),
AddObserver
音频: AudioSendStream::ConfigureBitrateObserver()
bitrate_allocator_->AddObserver(this, MediaStreamAllocationConfig;
MediaStreamAllocationConfig参数:
//webrtc_voice_engine.cc---UpdateAllowedBitrateRange 默认为32000
uint32_t min_bitrate_bps = 32000
uint32_t max_bitrate_bps = 32000
uint32_t pad_up_bitrate_bps = 0
int64_t priority_bitrate_bps = 0
bool enforce_min_bitrate = true
double bitrate_priority = 1
视频: VideoSendStreamImpl