Ring Daemon
Loading...
Searching...
No Matches
media_const.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2004-2026 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
18#ifndef LIBJAMI_MEDIA_H
19#define LIBJAMI_MEDIA_H
20
21namespace libjami {
22
23namespace Media {
24
25// Supported MRL schemes
26namespace VideoProtocolPrefix {
27
28constexpr static const char* NONE = "";
29constexpr static const char* DISPLAY = "display";
30constexpr static const char* FILE = "file";
31constexpr static const char* CAMERA = "camera";
32constexpr static const char* SEPARATOR = "://";
33} // namespace VideoProtocolPrefix
34
35namespace Details {
36
37constexpr static char MEDIA_TYPE_AUDIO[] = "MEDIA_TYPE_AUDIO";
38constexpr static char MEDIA_TYPE_VIDEO[] = "MEDIA_TYPE_VIDEO";
39
40// Renderer and Shm info
41constexpr static char CALL_ID[] = "CALL_ID";
42constexpr static char SHM_PATH[] = "SHM_PATH";
43constexpr static char WIDTH[] = "WIDTH";
44constexpr static char HEIGHT[] = "HEIGHT";
45
46} // namespace Details
47
48namespace MediaAttributeKey {
49constexpr static char MEDIA_TYPE[] = "MEDIA_TYPE"; // string
50constexpr static char ENABLED[] = "ENABLED"; // bool
51constexpr static char MUTED[] = "MUTED"; // bool
52constexpr static char SOURCE[] = "SOURCE"; // string
53constexpr static char LABEL[] = "LABEL"; // string
54constexpr static char HOLD[] = "HOLD"; // bool
55} // namespace MediaAttributeKey
56
57namespace MediaAttributeValue {
58constexpr static auto AUDIO = "MEDIA_TYPE_AUDIO";
59constexpr static auto VIDEO = "MEDIA_TYPE_VIDEO";
60constexpr static auto SRC_TYPE_NONE = "NONE";
61constexpr static auto SRC_TYPE_CAPTURE_DEVICE = "CAPTURE_DEVICE";
62constexpr static auto SRC_TYPE_DISPLAY = "DISPLAY";
63constexpr static auto SRC_TYPE_FILE = "FILE";
64} // namespace MediaAttributeValue
65
66namespace MediaNegotiationStatusEvents {
67constexpr static auto NEGOTIATION_SUCCESS = "NEGOTIATION_SUCCESS";
68constexpr static auto NEGOTIATION_FAIL = "NEGOTIATION_FAIL";
69} // namespace MediaNegotiationStatusEvents
70
71} // namespace Media
72
73} // namespace libjami
74
75#endif
static constexpr char SHM_PATH[]
Definition media_const.h:42
static constexpr char CALL_ID[]
Definition media_const.h:41
static constexpr char WIDTH[]
Definition media_const.h:43
static constexpr char MEDIA_TYPE_AUDIO[]
Definition media_const.h:37
static constexpr char MEDIA_TYPE_VIDEO[]
Definition media_const.h:38
static constexpr char HEIGHT[]
Definition media_const.h:44
static constexpr char ENABLED[]
Definition media_const.h:50
static constexpr char LABEL[]
Definition media_const.h:53
static constexpr char MEDIA_TYPE[]
Definition media_const.h:49
static constexpr char HOLD[]
Definition media_const.h:54
static constexpr char MUTED[]
Definition media_const.h:51
static constexpr char SOURCE[]
Definition media_const.h:52
static constexpr auto SRC_TYPE_FILE
Definition media_const.h:63
static constexpr auto SRC_TYPE_CAPTURE_DEVICE
Definition media_const.h:61
static constexpr auto SRC_TYPE_NONE
Definition media_const.h:60
static constexpr auto SRC_TYPE_DISPLAY
Definition media_const.h:62
static constexpr const char * DISPLAY
Definition media_const.h:29
static constexpr const char * NONE
Definition media_const.h:28
static constexpr const char * CAMERA
Definition media_const.h:31
static constexpr const char * SEPARATOR
Definition media_const.h:32
static constexpr const char * FILE
Definition media_const.h:30