mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-19 06:42:21 +08:00
Add srt caller mode and stream encryption support. (#4088)
Add srt caller mode and stream encryption support. 1. Support srt caller mode, realize srt proxy pull stream proxy push stream; url parameter format such as: srt://127.0.0.1:9000?streamid=#! ::r=live/test11 2. Support srt stream encrypted transmission in caller and listener mode. --------- Co-authored-by: xiongguangjie <xiong_panda@163.com>
This commit is contained in:
@@ -370,6 +370,11 @@ float SrtTransportImp::getTimeOutSec() {
|
||||
return timeOutSec;
|
||||
}
|
||||
|
||||
std::string SrtTransportImp::getPassphrase() {
|
||||
GET_CONFIG(string, passphrase, kPassPhrase);
|
||||
return passphrase;
|
||||
}
|
||||
|
||||
int SrtTransportImp::getPktBufSize() {
|
||||
// kPktBufSize
|
||||
GET_CONFIG(int, pktBufSize, kPktBufSize);
|
||||
@@ -380,4 +385,4 @@ int SrtTransportImp::getPktBufSize() {
|
||||
return pktBufSize;
|
||||
}
|
||||
|
||||
} // namespace SRT
|
||||
} // namespace SRT
|
||||
|
||||
Reference in New Issue
Block a user