Index: media/engine/webrtcmediaengine.h |
diff --git a/media/engine/webrtcmediaengine.h b/media/engine/webrtcmediaengine.h |
index f24f7c7c9fe8ac7ace47a395f7ac69ed2e20f92f..b9713e985be61c08696e10a10b8c9e5c254a3498 100644 |
--- a/media/engine/webrtcmediaengine.h |
+++ b/media/engine/webrtcmediaengine.h |
@@ -22,6 +22,8 @@ class AudioDecoderFactory; |
class AudioDeviceModule; |
class AudioMixer; |
class AudioProcessing; |
+class VideoDecoderFactory; |
+class VideoEncoderFactory; |
} |
namespace cricket { |
class WebRtcVideoDecoderFactory; |
@@ -81,6 +83,18 @@ class WebRtcMediaEngineFactory { |
WebRtcVideoDecoderFactory* video_decoder_factory, |
rtc::scoped_refptr<webrtc::AudioMixer> audio_mixer, |
rtc::scoped_refptr<webrtc::AudioProcessing> apm); |
+ |
+ // Create a MediaEngineInterface with optional video codec factories. These |
+ // video factories represents all video codecs, i.e. no extra internal video |
+ // codecs will be added. |
+ static std::unique_ptr<MediaEngineInterface> Create( |
+ rtc::scoped_refptr<webrtc::AudioDeviceModule> adm, |
+ rtc::scoped_refptr<webrtc::AudioEncoderFactory> audio_encoder_factory, |
+ rtc::scoped_refptr<webrtc::AudioDecoderFactory> audio_decoder_factory, |
+ std::unique_ptr<webrtc::VideoEncoderFactory> video_encoder_factory, |
+ std::unique_ptr<webrtc::VideoDecoderFactory> video_decoder_factory, |
+ rtc::scoped_refptr<webrtc::AudioMixer> audio_mixer, |
+ rtc::scoped_refptr<webrtc::AudioProcessing> audio_processing); |
}; |
// Verify that extension IDs are within 1-byte extension range and are not |