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

Modify the play stream to specify encoding format.

This commit is contained in:
chundonglinlin 2025-02-22 23:23:10 +08:00
parent 8953dbfba1
commit c2e31d1578
3 changed files with 57 additions and 17 deletions

View file

@ -65,6 +65,8 @@ private:
#if defined(SRS_FFMPEG_FIT)
SrsRtcRtpBuilder* rtp_builder_;
#endif
private:
bool codec_switched_;
public:
SrsFrameToRtcBridge(SrsSharedPtr<SrsRtcSource> source);
virtual ~SrsFrameToRtcBridge();
@ -74,6 +76,7 @@ public:
virtual void on_unpublish();
virtual srs_error_t on_frame(SrsSharedPtrMessage* frame);
srs_error_t on_rtp(SrsRtpPacket* pkt);
srs_error_t update_codec(SrsVideoCodecId id);
};
#endif