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

RTC: Cache the buffer for player

This commit is contained in:
winlin 2021-02-25 17:56:15 +08:00
parent e7529ce9dc
commit edb8a0f497
2 changed files with 15 additions and 10 deletions

View file

@ -431,6 +431,9 @@ private:
SrsRtcConnectionStateType state_;
ISrsRtcTransport* transport_;
SrsHourGlass* timer_;
private:
iovec* cache_iov_;
SrsBuffer* cache_buffer_;
private:
// key: stream id
std::map<std::string, SrsRtcPlayStream*> players_;