mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1998, refine PT for firefox, support RED
This commit is contained in:
parent
f47329a94c
commit
140f8b0fce
3 changed files with 28 additions and 14 deletions
|
@ -280,6 +280,9 @@ class SrsCodecPayload
|
|||
public:
|
||||
std::string type_;
|
||||
uint8_t pt_;
|
||||
// for publish, equals to PT of itself;
|
||||
// for subscribe, is the PT of publisher;
|
||||
uint8_t pt_of_publisher_;
|
||||
std::string name_;
|
||||
int sample_;
|
||||
|
||||
|
@ -562,7 +565,6 @@ public:
|
|||
bool set_track_status(bool active);
|
||||
bool get_track_status();
|
||||
std::string get_track_id();
|
||||
int get_track_media_pt();
|
||||
public:
|
||||
virtual srs_error_t on_rtp(SrsRtpPacket2* pkt, SrsRtcPlayStreamStatistic& info) = 0;
|
||||
virtual srs_error_t on_rtcp(SrsRtpPacket2* pkt) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue