mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-15 04:25:58 +08:00
AI automatically translates all comments in the code into English (#3917)
This commit is contained in:
@@ -39,7 +39,8 @@ bool loadIniConfig(const char *ini_path) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
////////////广播名称///////////
|
||||
// //////////广播名称/////////// [AUTO-TRANSLATED:439b2d74]
|
||||
// //////////Broadcast Name///////////
|
||||
namespace Broadcast {
|
||||
const string kBroadcastMediaChanged = "kBroadcastMediaChanged";
|
||||
const string kBroadcastRecordMP4 = "kBroadcastRecordMP4";
|
||||
@@ -68,7 +69,8 @@ const string kBroadcastPlayerCountChanged = "kBroadcastPlayerCountChanged";
|
||||
|
||||
} // namespace Broadcast
|
||||
|
||||
// 通用配置项目
|
||||
// 通用配置项目 [AUTO-TRANSLATED:ca344202]
|
||||
// General Configuration Items
|
||||
namespace General {
|
||||
#define GENERAL_FIELD "general."
|
||||
const string kMediaServerId = GENERAL_FIELD "mediaServerId";
|
||||
@@ -165,7 +167,8 @@ static onceToken token([]() {
|
||||
});
|
||||
} // !Protocol
|
||||
|
||||
////////////HTTP配置///////////
|
||||
// //////////HTTP配置/////////// [AUTO-TRANSLATED:a281d694]
|
||||
// //////////HTTP Configuration///////////
|
||||
namespace Http {
|
||||
#define HTTP_FIELD "http."
|
||||
const string kSendBufSize = HTTP_FIELD "sendBufSize";
|
||||
@@ -208,7 +211,8 @@ static onceToken token([]() {
|
||||
|
||||
} // namespace Http
|
||||
|
||||
////////////SHELL配置///////////
|
||||
// //////////SHELL配置/////////// [AUTO-TRANSLATED:f023ec45]
|
||||
// //////////SHELL Configuration///////////
|
||||
namespace Shell {
|
||||
#define SHELL_FIELD "shell."
|
||||
const string kMaxReqSize = SHELL_FIELD "maxReqSize";
|
||||
@@ -216,7 +220,8 @@ const string kMaxReqSize = SHELL_FIELD "maxReqSize";
|
||||
static onceToken token([]() { mINI::Instance()[kMaxReqSize] = 1024; });
|
||||
} // namespace Shell
|
||||
|
||||
////////////RTSP服务器配置///////////
|
||||
// //////////RTSP服务器配置/////////// [AUTO-TRANSLATED:950e1981]
|
||||
// //////////RTSP Server Configuration///////////
|
||||
namespace Rtsp {
|
||||
#define RTSP_FIELD "rtsp."
|
||||
const string kAuthBasic = RTSP_FIELD "authBasic";
|
||||
@@ -227,7 +232,8 @@ const string kLowLatency = RTSP_FIELD"lowLatency";
|
||||
const string kRtpTransportType = RTSP_FIELD"rtpTransportType";
|
||||
|
||||
static onceToken token([]() {
|
||||
// 默认Md5方式认证
|
||||
// 默认Md5方式认证 [AUTO-TRANSLATED:6155d989]
|
||||
// Default Md5 authentication
|
||||
mINI::Instance()[kAuthBasic] = 0;
|
||||
mINI::Instance()[kHandshakeSecond] = 15;
|
||||
mINI::Instance()[kKeepAliveSecond] = 15;
|
||||
@@ -237,7 +243,8 @@ static onceToken token([]() {
|
||||
});
|
||||
} // namespace Rtsp
|
||||
|
||||
////////////RTMP服务器配置///////////
|
||||
// //////////RTMP服务器配置/////////// [AUTO-TRANSLATED:8de6f41f]
|
||||
// //////////RTMP Server Configuration///////////
|
||||
namespace Rtmp {
|
||||
#define RTMP_FIELD "rtmp."
|
||||
const string kHandshakeSecond = RTMP_FIELD "handshakeSecond";
|
||||
@@ -253,13 +260,16 @@ static onceToken token([]() {
|
||||
});
|
||||
} // namespace Rtmp
|
||||
|
||||
////////////RTP配置///////////
|
||||
// //////////RTP配置/////////// [AUTO-TRANSLATED:23cbcb86]
|
||||
// //////////RTP Configuration///////////
|
||||
namespace Rtp {
|
||||
#define RTP_FIELD "rtp."
|
||||
// RTP打包最大MTU,公网情况下更小
|
||||
// RTP打包最大MTU,公网情况下更小 [AUTO-TRANSLATED:869f5c4b]
|
||||
// Maximum RTP packet MTU, smaller for public networks
|
||||
const string kVideoMtuSize = RTP_FIELD "videoMtuSize";
|
||||
const string kAudioMtuSize = RTP_FIELD "audioMtuSize";
|
||||
// rtp包最大长度限制,单位是KB
|
||||
// rtp包最大长度限制,单位是KB [AUTO-TRANSLATED:aee4bffc]
|
||||
// Maximum RTP packet length limit, in KB
|
||||
const string kRtpMaxSize = RTP_FIELD "rtpMaxSize";
|
||||
const string kLowLatency = RTP_FIELD "lowLatency";
|
||||
const string kH264StapA = RTP_FIELD "h264_stap_a";
|
||||
@@ -273,14 +283,18 @@ static onceToken token([]() {
|
||||
});
|
||||
} // namespace Rtp
|
||||
|
||||
////////////组播配置///////////
|
||||
// //////////组播配置/////////// [AUTO-TRANSLATED:dc39b9d6]
|
||||
// //////////Multicast Configuration///////////
|
||||
namespace MultiCast {
|
||||
#define MULTI_FIELD "multicast."
|
||||
// 组播分配起始地址
|
||||
// 组播分配起始地址 [AUTO-TRANSLATED:069db91d]
|
||||
// Multicast allocation starting address
|
||||
const string kAddrMin = MULTI_FIELD "addrMin";
|
||||
// 组播分配截止地址
|
||||
// 组播分配截止地址 [AUTO-TRANSLATED:6d3fc54c]
|
||||
// Multicast allocation ending address
|
||||
const string kAddrMax = MULTI_FIELD "addrMax";
|
||||
// 组播TTL
|
||||
// 组播TTL [AUTO-TRANSLATED:c7c5339c]
|
||||
// Multicast TTL
|
||||
const string kUdpTTL = MULTI_FIELD "udpTTL";
|
||||
|
||||
static onceToken token([]() {
|
||||
@@ -290,7 +304,8 @@ static onceToken token([]() {
|
||||
});
|
||||
} // namespace MultiCast
|
||||
|
||||
////////////录像配置///////////
|
||||
// //////////录像配置/////////// [AUTO-TRANSLATED:19de3e96]
|
||||
// //////////Recording Configuration///////////
|
||||
namespace Record {
|
||||
#define RECORD_FIELD "record."
|
||||
const string kAppName = RECORD_FIELD "appName";
|
||||
@@ -310,7 +325,8 @@ static onceToken token([]() {
|
||||
});
|
||||
} // namespace Record
|
||||
|
||||
////////////HLS相关配置///////////
|
||||
// //////////HLS相关配置/////////// [AUTO-TRANSLATED:873cc84c]
|
||||
// //////////HLS Related Configuration///////////
|
||||
namespace Hls {
|
||||
#define HLS_FIELD "hls."
|
||||
const string kSegmentDuration = HLS_FIELD "segDur";
|
||||
@@ -336,7 +352,8 @@ static onceToken token([]() {
|
||||
});
|
||||
} // namespace Hls
|
||||
|
||||
////////////Rtp代理相关配置///////////
|
||||
// //////////Rtp代理相关配置/////////// [AUTO-TRANSLATED:7b285587]
|
||||
// //////////Rtp Proxy Related Configuration///////////
|
||||
namespace RtpProxy {
|
||||
#define RTP_PROXY_FIELD "rtp_proxy."
|
||||
const string kDumpDir = RTP_PROXY_FIELD "dumpDir";
|
||||
@@ -441,7 +458,8 @@ public:
|
||||
MemThreadInfo(bool is_thread_local) {
|
||||
_is_thread_local = is_thread_local;
|
||||
if (_is_thread_local) {
|
||||
// 确保所有线程退出后才能释放全局内存统计器
|
||||
// 确保所有线程退出后才能释放全局内存统计器 [AUTO-TRANSLATED:edb51704]
|
||||
// Ensure that all threads exit before releasing the global memory statistics
|
||||
total_mem = Instance(false);
|
||||
}
|
||||
// printf("%s %d\r\n", __FUNCTION__, (int) _is_thread_local);
|
||||
@@ -491,7 +509,8 @@ private:
|
||||
MemThreadInfo *ptr;
|
||||
};
|
||||
|
||||
// 该变量主要确保线程退出后才能释放MemThreadInfo变量
|
||||
// 该变量主要确保线程退出后才能释放MemThreadInfo变量 [AUTO-TRANSLATED:a72494b0]
|
||||
// This variable mainly ensures that the MemThreadInfo variable can be released only after the thread exits
|
||||
static thread_local MemThreadInfoLocal s_thread_mem_info;
|
||||
|
||||
uint64_t getTotalMemUsage() {
|
||||
|
||||
Reference in New Issue
Block a user