1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refactor RTC publisher queue, covert FU-A to RAW.

This commit is contained in:
winlin 2020-05-03 17:41:00 +08:00
parent a812183144
commit 47ed16eda1
4 changed files with 139 additions and 150 deletions

View file

@ -58,6 +58,7 @@ class SrsRtpVideoQueue;
class SrsRtpPacket2;
class ISrsCodec;
class SrsRtpNackForReceiver;
class SrsRtpIncommingVideoFrame;
const uint8_t kSR = 200;
const uint8_t kRR = 201;
@ -287,11 +288,9 @@ public:
virtual void on_before_decode_payload(SrsRtpPacket2* pkt, SrsBuffer* buf, ISrsCodec** ppayload);
private:
srs_error_t on_audio(SrsRtpPacket2* pkt);
srs_error_t collect_audio_frames();
srs_error_t do_collect_audio_frame(SrsRtpPacket2* packet);
srs_error_t collect_audio_frame(SrsRtpPacket2* pkt);
srs_error_t on_video(SrsRtpPacket2* pkt);
srs_error_t collect_video_frames();
srs_error_t do_collect_video_frame(std::vector<SrsRtpPacket2*>& packets);
srs_error_t collect_video_frame(SrsRtpPacket2* pkt);
public:
void request_keyframe();
// interface ISrsHourGlass