diff --git a/media/BUILD.gn b/media/BUILD.gn index 5370791930..4ff272f1ef 100644 --- a/media/BUILD.gn +++ b/media/BUILD.gn @@ -143,6 +143,7 @@ rtc_static_library("rtc_audio_video") { "engine/adm_helpers.h", "engine/apm_helpers.cc", "engine/apm_helpers.h", + "engine/constants.cc", "engine/constants.h", "engine/convert_legacy_video_factory.cc", "engine/convert_legacy_video_factory.h", diff --git a/media/engine/constants.cc b/media/engine/constants.cc new file mode 100644 index 0000000000..736685fc79 --- /dev/null +++ b/media/engine/constants.cc @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. + * + * 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. + */ + +#include "media/engine/constants.h" + +namespace cricket { + +const int kMinVideoBitrateBps = 30000; +const int kVideoMtu = 1200; +const int kVideoRtpBufferSize = 65536; +} // namespace cricket diff --git a/media/engine/webrtcvideoengine.cc b/media/engine/webrtcvideoengine.cc index c4ad5a44a3..73093db5ad 100644 --- a/media/engine/webrtcvideoengine.cc +++ b/media/engine/webrtcvideoengine.cc @@ -406,13 +406,6 @@ int GetMinVideoBitrateBps() { } } // namespace -// Constants defined in webrtc/media/engine/constants.h -// TODO(pbos): Move these to a separate constants.cc file. -const int kMinVideoBitrateBps = 30000; - -const int kVideoMtu = 1200; -const int kVideoRtpBufferSize = 65536; - // This constant is really an on/off, lower-level configurable NACK history // duration hasn't been implemented. static const int kNackHistoryMs = 1000;