25namespace ProtocolKeys {
28constexpr static const char*
LAYOUT =
"layout";
31constexpr static const char*
HANDSTATE =
"handState";
32constexpr static const char*
ACTIVEPART =
"activeParticipant";
33constexpr static const char*
MUTEPART =
"muteParticipant";
34constexpr static const char*
MUTESTATE =
"muteState";
35constexpr static const char*
HANGUPPART =
"hangupParticipant";
37constexpr static const char*
DEVICES =
"devices";
38constexpr static const char*
MEDIAS =
"medias";
39constexpr static const char*
RAISEHAND =
"raiseHand";
40constexpr static const char*
HANGUP =
"hangup";
41constexpr static const char*
ACTIVE =
"active";
42constexpr static const char*
MUTEAUDIO =
"muteAudio";
44constexpr static const char*
MUTEVIDEO =
"muteVideo";
67ConfProtocolParser::parseV0()
69 if (!checkAuthorization_ || !raiseHandUri_ || !setLayout_ || !setActiveParticipant_ || !muteParticipant_
70 || !kickParticipant_) {
71 JAMI_ERR() <<
"Missing methods for ConfProtocolParser";
81 raiseHandUri_(uri, state);
84 raiseHandUri_(uri, state);
88 JAMI_WARNING(
"Received conference order from a non-moderator ({})", peerId_);
107ConfProtocolParser::parseV1()
109 if (!checkAuthorization_ || !setLayout_ || !raiseHand_ || !hangupParticipant_ || !muteStreamAudio_
110 || !setActiveStream_) {
111 JAMI_ERR() <<
"Missing methods for ConfProtocolParser";
116 for (Json::Value::const_iterator
itr = data_.begin();
itr != data_.end();
itr++) {
117 auto key =
itr.key();
121 setLayout_(
itr->asInt());
131 auto deviceId =
itrd.key().asString();
void parse()
Parse the datas, this will call the methods injected if necessary.
#define JAMI_WARNING(formatstr,...)
std::string asString(bytes const &_b)
Converts byte array to a string containing the same (binary) data.
static constexpr const char * MUTEVIDEO
static constexpr const char * ACTIVE
static constexpr const char * HANGUP
static constexpr const char * VOICEACTIVITY
static constexpr const char * HANDRAISED
static constexpr const char * MUTEPART
static constexpr const char * DEVICES
static constexpr const char * HANGUPPART
static constexpr const char * ACTIVEPART
static constexpr const char * PROTOVERSION
static constexpr const char * MUTESTATE
static constexpr const char * RAISEHAND
static constexpr const char * LAYOUT
static constexpr const char * MUTEAUDIO
static constexpr const char * MEDIAS
static constexpr const char * HANDSTATE
std::string streamId(const std::string &callId, std::string_view label)
static constexpr int version
static constexpr const char TRUE_STR[]
void emitSignal(Args... args)