Make VideoBitrateAllocatorFactory injectable.
This patch makes VideoBitrateAllocatorFactory injectable by adding to PeerConnectionDependencies instead of allowing it to be overridden using MediaEngine (on PeerConnectionFactory). With this patch VideoBitrateAllocatorFactory is owned by the PeerConnection. WANT_LGTM (examples) : sakal@ WANT_LGTM (api/pc) : steveanton@ Bug: webrtc:10547 Change-Id: I768d400a621f2b7a98795eb7f410adb48651bfd6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132706 Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27654}
This commit is contained in:
committed by
Commit Bot
parent
a1a93fba36
commit
a3aa9bd75b
@ -162,7 +162,6 @@ void AndroidCallClient::CreatePeerConnectionFactory() {
|
||||
webrtc::CreateBuiltinAudioDecoderFactory(),
|
||||
absl::make_unique<webrtc::InternalEncoderFactory>(),
|
||||
absl::make_unique<webrtc::InternalDecoderFactory>(),
|
||||
webrtc::CreateBuiltinVideoBitrateAllocatorFactory(),
|
||||
nullptr /* audio_mixer */, webrtc::AudioProcessingBuilder().Create());
|
||||
RTC_LOG(LS_INFO) << "Media engine created: " << media_engine.get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user