Create RTCP gettter

This commit is contained in:
Aaro Altonen 2020-06-17 07:55:47 +03:00
parent b243d7d47e
commit 06f2891b86
2 changed files with 14 additions and 0 deletions

View File

@ -161,6 +161,15 @@ namespace uvg_rtp {
* Return RTP_INITIALIZED if RTCP has already been initialized */
rtp_error_t create_rtcp(uint16_t src_port, uint16_t dst_port);
/* Get pointer to the RTCP object of the media stream
*
* This object is used to control all RTCP-related functionality
* and RTCP documentation can be found from include/rtcp.hh
*
* Return pointer to RTCP object on success
* Return nullptr if RTCP has been created */
uvg_rtp::rtcp *get_rtcp();
private:
/* Initialize the connection by initializing the socket
* and binding ourselves to specified interface and creating

View File

@ -379,6 +379,11 @@ rtp_error_t uvg_rtp::media_stream::set_dynamic_payload(uint8_t payload)
return RTP_OK;
}
uvg_rtp::rtcp *uvg_rtp::media_stream::get_rtcp()
{
return rtcp_;
}
rtp_error_t uvg_rtp::media_stream::create_rtcp(uint16_t src_port, uint16_t dst_port)
{
rtp_error_t ret;