mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-19 06:42:21 +08:00
新增获取推流推流代理列表和ffmpeg源列表接口 (#3992)
This commit is contained in:
@@ -19,7 +19,6 @@ PusherProxy::PusherProxy(const MediaSource::Ptr &src, int retry_count, const Eve
|
||||
: MediaPusher(src, poller) {
|
||||
_retry_count = retry_count;
|
||||
_on_close = [](const SockException &) {};
|
||||
_weak_src = src;
|
||||
_live_secs = 0;
|
||||
_live_status = 1;
|
||||
_republish_count = 0;
|
||||
@@ -52,7 +51,7 @@ void PusherProxy::publish(const string &dst_url) {
|
||||
strong_self->_on_publish = nullptr;
|
||||
}
|
||||
|
||||
auto src = strong_self->_weak_src.lock();
|
||||
auto src = strong_self->getSrc();
|
||||
if (!err) {
|
||||
// 推流成功 [AUTO-TRANSLATED:28ce6e56]
|
||||
// Stream successfully pushed
|
||||
@@ -87,7 +86,7 @@ void PusherProxy::publish(const string &dst_url) {
|
||||
TraceL << " live secs " << strong_self->_live_secs;
|
||||
}
|
||||
|
||||
auto src = strong_self->_weak_src.lock();
|
||||
auto src = strong_self->getSrc();
|
||||
// 推流异常中断,延时重试播放 [AUTO-TRANSLATED:e69e5a05]
|
||||
// Stream abnormally interrupted, retry playing with delay
|
||||
if (src && (*failed_cnt < strong_self->_retry_count || strong_self->_retry_count < 0)) {
|
||||
|
||||
Reference in New Issue
Block a user