Commit b0f15c96 by xiongziliang

sctp关闭编译时,关闭datachannel相关功能

parent 3dd3897a
...@@ -1591,8 +1591,13 @@ RETRY: ...@@ -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;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论