blob: b2ff08c0c3e0f498caafb155a9280d02deedc8d9 [file] [log] [blame]
ossu7bb87ee2017-01-23 12:56:251/*
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Steve Anton10542f22019-01-11 17:11:0011#ifndef API_MEDIA_TYPES_H_
12#define API_MEDIA_TYPES_H_
ossu7bb87ee2017-01-23 12:56:2513
14#include <string>
15
Mirko Bonadei66e76792019-04-02 09:33:5916#include "rtc_base/system/rtc_export.h"
17
Patrik Höglundb6b29e02018-06-21 14:58:0118// The cricket and webrtc have separate definitions for what a media type is.
Björn Terelius99261af2021-05-12 17:06:4919// They're not compatible. Watch out for this.
Patrik Höglundb6b29e02018-06-21 14:58:0120
ossu7bb87ee2017-01-23 12:56:2521namespace cricket {
22
Philipp Hancke4e8c1152020-10-13 10:43:1523enum MediaType {
Björn Terelius99261af2021-05-12 17:06:4924 MEDIA_TYPE_AUDIO,
25 MEDIA_TYPE_VIDEO,
26 MEDIA_TYPE_DATA,
27 MEDIA_TYPE_UNSUPPORTED
Philipp Hancke4e8c1152020-10-13 10:43:1528};
ossu7bb87ee2017-01-23 12:56:2529
Niels Möller6dcd4dc2019-08-26 08:45:2830extern const char kMediaTypeAudio[];
31extern const char kMediaTypeVideo[];
32extern const char kMediaTypeData[];
33
Mirko Bonadei66e76792019-04-02 09:33:5934RTC_EXPORT std::string MediaTypeToString(MediaType type);
ossu7bb87ee2017-01-23 12:56:2535
36} // namespace cricket
37
Björn Terelius99261af2021-05-12 17:06:4938namespace webrtc {
39
40enum class MediaType { ANY, AUDIO, VIDEO, DATA };
41
42} // namespace webrtc
43
Steve Anton10542f22019-01-11 17:11:0044#endif // API_MEDIA_TYPES_H_