完善播放器接口

This commit is contained in:
xiongziliang
2018-10-26 11:03:53 +08:00
parent bdc1f0cd15
commit e816c56f2e
3 changed files with 14 additions and 5 deletions

View File

@@ -684,8 +684,8 @@ void RtspPlayer::onRecvRTP_l(const RtpPacket::Ptr &rtppt, int trackidx){
onRecvRTP_l(rtppt,_aTrackInfo[trackidx]);
}
float RtspPlayer::getRtpLossRate(int iTrackType) const{
int iTrackIdx = getTrackIndexByTrackType((TrackType)iTrackType);
float RtspPlayer::getRtpLossRate(TrackType type) const{
int iTrackIdx = getTrackIndexByTrackType(type);
if(iTrackIdx == -1){
uint64_t totalRecv = 0;
uint64_t totalSend = 0;