[+] 信令优化

This commit is contained in:
acgist
2023-03-03 21:53:21 +08:00
parent c3dbe52d5c
commit 9c5ab2ec9f
24 changed files with 203 additions and 128 deletions

View File

@@ -8,10 +8,10 @@ const defaultAudioConfig = {
volume: 0.5,
// 延迟大小单位毫秒500毫秒以内较好
latency: 0.4,
// 采样数:16
sampleSize: 16,
// 采样数:8|16|32
sampleSize: { min: 8, ideal: 16, max: 32 },
// 采样率8000|16000|32000|48000
sampleRate: 48000,
sampleRate: { min: 8000, ideal: 32000, max: 48000 },
// 声道数量1|2
channelCount: 1,
// 是否开启自动增益true|false
@@ -35,7 +35,7 @@ const defaultVideoConfig = {
// 高度
height: { min: 480, ideal: 720, max: 2160 },
// 帧率
frameRate: 24,
frameRate: { min: 15, ideal: 24, max: 45 },
// 选摄像头user|left|right|environment
facingMode: "environment",
};