2015-01-20 21:36:13 +00:00
|
|
|
/*
|
2016-02-07 20:46:45 -08:00
|
|
|
* Copyright (c) 2004 The WebRTC project authors. All Rights Reserved.
|
2015-01-20 21:36:13 +00:00
|
|
|
*
|
2016-02-07 20:46:45 -08:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2015-01-20 21:36:13 +00:00
|
|
|
*/
|
2013-07-10 00:45:36 +00:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "media/base/mediaengine.h"
|
2013-07-10 00:45:36 +00:00
|
|
|
|
2014-06-20 14:58:56 +00:00
|
|
|
#if !defined(DISABLE_MEDIA_ENGINE_FACTORY)
|
2014-06-20 00:26:50 +00:00
|
|
|
|
2014-08-19 14:56:59 +00:00
|
|
|
#if defined(HAVE_WEBRTC_VOICE) && defined(HAVE_WEBRTC_VIDEO)
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "media/engine/webrtcmediaengine.h"
|
2014-08-19 14:56:59 +00:00
|
|
|
#endif // HAVE_WEBRTC_VOICE && HAVE_WEBRTC_VIDEO
|
|
|
|
|
|
2013-07-10 00:45:36 +00:00
|
|
|
namespace cricket {
|
2014-06-20 00:26:50 +00:00
|
|
|
|
2014-06-20 14:58:56 +00:00
|
|
|
MediaEngineFactory::MediaEngineCreateFunction
|
|
|
|
|
MediaEngineFactory::create_function_ = NULL;
|
2014-08-19 14:56:59 +00:00
|
|
|
|
2014-03-03 18:30:11 +00:00
|
|
|
MediaEngineFactory::MediaEngineCreateFunction
|
|
|
|
|
MediaEngineFactory::SetCreateFunction(MediaEngineCreateFunction function) {
|
|
|
|
|
MediaEngineCreateFunction old_function = create_function_;
|
|
|
|
|
create_function_ = function;
|
|
|
|
|
return old_function;
|
2014-08-19 14:56:59 +00:00
|
|
|
}
|
2014-03-03 18:30:11 +00:00
|
|
|
|
2013-07-10 00:45:36 +00:00
|
|
|
}; // namespace cricket
|
|
|
|
|
|
|
|
|
|
#endif // DISABLE_MEDIA_ENGINE_FACTORY
|
2016-03-16 19:07:43 -07:00
|
|
|
|
|
|
|
|
namespace cricket {
|
|
|
|
|
|
|
|
|
|
webrtc::RtpParameters CreateRtpParametersWithOneEncoding() {
|
|
|
|
|
webrtc::RtpParameters parameters;
|
|
|
|
|
webrtc::RtpEncodingParameters encoding;
|
|
|
|
|
parameters.encodings.push_back(encoding);
|
|
|
|
|
return parameters;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-29 17:47:19 +02:00
|
|
|
}; // namespace cricket
|