add srt config for lantency multiplier

This commit is contained in:
xiongguangjie
2022-06-06 19:55:47 +08:00
parent 9f357c24b8
commit 83d75c9a72
5 changed files with 16 additions and 5 deletions

View File

@@ -38,6 +38,7 @@ protected:
void onHandShakeFinished(std::string& streamid,struct sockaddr_storage *addr) override;
void onSRTData(DataPacket::Ptr pkt) override;
void onShutdown(const SockException &ex) override;
int getLantencyMul() override;
void sendPacket(Buffer::Ptr pkt,bool flush = true) override{
_total_bytes += pkt->size();