blob: 8c6ba3d1ede8f33cc7fd00d8a14cc5204cd0dce4 [file] [log] [blame]
ossu7bb87ee2017-01-23 04:56:25 -08001/*
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 09:11:00 -080011#ifndef API_MEDIA_TYPES_H_
12#define API_MEDIA_TYPES_H_
ossu7bb87ee2017-01-23 04:56:25 -080013
14#include <string>
15
Mirko Bonadei66e76792019-04-02 11:33:59 +020016#include "rtc_base/system/rtc_export.h"
17
Patrik Höglundb6b29e02018-06-21 16:58:01 +020018// The cricket and webrtc have separate definitions for what a media type is.
19// They're not compatible. Watch out for this.
20
ossu7bb87ee2017-01-23 04:56:25 -080021namespace cricket {
22
Yves Gerey665174f2018-06-19 15:03:05 +020023enum MediaType { MEDIA_TYPE_AUDIO, MEDIA_TYPE_VIDEO, MEDIA_TYPE_DATA };
ossu7bb87ee2017-01-23 04:56:25 -080024
Niels Möller6dcd4dc2019-08-26 10:45:28 +020025extern const char kMediaTypeAudio[];
26extern const char kMediaTypeVideo[];
27extern const char kMediaTypeData[];
28
Mirko Bonadei66e76792019-04-02 11:33:59 +020029RTC_EXPORT std::string MediaTypeToString(MediaType type);
ossu7bb87ee2017-01-23 04:56:25 -080030
31} // namespace cricket
32
Patrik Höglundb6b29e02018-06-21 16:58:01 +020033namespace webrtc {
34
35enum class MediaType { ANY, AUDIO, VIDEO, DATA };
36
37} // namespace webrtc
38
Steve Anton10542f22019-01-11 09:11:00 -080039#endif // API_MEDIA_TYPES_H_