Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: media/engine/webrtcmediaengine.h

Issue 3004353002: Expose new video codec factories in the PeerConnectionFactory API (Closed)
Patch Set: Add build dependency Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « api/peerconnectioninterface.h ('k') | media/engine/webrtcmediaengine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « api/peerconnectioninterface.h ('k') | media/engine/webrtcmediaengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698