diff --git a/.gn b/.gn index 1bd5722a6ca5a..8541faedd6aa8 100644 --- a/.gn +++ b/.gn @@ -44,7 +44,7 @@ default_args = { # Don't include the iLBC audio codec. # TODO(bugs.webrtc.org/8396): Once WebRTC gets rid of its internal # deps on codecs, we can remove this. - rtc_include_ilbc = false + rtc_include_ilbc = true # Changes some setup for the Crashpad build to set them to build against # Chromium's zlib, base, etc. diff --git a/third_party/blink/renderer/platform/peerconnection/audio_codec_factory.cc b/third_party/blink/renderer/platform/peerconnection/audio_codec_factory.cc index 0165a9bd17c91..041a1e9546bcd 100644 --- a/third_party/blink/renderer/platform/peerconnection/audio_codec_factory.cc +++ b/third_party/blink/renderer/platform/peerconnection/audio_codec_factory.cc @@ -21,6 +21,8 @@ #include "third_party/webrtc/api/audio_codecs/opus/audio_decoder_opus.h" #include "third_party/webrtc/api/audio_codecs/opus/audio_encoder_multi_channel_opus.h" #include "third_party/webrtc/api/audio_codecs/opus/audio_encoder_opus.h" +#include "third_party/webrtc/api/audio_codecs/ilbc/audio_decoder_ilbc.h" +#include "third_party/webrtc/api/audio_codecs/ilbc/audio_encoder_ilbc.h" namespace blink { @@ -73,7 +75,7 @@ struct NotAdvertisedDecoder { rtc::scoped_refptr CreateWebrtcAudioEncoderFactory() { return webrtc::CreateAudioEncoderFactory< - webrtc::AudioEncoderOpus, webrtc::AudioEncoderIsac, + webrtc::AudioEncoderOpus, webrtc::AudioEncoderIsac,webrtc::AudioEncoderIlbc, webrtc::AudioEncoderG722, webrtc::AudioEncoderG711, NotAdvertisedEncoder, NotAdvertisedEncoder>(); @@ -82,7 +84,7 @@ CreateWebrtcAudioEncoderFactory() { rtc::scoped_refptr CreateWebrtcAudioDecoderFactory() { return webrtc::CreateAudioDecoderFactory< - webrtc::AudioDecoderOpus, webrtc::AudioDecoderIsac, + webrtc::AudioDecoderOpus, webrtc::AudioDecoderIsac,webrtc::AudioDecoderIlbc, webrtc::AudioDecoderG722, webrtc::AudioDecoderG711, NotAdvertisedDecoder, NotAdvertisedDecoder>(); diff --git a/third_party/webrtc_overrides/BUILD.gn b/third_party/webrtc_overrides/BUILD.gn index bb06d634c9840..03e4b1abc1384 100644 --- a/third_party/webrtc_overrides/BUILD.gn +++ b/third_party/webrtc_overrides/BUILD.gn @@ -37,6 +37,8 @@ component("webrtc_component") { "//third_party/webrtc/api/audio_codecs/opus:audio_decoder_opus", "//third_party/webrtc/api/audio_codecs/opus:audio_encoder_multiopus", "//third_party/webrtc/api/audio_codecs/opus:audio_encoder_opus", + "//third_party/webrtc/api/audio_codecs/ilbc:audio_decoder_ilbc", + "//third_party/webrtc/api/audio_codecs/ilbc:audio_encoder_ilbc", "//third_party/webrtc/api/rtc_event_log:rtc_event_log_factory", "//third_party/webrtc/api/video:video_bitrate_allocation", "//third_party/webrtc/api/video:video_frame",