mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-15 04:25:58 +08:00
rtsp拉流、rtp单端口推流新增支持获取丢包率: #1877
This commit is contained in:
@@ -219,7 +219,7 @@ bool MediaSource::close(bool force) {
|
||||
return listener->close(*this,force);
|
||||
}
|
||||
|
||||
int MediaSource::getLossRate(mediakit::TrackType type) {
|
||||
float MediaSource::getLossRate(mediakit::TrackType type) {
|
||||
auto listener = _listener.lock();
|
||||
if (!listener) {
|
||||
return -1;
|
||||
@@ -720,7 +720,7 @@ void MediaSourceEventInterceptor::onRegist(MediaSource &sender, bool regist) {
|
||||
}
|
||||
}
|
||||
|
||||
int MediaSourceEventInterceptor::getLossRate(MediaSource &sender, TrackType type){
|
||||
float MediaSourceEventInterceptor::getLossRate(MediaSource &sender, TrackType type){
|
||||
auto listener = _listener.lock();
|
||||
if (listener) {
|
||||
return listener->getLossRate(sender, type);
|
||||
|
||||
Reference in New Issue
Block a user