完善hls播放器个数计数

This commit is contained in:
xiongziliang
2019-12-28 16:57:35 +08:00
parent f93b32740f
commit e72fa359b6
7 changed files with 15 additions and 4 deletions

View File

@@ -773,7 +773,7 @@ void RtspSession::handleReq_Play(const Parser &parser) {
auto iStartTime = 1000 * atof(strStart.data());
InfoP(this) << "rtsp seekTo(ms):" << iStartTime;
useBuf = !pMediaSrc->seekTo(iStartTime);
}else if(pMediaSrc->readerCount() == 0){
}else if(pMediaSrc->totalReaderCount() == 0){
//第一个消费者
pMediaSrc->seekTo(0);
}