mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-30 12:20:43 +00:00
!3563 修复进行音频流传输时通道类型选择直通通道而未选择Udp通道
Merge pull request !3563 from 董鹏/master
This commit is contained in:
commit
4597c4d042
@ -73,6 +73,7 @@ static int32_t GetLaneDefaultLink(LaneTransType transType, LaneLinkType *optLink
|
||||
break;
|
||||
case LANE_T_RAW_STREAM:
|
||||
case LANE_T_COMMON_VIDEO:
|
||||
case LANE_T_COMMON_VOICE:
|
||||
GetStreamDefaultLink(defaultLink, &index);
|
||||
break;
|
||||
default:
|
||||
|
@ -167,7 +167,7 @@ static ChannelType TransGetChannelType(const SessionParam *param, const LaneConn
|
||||
if (connInfo->type == LANE_BR || connInfo->type == LANE_BLE) {
|
||||
return CHANNEL_TYPE_PROXY;
|
||||
} else if (transType == LANE_T_FILE || transType == LANE_T_COMMON_VIDEO ||
|
||||
transType == LANE_T_RAW_STREAM) {
|
||||
transType == LANE_T_RAW_STREAM || transType == LANE_T_COMMON_VOICE) {
|
||||
return CHANNEL_TYPE_UDP;
|
||||
} else if ((transType == LANE_T_MSG) && (connInfo->type != LANE_P2P)) {
|
||||
return CHANNEL_TYPE_PROXY;
|
||||
|
Loading…
Reference in New Issue
Block a user