WebRTC audio preferred PCMA

This commit is contained in:
xia-chu 2024-03-22 20:30:48 +08:00 committed by 夏楚
parent 5036aa5ec5
commit db4c570d19
2 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ tcpPort = 8000
rembBitRate=0 rembBitRate=0
#rtc支持的音频codec类型,在前面的优先级更高 #rtc支持的音频codec类型,在前面的优先级更高
#以下范例为所有支持的音频codec #以下范例为所有支持的音频codec
preferredCodecA=PCMU,PCMA,opus,mpeg4-generic preferredCodecA=PCMA,PCMU,opus,mpeg4-generic
#rtc支持的视频codec类型,在前面的优先级更高 #rtc支持的视频codec类型,在前面的优先级更高
#以下范例为所有支持的视频codec #以下范例为所有支持的视频codec
preferredCodecV=H264,H265,AV1,VP9,VP8 preferredCodecV=H264,H265,AV1,VP9,VP8

View File

@ -23,7 +23,7 @@ namespace Rtc {
const string kPreferredCodecA = RTC_FIELD"preferredCodecA"; const string kPreferredCodecA = RTC_FIELD"preferredCodecA";
const string kPreferredCodecV = RTC_FIELD"preferredCodecV"; const string kPreferredCodecV = RTC_FIELD"preferredCodecV";
static onceToken token([]() { static onceToken token([]() {
mINI::Instance()[kPreferredCodecA] = "PCMU,PCMA,opus,mpeg4-generic"; mINI::Instance()[kPreferredCodecA] = "PCMA,PCMU,opus,mpeg4-generic";
mINI::Instance()[kPreferredCodecV] = "H264,H265,AV1,VP9,VP8"; mINI::Instance()[kPreferredCodecV] = "H264,H265,AV1,VP9,VP8";
}); });
} }