mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
startSendRtp相关接口新增enable_origin_recv_limit参数控制是否开启源端限流
多倍速rtp转发时,在tcp模式下,如果转发速度跟不上接收速度将导致转发失败,通过开启该参数,可以确保历史视频多倍速下载成功
This commit is contained in:
@@ -1603,6 +1603,7 @@ void installWebApi() {
|
||||
// Record the app and vhost of the sending stream
|
||||
args.recv_stream_app = allArgs["app"];
|
||||
args.recv_stream_vhost = allArgs["vhost"];
|
||||
args.enable_origin_recv_limit = allArgs["enable_origin_recv_limit"];
|
||||
src->getOwnerPoller()->async([=]() mutable {
|
||||
try {
|
||||
src->startSendRtp(args, [val, headerOut, invoker](uint16_t local_port, const SockException &ex) mutable {
|
||||
@@ -1649,6 +1650,7 @@ void installWebApi() {
|
||||
args.recv_stream_id = allArgs["recv_stream_id"];
|
||||
args.recv_stream_app = allArgs["app"];
|
||||
args.recv_stream_vhost = allArgs["vhost"];
|
||||
args.enable_origin_recv_limit = allArgs["enable_origin_recv_limit"];
|
||||
|
||||
src->getOwnerPoller()->async([=]() mutable {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user