diff --git a/webrtc/media/BUILD.gn b/webrtc/media/BUILD.gn index e3a658c3f8..804bd100fa 100644 --- a/webrtc/media/BUILD.gn +++ b/webrtc/media/BUILD.gn @@ -56,6 +56,7 @@ rtc_static_library("rtc_media") { "base/device.h", "base/hybriddataengine.h", "base/mediachannel.h", + "base/mediacommon.h", "base/mediaconstants.cc", "base/mediaconstants.h", "base/mediaengine.cc", diff --git a/webrtc/media/base/mediacommon.h b/webrtc/media/base/mediacommon.h new file mode 100644 index 0000000000..c760463b8c --- /dev/null +++ b/webrtc/media/base/mediacommon.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2004 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. + */ + +#ifndef WEBRTC_MEDIA_BASE_MEDIACOMMON_H_ +#define WEBRTC_MEDIA_BASE_MEDIACOMMON_H_ + +#include "webrtc/base/stringencode.h" + +namespace cricket { + +enum MediaCapabilities { + AUDIO_RECV = 1 << 0, + AUDIO_SEND = 1 << 1, + VIDEO_RECV = 1 << 2, + VIDEO_SEND = 1 << 3, +}; + +} // namespace cricket + +#endif // WEBRTC_MEDIA_BASE_MEDIACOMMON_H_ diff --git a/webrtc/media/base/mediaengine.h b/webrtc/media/base/mediaengine.h index d1d162370d..866898cbfa 100644 --- a/webrtc/media/base/mediaengine.h +++ b/webrtc/media/base/mediaengine.h @@ -24,6 +24,7 @@ #include "webrtc/base/sigslotrepeater.h" #include "webrtc/media/base/codec.h" #include "webrtc/media/base/mediachannel.h" +#include "webrtc/media/base/mediacommon.h" #include "webrtc/media/base/videocommon.h" #include "webrtc/modules/audio_coding/codecs/audio_decoder_factory.h" diff --git a/webrtc/media/media.gyp b/webrtc/media/media.gyp index af74801ae1..c18e3113a7 100644 --- a/webrtc/media/media.gyp +++ b/webrtc/media/media.gyp @@ -35,6 +35,7 @@ 'base/device.h', 'base/hybriddataengine.h', 'base/mediachannel.h', + 'base/mediacommon.h', 'base/mediaconstants.cc', 'base/mediaconstants.h', 'base/mediaengine.cc',