mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
sctp关闭编译时,关闭datachannel相关功能
This commit is contained in:
parent
3dd3897ad6
commit
b0f15c9647
@ -1591,8 +1591,13 @@ RETRY:
|
|||||||
if (type == TrackApplication) {
|
if (type == TrackApplication) {
|
||||||
RtcMedia answer_media = offer_media;
|
RtcMedia answer_media = offer_media;
|
||||||
answer_media.role = mathDtlsRole(offer_media.role);
|
answer_media.role = mathDtlsRole(offer_media.role);
|
||||||
|
#ifdef ENABLE_SCTP
|
||||||
answer_media.direction = matchDirection(offer_media.direction, configure.direction);
|
answer_media.direction = matchDirection(offer_media.direction, configure.direction);
|
||||||
answer_media.candidate = configure.candidate;
|
answer_media.candidate = configure.candidate;
|
||||||
|
|
||||||
|
#else
|
||||||
|
answer_media.direction = RtpDirection::inactive;
|
||||||
|
#endif
|
||||||
ret->media.emplace_back(answer_media);
|
ret->media.emplace_back(answer_media);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user