Ring Daemon 16.0.0
|
#include <media_attribute.h>
Public Member Functions | |
bool | hasValidVideo () |
MediaAttribute (const libjami::MediaMap &mediaMap, bool secure) | |
MediaAttribute (MediaType type=MediaType::MEDIA_NONE, bool muted=false, bool secure=true, bool enabled=false, std::string_view source={}, std::string_view label={}, bool onHold=false) | |
std::string | toString (bool full=false) const |
Static Public Member Functions | |
static char const * | boolToString (bool val) |
static std::vector< MediaAttribute > | buildMediaAttributesList (const std::vector< libjami::MediaMap > &mediaList, bool secure) |
static std::pair< bool, bool > | getBoolValue (const libjami::MediaMap &mediaMap, const std::string &key) |
static std::pair< bool, MediaType > | getMediaType (const libjami::MediaMap &map) |
static std::pair< bool, std::string > | getStringValue (const libjami::MediaMap &mediaMap, const std::string &key) |
static bool | hasMediaType (const std::vector< MediaAttribute > &mediaList, MediaType type) |
static std::vector< libjami::MediaMap > | mediaAttributesToMediaMaps (std::vector< MediaAttribute > mediaAttrList) |
static char const * | mediaTypeToString (MediaType type) |
static MediaType | stringToMediaType (const std::string &mediaType) |
static libjami::MediaMap | toMediaMap (const MediaAttribute &mediaAttr) |
Public Attributes | |
bool | enabled_ {false} |
std::string | label_ {} |
bool | muted_ {false} |
bool | onHold_ {false} |
bool | secure_ {true} |
std::string | sourceUri_ {} |
MediaType | type_ {MediaType::MEDIA_NONE} |
Definition at line 28 of file media_attribute.h.
|
inline |
Definition at line 31 of file media_attribute.h.
jami::MediaAttribute::MediaAttribute | ( | const libjami::MediaMap & | mediaMap, |
bool | secure | ||
) |
Definition at line 25 of file media_attribute.cpp.
References jami::emitSignal(), libjami::Media::MediaAttributeKey::ENABLED, enabled_, getBoolValue(), getMediaType(), getStringValue(), libjami::Media::MediaAttributeKey::LABEL, label_, libjami::Media::MediaAttributeKey::MUTED, muted_, libjami::Media::MediaAttributeKey::ON_HOLD, onHold_, secure_, libjami::Media::MediaAttributeKey::SOURCE, sourceUri_, and type_.
Definition at line 127 of file media_attribute.cpp.
References jami::emitSignal(), jami::FALSE_STR, and jami::TRUE_STR.
Referenced by toMediaMap().
|
static |
Definition at line 58 of file media_attribute.cpp.
References jami::emitSignal().
Referenced by jami::Conference::handleMediaChangeRequest(), jami::SIPAccount::newOutgoingCall(), jami::Conference::requestMediaChange(), and jami::SIPCall::SIPCall().
|
static |
Definition at line 98 of file media_attribute.cpp.
References jami::emitSignal(), jami::FALSE_STR, JAMI_ERR, and jami::TRUE_STR.
Referenced by MediaAttribute().
|
static |
Definition at line 81 of file media_attribute.cpp.
References jami::emitSignal(), JAMI_ERR, jami::MEDIA_NONE, libjami::Media::MediaAttributeKey::MEDIA_TYPE, and stringToMediaType().
Referenced by MediaAttribute().
|
static |
Definition at line 116 of file media_attribute.cpp.
References jami::emitSignal().
Referenced by MediaAttribute().
|
static |
Definition at line 145 of file media_attribute.cpp.
References jami::emitSignal().
Referenced by jami::Conference::addSubCall(), and jami::Conference::handleMediaChangeRequest().
bool jami::MediaAttribute::hasValidVideo | ( | ) |
Definition at line 204 of file media_attribute.cpp.
References enabled_, jami::MEDIA_VIDEO, muted_, onHold_, and type_.
|
static |
Definition at line 170 of file media_attribute.cpp.
References jami::emitSignal(), and toMediaMap().
Referenced by jami::ConversationModule::call(), jami::Conference::currentMediaList(), jami::JamiAccount::newOutgoingCall(), jami::SIPAccount::newOutgoingCall(), jami::Manager::ManagerPimpl::processIncomingCall(), jami::transaction_request_cb(), and jami::transferCall().
Definition at line 133 of file media_attribute.cpp.
References libjami::Media::MediaAttributeValue::AUDIO, jami::MEDIA_AUDIO, jami::MEDIA_NONE, jami::MEDIA_VIDEO, libjami::Media::MediaAttributeValue::SRC_TYPE_NONE, and libjami::Media::MediaAttributeValue::VIDEO.
Referenced by toMediaMap().
Definition at line 71 of file media_attribute.cpp.
References libjami::Media::MediaAttributeValue::AUDIO, jami::MEDIA_AUDIO, jami::MEDIA_NONE, jami::MEDIA_VIDEO, and libjami::Media::MediaAttributeValue::VIDEO.
Referenced by getMediaType().
|
static |
Definition at line 154 of file media_attribute.cpp.
References boolToString(), jami::emitSignal(), libjami::Media::MediaAttributeKey::ENABLED, libjami::Media::MediaAttributeKey::LABEL, libjami::Media::MediaAttributeKey::MEDIA_TYPE, mediaTypeToString(), libjami::Media::MediaAttributeKey::MUTED, libjami::Media::MediaAttributeKey::ON_HOLD, and libjami::Media::MediaAttributeKey::SOURCE.
Referenced by jami::Conference::handleMediaChangeRequest(), and mediaAttributesToMediaMaps().
Definition at line 182 of file media_attribute.cpp.
References jami::emitSignal(), enabled_, label_, jami::MEDIA_AUDIO, muted_, secure_, sourceUri_, and type_.
Referenced by jami::SIPCall::requestMediaChange().
Definition at line 83 of file media_attribute.h.
Referenced by hasValidVideo(), MediaAttribute(), jami::SIPCall::onReceiveOfferIn200OK(), and toString().
std::string jami::MediaAttribute::label_ {} |
Definition at line 85 of file media_attribute.h.
Referenced by MediaAttribute(), jami::SIPCall::requestMediaChange(), and toString().
Definition at line 81 of file media_attribute.h.
Referenced by hasValidVideo(), MediaAttribute(), jami::SIPCall::muteMedia(), and toString().
Definition at line 86 of file media_attribute.h.
Referenced by hasValidVideo(), and MediaAttribute().
Definition at line 82 of file media_attribute.h.
Referenced by MediaAttribute(), and toString().
std::string jami::MediaAttribute::sourceUri_ {} |
Definition at line 84 of file media_attribute.h.
Referenced by MediaAttribute(), and toString().
MediaType jami::MediaAttribute::type_ {MediaType::MEDIA_NONE} |
Definition at line 80 of file media_attribute.h.
Referenced by hasValidVideo(), MediaAttribute(), jami::SIPCall::muteMedia(), jami::SIPCall::onReceiveOfferIn200OK(), jami::SIPCall::requestMediaChange(), and toString().