mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
WebRTC audio preferred PCMA
This commit is contained in:
parent
5036aa5ec5
commit
db4c570d19
@ -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
|
||||||
|
@ -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";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user