mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-23 01:57:50 +08:00
update webrtc/WebRtcPusher.cpp.
This commit is contained in:
parent
24b532c2ca
commit
8bb41ebcb8
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
|
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
|
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
|
||||||
@ -146,4 +146,8 @@ void WebRtcPusher::onRtcConfigure(RtcConfigure &configure) const {
|
|||||||
WebRtcTransportImp::onRtcConfigure(configure);
|
WebRtcTransportImp::onRtcConfigure(configure);
|
||||||
//这只是推流
|
//这只是推流
|
||||||
configure.audio.direction = configure.video.direction = RtpDirection::recvonly;
|
configure.audio.direction = configure.video.direction = RtpDirection::recvonly;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int WebRtcPusher::getLossRate(MediaSource &sender,mediakit::TrackType type){
|
||||||
|
return WebRtcTransportImp::getLossRate(type);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user