startSendRtp接口支持同时接收流:#2109,#2149

This commit is contained in:
xiongziliang
2023-01-07 22:36:30 +08:00
parent 3b3a83b524
commit 0374e7a660
7 changed files with 40 additions and 2 deletions

View File

@@ -24,8 +24,12 @@ const string RtpSession::kStreamID = "stream_id";
const string RtpSession::kSSRC = "ssrc";
void RtpSession::attachServer(const Server &server) {
_stream_id = const_cast<Server &>(server)[kStreamID];
_ssrc = const_cast<Server &>(server)[kSSRC];
setParams(const_cast<Server &>(server));
}
void RtpSession::setParams(mINI &ini) {
_stream_id = ini[kStreamID];
_ssrc = ini[kSSRC];
}
RtpSession::RtpSession(const Socket::Ptr &sock) : Session(sock) {