mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-11-24 00:47:21 +08:00
@@ -23,7 +23,7 @@ namespace mediakit{
|
||||
|
||||
const string RtpSession::kStreamID = "stream_id";
|
||||
const string RtpSession::kSSRC = "ssrc";
|
||||
const string RtpSession::kOnlyAudio = "only_audio";
|
||||
const string RtpSession::kOnlyTrack = "only_track";
|
||||
const string RtpSession::kUdpRecvBuffer = "udp_recv_socket_buffer";
|
||||
|
||||
void RtpSession::attachServer(const Server &server) {
|
||||
@@ -33,7 +33,7 @@ void RtpSession::attachServer(const Server &server) {
|
||||
void RtpSession::setParams(mINI &ini) {
|
||||
_stream_id = ini[kStreamID];
|
||||
_ssrc = ini[kSSRC];
|
||||
_only_audio = ini[kOnlyAudio];
|
||||
_only_track = ini[kOnlyTrack];
|
||||
int udp_socket_buffer = ini[kUdpRecvBuffer];
|
||||
if (_is_udp) {
|
||||
// 设置udp socket读缓存
|
||||
@@ -125,7 +125,7 @@ void RtpSession::onRtpPacket(const char *data, size_t len) {
|
||||
_delay_close = true;
|
||||
return;
|
||||
}
|
||||
_process->setOnlyAudio(_only_audio);
|
||||
_process->setOnlyTrack((RtpProcess::OnlyTrack)_only_track);
|
||||
_process->setDelegate(static_pointer_cast<RtpSession>(shared_from_this()));
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user