mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-30 06:42:22 +08:00
支持rtp代理服务器
This commit is contained in:
@@ -275,6 +275,28 @@ onceToken token([](){
|
||||
},nullptr);
|
||||
} //namespace Hls
|
||||
|
||||
|
||||
////////////Rtp代理相关配置///////////
|
||||
namespace RtpProxy {
|
||||
#define RTP_PROXY_FIELD "rtp_proxy."
|
||||
//rtp调试数据保存目录
|
||||
const string kDumpDir = RTP_PROXY_FIELD"dumpDir";
|
||||
//是否限制udp数据来源ip和端口
|
||||
const string kCheckSource = RTP_PROXY_FIELD"checkSource";
|
||||
//rtp类型,支持MP2P/MP4V-ES
|
||||
const string kRtpType = RTP_PROXY_FIELD"rtp_type";
|
||||
//rtp接收超时时间
|
||||
const string kTimeoutSec = RTP_PROXY_FIELD"timeoutSec";
|
||||
|
||||
onceToken token([](){
|
||||
mINI::Instance()[kDumpDir] = "";
|
||||
mINI::Instance()[kCheckSource] = 1;
|
||||
mINI::Instance()[kRtpType] = "MP2P";
|
||||
mINI::Instance()[kTimeoutSec] = 15;
|
||||
},nullptr);
|
||||
} //namespace RtpProxy
|
||||
|
||||
|
||||
namespace Client {
|
||||
const string kNetAdapter = "net_adapter";
|
||||
const string kRtpType = "rtp_type";
|
||||
|
||||
@@ -159,11 +159,6 @@ extern const string kBroadcastReloadConfig;
|
||||
static type arg = mINI::Instance()[key]; \
|
||||
LISTEN_RELOAD_KEY(arg,key);
|
||||
|
||||
|
||||
//兼容老代码
|
||||
#define GET_CONFIG_AND_REGISTER GET_CONFIG
|
||||
#define BroadcastRtmpPublishArgs BroadcastMediaPublishArgs
|
||||
#define kBroadcastRtmpPublish kBroadcastMediaPublish
|
||||
} //namespace Broadcast
|
||||
|
||||
////////////通用配置///////////
|
||||
@@ -301,6 +296,17 @@ extern const string kFileBufSize;
|
||||
extern const string kFilePath;
|
||||
} //namespace Hls
|
||||
|
||||
////////////Rtp代理相关配置///////////
|
||||
namespace RtpProxy {
|
||||
//rtp调试数据保存目录,置空则不生成
|
||||
extern const string kDumpDir;
|
||||
//是否限制udp数据来源ip和端口
|
||||
extern const string kCheckSource;
|
||||
//rtp类型,支持MP2P/MP4V-ES
|
||||
extern const string kRtpType;
|
||||
//rtp接收超时时间
|
||||
extern const string kTimeoutSec;
|
||||
} //namespace RtpProxy
|
||||
|
||||
/**
|
||||
* rtsp/rtmp播放器、推流器相关设置名,
|
||||
|
||||
Reference in New Issue
Block a user