mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-03 17:27:33 +08:00
rtsp/rtmp超时时间可配置
This commit is contained in:
@@ -158,10 +158,13 @@ onceToken token([](){
|
||||
namespace Rtsp {
|
||||
#define RTSP_FIELD "rtsp."
|
||||
const char kAuthBasic[] = RTSP_FIELD"authBasic";
|
||||
|
||||
const char kHandshakeSecond[] = RTSP_FIELD"handshakeSecond";
|
||||
const char kKeepAliveSecond[] = RTSP_FIELD"keepAliveSecond";
|
||||
onceToken token([](){
|
||||
//默认Md5方式认证
|
||||
mINI::Instance()[kAuthBasic] = 0;
|
||||
mINI::Instance()[kHandshakeSecond] = 15;
|
||||
mINI::Instance()[kKeepAliveSecond] = 15;
|
||||
},nullptr);
|
||||
|
||||
} //namespace Rtsp
|
||||
@@ -170,10 +173,15 @@ onceToken token([](){
|
||||
namespace Rtmp {
|
||||
#define RTMP_FIELD "rtmp."
|
||||
const char kModifyStamp[] = RTMP_FIELD"modifyStamp";
|
||||
const char kHandshakeSecond[] = RTMP_FIELD"handshakeSecond";
|
||||
const char kKeepAliveSecond[] = RTMP_FIELD"keepAliveSecond";
|
||||
|
||||
onceToken token([](){
|
||||
mINI::Instance()[kModifyStamp] = true;
|
||||
mINI::Instance()[kHandshakeSecond] = 15;
|
||||
mINI::Instance()[kKeepAliveSecond] = 15;
|
||||
},nullptr);
|
||||
|
||||
} //namespace RTMP
|
||||
|
||||
|
||||
|
||||
@@ -194,12 +194,19 @@ extern const char kMaxReqSize[];
|
||||
namespace Rtsp {
|
||||
//是否优先base64方式认证?默认Md5方式认证
|
||||
extern const char kAuthBasic[];
|
||||
//握手超时时间,默认15秒
|
||||
extern const char kHandshakeSecond[];
|
||||
//维持链接超时时间,默认15秒
|
||||
extern const char kKeepAliveSecond[];
|
||||
} //namespace Rtsp
|
||||
|
||||
////////////RTMP服务器配置///////////
|
||||
namespace Rtmp {
|
||||
extern const char kModifyStamp[];
|
||||
|
||||
//握手超时时间,默认15秒
|
||||
extern const char kHandshakeSecond[];
|
||||
//维持链接超时时间,默认15秒
|
||||
extern const char kKeepAliveSecond[];
|
||||
} //namespace RTMP
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user