mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-30 20:31:09 +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;
|
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:
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user