Add getter for RTP payload format

This commit is contained in:
Aaro Altonen 2020-08-02 10:50:12 +03:00
parent 157b21a05c
commit 3312a0b559
2 changed files with 10 additions and 4 deletions

View File

@ -11,10 +11,11 @@ namespace uvg_rtp {
rtp(rtp_format_t fmt);
~rtp();
uint32_t get_ssrc();
uint16_t get_sequence();
uint32_t get_clock_rate();
size_t get_payload_size();
uint32_t get_ssrc();
uint16_t get_sequence();
uint32_t get_clock_rate();
size_t get_payload_size();
rtp_format_t get_payload();
void inc_sent_pkts();
void inc_sequence();

View File

@ -132,3 +132,8 @@ size_t uvg_rtp::rtp::get_payload_size()
{
return payload_size_;
}
rtp_format_t uvg_rtp::rtp::get_payload()
{
return (rtp_format_t)fmt_;
}