本地 OBS 通常为 localhost
WebSocket 5.x 默认端口为 4455
可在 OBS → 工具 → WebSocket 服务器设置中找到
服务器 #1(主服务器)
可从你的 IRLServer 控制面板或服务器提供商处获取
格式:live/stream/stream_key
数字越小,优先级越高
低于此值时切换到 LOW 场景
低于此值时切换到 BRB 场景
往返时间阈值
切换场景前的检查次数
这些名称必须与您的 OBS 场景名称完全一致(区分大小写)
CONFIG.JSON
生成的配置
{
"user": {
"id": null,
"name": "NOALBSbot",
"passwordHash": null
},
"switcher": {
"bitrateSwitcherEnabled": true,
"onlySwitchWhenStreaming": false,
"instantlySwitchOnRecover": true,
"autoSwitchNotification": true,
"retryAttempts": 5,
"triggers": {
"low": 800,
"rtt": 2500,
"offline": 200
},
"switchingScenes": {
"normal": "LIVE",
"low": "LOW",
"offline": "BRB"
},
"streamServers": [
{
"streamServer": {
"type": "SrtLiveServer",
"statsUrl": "https://your-stats-url.com/stats",
"publisher": "live/stream/stream_key"
},
"name": "IRLServer",
"priority": 0,
"overrideScenes": null,
"dependsOn": null,
"enabled": true
}
]
},
"software": {
"type": "Obs",
"host": "localhost",
"password": "",
"port": 4455
},
"optionalScenes": {
"starting": null,
"ending": null,
"privacy": null,
"refresh": null
},
"optionalOptions": {
"twitchTranscodingCheck": false,
"twitchTranscodingRetries": 5,
"twitchTranscodingDelaySeconds": 15,
"offlineTimeout": null,
"recordWhileStreaming": false,
"switchToStartingSceneOnStreamStart": false
}
}快速设置:
- 从GitHub releases下载 NOALBS
- 在 OBS 中创建场景:LIVE、LOW、BRB、REFRESH
- 在 OBS 中启用 WebSocket → 工具 → WebSocket 服务器设置
- 下载此 config.json,并将其放入 NOALBS 文件夹
- 聊天功能:创建包含 Twitch OAuth 令牌的 .env 文件
- 运行 NOALBS 可执行文件
IRLServer 用户:你的统计信息 URL 可在控制面板的 Server Settings → Endpoints 中找到。SRTLA 端点请选择 SrtLiveServer 类型。
请记得将 WebSocket 密码和统计信息 URL 更新为你的实际值。场景名称必须与 OBS 中的场景名称完全一致。