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