[*] 日常优化

This commit is contained in:
acgist
2023-07-10 08:55:38 +08:00
parent ff74d8330f
commit 5811976de8
9 changed files with 158 additions and 79 deletions

View File

@@ -1,8 +1,18 @@
/**
* 配置{ min: 8000, exact: 32000, ideal: 32000, max: 48000 }
* 配置
*/
const config = {
// 信令配置
signal: {
// 信令版本
version : "1.0.0",
// 终端类型
clientType: "WEB",
}
}
/**
* 音频默认配置
* 配置:{ min: 8000, exact: 32000, ideal: 32000, max: 48000 }
*
* https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings
*/
@@ -31,6 +41,7 @@ const defaultAudioConfig = {
/**
* 视频默认配置
* 配置:{ min: 8000, exact: 32000, ideal: 32000, max: 48000 }
*
* https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings
*/
@@ -147,6 +158,7 @@ const defaultRTCPeerConnectionConfig = {
};
export {
config,
defaultAudioConfig,
defaultVideoConfig,
defaultShareScreenConfig,