mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-22 00:42:22 +08:00
startSendRtp接口支持指定接收流的app和vhost参数 (#3841)
This commit is contained in:
@@ -239,6 +239,9 @@ void RtpSender::onConnect() {
|
||||
if (!_args.recv_stream_id.empty()) {
|
||||
mINI ini;
|
||||
ini[RtpSession::kStreamID] = _args.recv_stream_id;
|
||||
// 强制同步接收流和发送流的app和vhost
|
||||
ini[RtpSession::kApp] = _args.recv_stream_app;
|
||||
ini[RtpSession::kVhost] = _args.recv_stream_vhost;
|
||||
_rtp_session = std::make_shared<RtpSession>(_socket_rtp);
|
||||
_rtp_session->setParams(ini);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user