mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine FastTimer to fixed interval. 4.0.101
This commit is contained in:
parent
0c0b467917
commit
b823dcdfd7
12 changed files with 155 additions and 131 deletions
|
@ -201,6 +201,10 @@ private:
|
|||
bool is_delivering_packets_;
|
||||
// Notify stream event to event handler
|
||||
std::vector<ISrsRtcStreamEventHandler*> event_handlers_;
|
||||
private:
|
||||
// The PLI for RTC2RTMP.
|
||||
srs_utime_t pli_for_rtmp_;
|
||||
srs_utime_t pli_elapsed_;
|
||||
public:
|
||||
SrsRtcStream();
|
||||
virtual ~SrsRtcStream();
|
||||
|
@ -252,7 +256,7 @@ public:
|
|||
std::vector<SrsRtcTrackDescription*> get_track_desc(std::string type, std::string media_type);
|
||||
// interface ISrsFastTimer
|
||||
private:
|
||||
srs_error_t on_timer(srs_utime_t interval, srs_utime_t tick);
|
||||
srs_error_t on_timer(srs_utime_t interval);
|
||||
};
|
||||
|
||||
// A helper class, to release the packet to cache.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue