mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
parent
e3cad7f8fa
commit
47b8435d7c
@ -191,13 +191,13 @@ void PlayerProxy::setDirectProxy() {
|
||||
if (dynamic_pointer_cast<RtspPlayer>(_delegate)) {
|
||||
// rtsp拉流
|
||||
GET_CONFIG(bool, directProxy, Rtsp::kDirectProxy);
|
||||
if (directProxy) {
|
||||
if (directProxy && _option.enable_rtsp) {
|
||||
mediaSource = std::make_shared<RtspMediaSource>(_tuple);
|
||||
}
|
||||
} else if (dynamic_pointer_cast<RtmpPlayer>(_delegate)) {
|
||||
// rtmp拉流
|
||||
GET_CONFIG(bool, directProxy, Rtmp::kDirectProxy);
|
||||
if (directProxy) {
|
||||
if (directProxy && _option.enable_rtmp) {
|
||||
mediaSource = std::make_shared<RtmpMediaSource>(_tuple);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user