Ring Daemon 16.0.0
Loading...
Searching...
No Matches
media_const.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2004-2025 Savoir-faire Linux Inc.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#ifndef LIBJAMI_MEDIA_H
18#define LIBJAMI_MEDIA_H
19
20#include "def.h"
21
22namespace libjami {
23
24namespace Media {
25
26// Supported MRL schemes
27namespace VideoProtocolPrefix {
28
29constexpr static const char* NONE = "";
30constexpr static const char* DISPLAY = "display";
31constexpr static const char* FILE = "file";
32constexpr static const char* CAMERA = "camera";
33constexpr static const char* SEPARATOR = "://";
34} // namespace VideoProtocolPrefix
35
36namespace Details {
37
38constexpr static char MEDIA_TYPE_AUDIO[] = "MEDIA_TYPE_AUDIO";
39constexpr static char MEDIA_TYPE_VIDEO[] = "MEDIA_TYPE_VIDEO";
40
41// Renderer and Shm info
42constexpr static char CALL_ID[] = "CALL_ID";
43constexpr static char SHM_PATH[] = "SHM_PATH";
44constexpr static char WIDTH[] = "WIDTH";
45constexpr static char HEIGHT[] = "HEIGHT";
46
47} // namespace Details
48
49namespace MediaAttributeKey {
50constexpr static char MEDIA_TYPE[] = "MEDIA_TYPE"; // string
51constexpr static char ENABLED[] = "ENABLED"; // bool
52constexpr static char MUTED[] = "MUTED"; // bool
53constexpr static char SOURCE[] = "SOURCE"; // string
54constexpr static char LABEL[] = "LABEL"; // string
55constexpr static char ON_HOLD[] = "ON_HOLD"; // bool
56} // namespace MediaAttributeKey
57
58namespace MediaAttributeValue {
59constexpr static auto AUDIO = "MEDIA_TYPE_AUDIO";
60constexpr static auto VIDEO = "MEDIA_TYPE_VIDEO";
61constexpr static auto SRC_TYPE_NONE = "NONE";
62constexpr static auto SRC_TYPE_CAPTURE_DEVICE = "CAPTURE_DEVICE";
63constexpr static auto SRC_TYPE_DISPLAY = "DISPLAY";
64constexpr static auto SRC_TYPE_FILE = "FILE";
65} // namespace MediaAttributeValue
66
67namespace MediaNegotiationStatusEvents {
68constexpr static auto NEGOTIATION_SUCCESS = "NEGOTIATION_SUCCESS";
69constexpr static auto NEGOTIATION_FAIL = "NEGOTIATION_FAIL";
70} // namespace MediaNegotiationStatusEvents
71
72} // namespace Media
73
74} // namespace libjami
75
76#endif
static constexpr char SHM_PATH[]
Definition media_const.h:43
static constexpr char CALL_ID[]
Definition media_const.h:42
static constexpr char WIDTH[]
Definition media_const.h:44
static constexpr char MEDIA_TYPE_AUDIO[]
Definition media_const.h:38
static constexpr char MEDIA_TYPE_VIDEO[]
Definition media_const.h:39
static constexpr char HEIGHT[]
Definition media_const.h:45
static constexpr char ENABLED[]
Definition media_const.h:51
static constexpr char LABEL[]
Definition media_const.h:54
static constexpr char MEDIA_TYPE[]
Definition media_const.h:50
static constexpr char ON_HOLD[]
Definition media_const.h:55
static constexpr char MUTED[]
Definition media_const.h:52
static constexpr char SOURCE[]
Definition media_const.h:53
static constexpr auto SRC_TYPE_FILE
Definition media_const.h:64
static constexpr auto SRC_TYPE_CAPTURE_DEVICE
Definition media_const.h:62
static constexpr auto SRC_TYPE_NONE
Definition media_const.h:61
static constexpr auto SRC_TYPE_DISPLAY
Definition media_const.h:63
static constexpr const char * DISPLAY
Definition media_const.h:30
static constexpr const char * NONE
Definition media_const.h:29
static constexpr const char * CAMERA
Definition media_const.h:32
static constexpr const char * SEPARATOR
Definition media_const.h:33
static constexpr const char * FILE
Definition media_const.h:31