blob: 93ce1a231ddd1b2096aed648812c9135f2fa5451 [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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef API_MEDIATYPES_H_
12#define API_MEDIATYPES_H_
ossu7bb87ee2017-01-23 04:56:25 -080013
14#include <string>
15
16namespace cricket {
17
18enum MediaType {
19 MEDIA_TYPE_AUDIO,
20 MEDIA_TYPE_VIDEO,
21 MEDIA_TYPE_DATA
22};
23
24std::string MediaTypeToString(MediaType type);
deadbeefe814a0d2017-02-25 18:15:09 -080025// Aborts on invalid string. Only expected to be used on strings that are
26// guaranteed to be valid, such as MediaStreamTrackInterface::kind().
27MediaType MediaTypeFromString(const std::string& type_str);
ossu7bb87ee2017-01-23 04:56:25 -080028
29} // namespace cricket
30
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020031#endif // API_MEDIATYPES_H_