mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Support NACK for RTC player
This commit is contained in:
parent
d462b750fb
commit
4d33070c59
13 changed files with 274 additions and 69 deletions
|
@ -350,6 +350,8 @@
|
|||
#define ERROR_RTC_API_BODY 5019
|
||||
#define ERROR_RTC_SOURCE_BUSY 5020
|
||||
#define ERROR_RTC_DISABLED 5021
|
||||
#define ERROR_RTC_NO_SESSION 5022
|
||||
#define ERROR_RTC_INVALID_PARAMS 5023
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
// GB28181 API error.
|
||||
|
|
|
@ -228,12 +228,12 @@ uint16_t SrsRtpHeader::get_sequence() const
|
|||
return sequence;
|
||||
}
|
||||
|
||||
void SrsRtpHeader::set_timestamp(int64_t v)
|
||||
void SrsRtpHeader::set_timestamp(uint32_t v)
|
||||
{
|
||||
timestamp = (uint32_t)v;
|
||||
timestamp = v;
|
||||
}
|
||||
|
||||
int64_t SrsRtpHeader::get_timestamp() const
|
||||
uint32_t SrsRtpHeader::get_timestamp() const
|
||||
{
|
||||
return timestamp;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ private:
|
|||
bool marker;
|
||||
uint8_t payload_type;
|
||||
uint16_t sequence;
|
||||
int32_t timestamp;
|
||||
uint32_t timestamp;
|
||||
uint32_t ssrc;
|
||||
uint32_t csrc[15];
|
||||
uint16_t extension_length;
|
||||
|
@ -84,8 +84,8 @@ public:
|
|||
uint8_t get_payload_type() const;
|
||||
void set_sequence(uint16_t v);
|
||||
uint16_t get_sequence() const;
|
||||
void set_timestamp(int64_t v);
|
||||
int64_t get_timestamp() const;
|
||||
void set_timestamp(uint32_t v);
|
||||
uint32_t get_timestamp() const;
|
||||
void set_ssrc(uint32_t v);
|
||||
uint32_t get_ssrc() const;
|
||||
void set_padding(bool v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue