Ring Daemon 16.0.0
|
#include <video_rtp_session.h>
Public Types | |
using | BaseType = RtpSession |
![]() | |
enum class | Direction { SEND , RECV } |
Additional Inherited Members | |
![]() | |
std::string | getRemoteRtpUri () const |
![]() | |
const std::string | callId_ |
std::string | input_ {} |
MediaType | mediaType_ |
uint16_t | mtu_ |
std::recursive_mutex | mutex_ |
std::function< void(MediaType, bool)> | onSuccessfulSetup_ |
MediaDescription | receive_ |
std::shared_ptr< MediaRecorder > | recorder_ |
MediaDescription | send_ |
std::unique_ptr< SocketPair > | socketPair_ |
const std::string | streamId_ |
Definition at line 63 of file video_rtp_session.h.
Definition at line 66 of file video_rtp_session.h.
jami::video::VideoRtpSession::VideoRtpSession | ( | const std::string & | callId, |
const std::string & | streamId, | ||
const DeviceParams & | localVideoParams, | ||
const std::shared_ptr< MediaRecorder > & | rec | ||
) |
Definition at line 60 of file video_rtp_session.cpp.
jami::video::VideoRtpSession::~VideoRtpSession | ( | ) |
Definition at line 75 of file video_rtp_session.cpp.
References deinitRecorder(), JAMI_LOG, and stop().
void jami::video::VideoRtpSession::bindMixer | ( | VideoMixer * | mixer | ) |
|
overridevirtual |
Implements jami::RtpSession.
Definition at line 843 of file video_rtp_session.cpp.
References jami::emitSignal(), and jami::RtpSession::recorder_.
Referenced by ~VideoRtpSession().
void jami::video::VideoRtpSession::enterConference | ( | Conference & | conference | ) |
Definition at line 562 of file video_rtp_session.cpp.
References jami::emitSignal(), jami::MediaDescription::enabled, exitConference(), JAMI_DBG, jami::RtpSession::mutex_, jami::RtpSession::RECV, restartSender(), and jami::RtpSession::send_.
void jami::video::VideoRtpSession::exitConference | ( | ) |
Definition at line 583 of file video_rtp_session.cpp.
References jami::emitSignal(), JAMI_DBG, jami::RtpSession::mutex_, and jami::RtpSession::streamId_.
Referenced by enterConference().
void jami::video::VideoRtpSession::forceKeyFrame | ( | ) |
Definition at line 495 of file video_rtp_session.cpp.
References jami::emitSignal(), and jami::RtpSession::mutex_.
const VideoBitrateInfo & jami::video::VideoRtpSession::getVideoBitrateInfo | ( | ) |
Definition at line 83 of file video_rtp_session.cpp.
|
inline |
Definition at line 105 of file video_rtp_session.h.
|
inline |
Definition at line 107 of file video_rtp_session.h.
|
inline |
Definition at line 109 of file video_rtp_session.h.
|
inline |
Definition at line 103 of file video_rtp_session.h.
|
overridevirtual |
Implements jami::RtpSession.
Definition at line 820 of file video_rtp_session.cpp.
References jami::emitSignal(), jami::Manager::instance(), jami::Manager::ioContext(), jami::MediaDescription::onHold, jami::RtpSession::recorder_, and jami::RtpSession::send_.
|
overridevirtual |
Implements jami::RtpSession.
Definition at line 223 of file video_rtp_session.cpp.
References jami::emitSignal(), jami::RtpSession::mutex_, jami::RtpSession::SEND, and jami::RtpSession::socketPair_.
Referenced by enterConference(), and setMuted().
Definition at line 864 of file video_rtp_session.cpp.
References jami::emitSignal().
|
overridevirtual |
Implements jami::RtpSession.
Definition at line 445 of file video_rtp_session.cpp.
References jami::emitSignal(), JAMI_DBG, jami::RtpSession::mutex_, jami::MediaDescription::onHold, jami::RtpSession::receive_, jami::RtpSession::recorder_, jami::RtpSession::RECV, restartSender(), jami::RtpSession::SEND, and jami::RtpSession::send_.
Definition at line 105 of file video_rtp_session.cpp.
References jami::emitSignal().
Set video orientation.
Send to the receive thread rotation to apply to the video (counterclockwise)
rotation | Rotation in degrees (counterclockwise) |
Definition at line 508 of file video_rtp_session.cpp.
|
overridevirtual |
Implements jami::RtpSession.
Definition at line 364 of file video_rtp_session.cpp.
References jami::MediaDescription::addr, jami::MediaDescription::crypto, jami::emitSignal(), jami::MediaDescription::enabled, jami::CryptoAttribute::getCryptoSuite(), jami::RtpSession::getRemoteRtpUri(), jami::CryptoAttribute::getSrtpKeyInfo(), JAMI_ERR, jami::RtpSession::mutex_, jami::MediaDescription::onHold, jami::RtpSession::receive_, jami::RtpSession::RECV, jami::MediaDescription::rtcp_addr, jami::RtpSession::SEND, jami::RtpSession::send_, jami::RtpSession::socketPair_, and stop().
|
overridevirtual |
Implements jami::RtpSession.
Definition at line 421 of file video_rtp_session.cpp.
References jami::SystemCodecInfo::DEFAULT_CODEC_QUALITY, jami::SystemCodecInfo::DEFAULT_NO_QUALITY, jami::SystemCodecInfo::DEFAULT_VIDEO_BITRATE, jami::ThreadLoop::join(), jami::RtpSession::mutex_, jami::RtpSession::socketPair_, jami::video::VideoBitrateInfo::videoBitrateCurrent, and jami::video::VideoBitrateInfo::videoQualityCurrent.
Referenced by start(), and ~VideoRtpSession().
void jami::video::VideoRtpSession::unbindMixer | ( | ) |
|
overridevirtual |
Setup internal VideoBitrateInfo structure from media descriptors.
Reimplemented from jami::RtpSession.
Definition at line 91 of file video_rtp_session.cpp.
References jami::MediaDescription::codec, jami::SystemCodecInfo::DEFAULT_MAX_BITRATE, jami::SystemCodecInfo::DEFAULT_VIDEO_BITRATE, jami::emitSignal(), jami::DeviceParams::height, jami::RtpSession::send_, jami::RtpSession::updateMedia(), and jami::DeviceParams::width.