Ring Daemon 16.0.0
|
#include <rtp_session.h>
Public Types | |
enum class | Direction { SEND , RECV } |
Public Member Functions | |
virtual void | deinitRecorder ()=0 |
std::shared_ptr< SystemCodecInfo > | getCodec () const |
const std::string & | getInput () const |
MediaType | getMediaType () const |
const dhtnet::IpAddr & | getRecvAddr () const |
const dhtnet::IpAddr & | getSendAddr () const |
virtual void | initRecorder ()=0 |
virtual void | restartSender ()=0 |
RtpSession (const std::string &callId, const std::string &streamId, MediaType type) | |
void | setMediaSource (const std::string &resource) |
void | setMtu (uint16_t mtu) |
virtual void | setMuted (bool mute, Direction dir=Direction::SEND)=0 |
void | setSuccessfulSetupCb (const std::function< void(MediaType, bool)> &cb) |
virtual void | start (std::unique_ptr< dhtnet::IceSocket > rtp_sock, std::unique_ptr< dhtnet::IceSocket > rtcp_sock)=0 |
virtual void | stop ()=0 |
std::string | streamId () const |
virtual void | updateMedia (const MediaDescription &send, const MediaDescription &receive) |
virtual | ~RtpSession () |
Protected Member Functions | |
std::string | getRemoteRtpUri () const |
Protected Attributes | |
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 32 of file rtp_session.h.
|
strong |
Enumerator | |
---|---|
SEND | |
RECV |
Definition at line 36 of file rtp_session.h.
|
inline |
Definition at line 39 of file rtp_session.h.
|
inlinevirtual |
Definition at line 44 of file rtp_session.h.
Implemented in jami::AudioRtpSession, and jami::video::VideoRtpSession.
|
inline |
Definition at line 69 of file rtp_session.h.
References jami::MediaDescription::codec, and send_.
|
inline |
Definition at line 50 of file rtp_session.h.
References input_.
|
inline |
Definition at line 51 of file rtp_session.h.
References mediaType_.
|
inline |
Definition at line 71 of file rtp_session.h.
References jami::MediaDescription::addr, and receive_.
|
inlineprotected |
Definition at line 88 of file rtp_session.h.
References jami::MediaDescription::addr, and send_.
Referenced by jami::AudioRtpSession::start(), and jami::video::VideoRtpSession::start().
|
inline |
Definition at line 70 of file rtp_session.h.
References jami::MediaDescription::addr, and send_.
Implemented in jami::AudioRtpSession, and jami::video::VideoRtpSession.
Implemented in jami::AudioRtpSession, and jami::video::VideoRtpSession.
Definition at line 49 of file rtp_session.h.
References jami::emitSignal(), and input_.
Definition at line 60 of file rtp_session.h.
References jami::emitSignal(), and mtu_.
|
pure virtual |
Implemented in jami::video::VideoRtpSession, and jami::AudioRtpSession.
|
inline |
Definition at line 62 of file rtp_session.h.
References jami::emitSignal(), and onSuccessfulSetup_.
|
pure virtual |
Implemented in jami::AudioRtpSession, and jami::video::VideoRtpSession.
Implemented in jami::AudioRtpSession, and jami::video::VideoRtpSession.
|
inline |
Definition at line 73 of file rtp_session.h.
References streamId_.
|
inlinevirtual |
Reimplemented in jami::video::VideoRtpSession.
Definition at line 54 of file rtp_session.h.
References jami::emitSignal(), receive_, and send_.
Referenced by jami::video::VideoRtpSession::updateMedia().
|
protected |
Definition at line 77 of file rtp_session.h.
|
protected |
Definition at line 81 of file rtp_session.h.
Referenced by getInput(), and setMediaSource().
|
protected |
Definition at line 79 of file rtp_session.h.
Referenced by getMediaType().
|
protected |
Definition at line 84 of file rtp_session.h.
Referenced by setMtu().
|
protected |
Definition at line 76 of file rtp_session.h.
Referenced by jami::video::VideoRtpSession::enterConference(), jami::video::VideoRtpSession::exitConference(), jami::video::VideoRtpSession::forceKeyFrame(), jami::AudioRtpSession::restartSender(), jami::video::VideoRtpSession::restartSender(), jami::video::VideoRtpSession::setMuted(), jami::AudioRtpSession::start(), jami::video::VideoRtpSession::start(), jami::AudioRtpSession::stop(), and jami::video::VideoRtpSession::stop().
Definition at line 86 of file rtp_session.h.
Referenced by setSuccessfulSetupCb().
|
protected |
Definition at line 83 of file rtp_session.h.
Referenced by getRecvAddr(), jami::video::VideoRtpSession::setMuted(), jami::AudioRtpSession::start(), jami::video::VideoRtpSession::start(), and updateMedia().
|
protected |
Definition at line 85 of file rtp_session.h.
Referenced by jami::video::VideoRtpSession::deinitRecorder(), jami::video::VideoRtpSession::initRecorder(), and jami::video::VideoRtpSession::setMuted().
|
protected |
Definition at line 82 of file rtp_session.h.
Referenced by jami::video::VideoRtpSession::enterConference(), getCodec(), getRemoteRtpUri(), getSendAddr(), jami::video::VideoRtpSession::initRecorder(), jami::video::VideoRtpSession::setMuted(), jami::AudioRtpSession::start(), jami::video::VideoRtpSession::start(), updateMedia(), and jami::video::VideoRtpSession::updateMedia().
|
protected |
Definition at line 80 of file rtp_session.h.
Referenced by jami::AudioRtpSession::restartSender(), jami::video::VideoRtpSession::restartSender(), jami::AudioRtpSession::start(), jami::video::VideoRtpSession::start(), jami::AudioRtpSession::stop(), and jami::video::VideoRtpSession::stop().
|
protected |
Definition at line 78 of file rtp_session.h.
Referenced by jami::video::VideoRtpSession::exitConference(), streamId(), and jami::AudioRtpSession::~AudioRtpSession().