!3563 修复进行音频流传输时通道类型选择直通通道而未选择Udp通道

Merge pull request !3563 from 董鹏/master
This commit is contained in:
openharmony_ci 2023-03-24 14:09:02 +00:00 committed by Gitee
commit 4597c4d042
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ static int32_t GetLaneDefaultLink(LaneTransType transType, LaneLinkType *optLink
break; break;
case LANE_T_RAW_STREAM: case LANE_T_RAW_STREAM:
case LANE_T_COMMON_VIDEO: case LANE_T_COMMON_VIDEO:
case LANE_T_COMMON_VOICE:
GetStreamDefaultLink(defaultLink, &index); GetStreamDefaultLink(defaultLink, &index);
break; break;
default: default:

View File

@ -167,7 +167,7 @@ static ChannelType TransGetChannelType(const SessionParam *param, const LaneConn
if (connInfo->type == LANE_BR || connInfo->type == LANE_BLE) { if (connInfo->type == LANE_BR || connInfo->type == LANE_BLE) {
return CHANNEL_TYPE_PROXY; return CHANNEL_TYPE_PROXY;
} else if (transType == LANE_T_FILE || transType == LANE_T_COMMON_VIDEO || } 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; return CHANNEL_TYPE_UDP;
} else if ((transType == LANE_T_MSG) && (connInfo->type != LANE_P2P)) { } else if ((transType == LANE_T_MSG) && (connInfo->type != LANE_P2P)) {
return CHANNEL_TYPE_PROXY; return CHANNEL_TYPE_PROXY;