mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
c api support srt server
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#include "Util/onceToken.h"
|
||||
#include "Util/mini.h"
|
||||
|
||||
#include <iterator>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -15,6 +17,13 @@ const std::string kPort = SRT_FIELD "port";
|
||||
const std::string kLatencyMul = SRT_FIELD "latencyMul";
|
||||
const std::string kPktBufSize = SRT_FIELD "pktBufSize";
|
||||
|
||||
static onceToken token([]() {
|
||||
mINI::Instance()[kTimeOutSec] = 5;
|
||||
mINI::Instance()[kPort] = 9000;
|
||||
mINI::Instance()[kLatencyMul] = 4;
|
||||
mINI::Instance()[kPktBufSize] = 8192;
|
||||
});
|
||||
|
||||
static std::atomic<uint32_t> s_srt_socket_id_generate { 125 };
|
||||
//////////// SrtTransport //////////////////////////
|
||||
SrtTransport::SrtTransport(const EventPoller::Ptr &poller)
|
||||
|
||||
Reference in New Issue
Block a user