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

Refine source, pass-by RTC publisher for player

This commit is contained in:
winlin 2020-05-03 07:51:01 +08:00
parent 20b4984af4
commit 1688d53f7d
3 changed files with 12 additions and 13 deletions

View file

@ -551,7 +551,7 @@ private:
srs_utime_t die_at;
#ifdef SRS_RTC
private:
SrsRtcPublisher* rtc_publisher;
SrsRtcPublisher* rtc_publisher_;
#endif
public:
SrsSource();
@ -621,12 +621,10 @@ public:
virtual std::string get_curr_origin();
#ifdef SRS_RTC
public:
// Get the cached meta, as such the sps/pps.
// For RTC, we need to package SPS/PPS(in cached meta) before each IDR.
SrsMetaCache* cached_meta();
// Request keyframe for new client.
// TODO: FIXME: Maybe we could cache the keyframe.
// TODO: FIXME: Maybe we should only response for the new clients.
void request_keyframe();
// Get and set the publisher, passed to consumer to process requests such as PLI.
SrsRtcPublisher* rtc_publisher();
void set_rtc_publisher(SrsRtcPublisher* v);
// When got RTC audio message, which is encoded in opus.
// TODO: FIXME: Merge with on_audio.