24namespace ProtocolKeys {
27constexpr static const char*
LAYOUT =
"layout";
30constexpr static const char*
HANDSTATE =
"handState";
31constexpr static const char*
ACTIVEPART =
"activeParticipant";
32constexpr static const char*
MUTEPART =
"muteParticipant";
33constexpr static const char*
MUTESTATE =
"muteState";
34constexpr static const char*
HANGUPPART =
"hangupParticipant";
36constexpr static const char*
DEVICES =
"devices";
37constexpr static const char*
MEDIAS =
"medias";
38constexpr static const char*
RAISEHAND =
"raiseHand";
39constexpr static const char*
HANGUP =
"hangup";
40constexpr static const char*
ACTIVE =
"active";
41constexpr static const char*
MUTEAUDIO =
"muteAudio";
43constexpr static const char*
MUTEVIDEO =
"muteVideo";
66ConfProtocolParser::parseV0()
68 if (!checkAuthorization_ || !raiseHandUri_ || !setLayout_ || !setActiveParticipant_
69 || !muteParticipant_ || !kickParticipant_) {
70 JAMI_ERR() <<
"Missing methods for ConfProtocolParser";
80 raiseHandUri_(uri, state);
83 raiseHandUri_(uri, state);
87 JAMI_WARNING(
"Received conference order from a non-moderator ({})", peerId_);
106ConfProtocolParser::parseV1()
108 if (!checkAuthorization_ || !setLayout_ || !raiseHand_ || !hangupParticipant_
109 || !muteStreamAudio_ || !setActiveStream_) {
110 JAMI_ERR() <<
"Missing methods for ConfProtocolParser";
115 for (Json::Value::const_iterator
itr = data_.begin();
itr != data_.end();
itr++) {
116 auto key =
itr.key();
120 setLayout_(
itr->asInt());
130 auto deviceId =
itrd.key().asString();
148 voiceActivity_(streamId,
153 && !muteStreamVideo_) {
167 setActiveStream_(streamId,
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)