2024-03-29 17:34:14 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-10-06 17:44:08 +08:00
|
|
|
<configuration>
|
2023-08-17 20:33:30 +08:00
|
|
|
<!--配置更改后重启才能生效-->
|
|
|
|
|
<appSettings>
|
|
|
|
|
<!--过滤Websocket数据源进程,可用','进行分隔,程序将会监听以下进程的弹幕信息-->
|
2024-03-10 03:41:40 +08:00
|
|
|
<add key="processFilter" value="直播伴侣,douyin,chrome,msedge,QQBrowser,360se,firefox,2345explorer,iexplore" />
|
2023-08-17 20:33:30 +08:00
|
|
|
<!--Websocket监听端口-->
|
2024-03-10 03:41:40 +08:00
|
|
|
<add key="wsListenPort" value="8888" />
|
2023-08-17 20:33:30 +08:00
|
|
|
<!--true:监听在0.0.0.0,接受任意Ip连接,false:监听在127.0.0.1,仅接受本机连接-->
|
2024-03-10 03:41:40 +08:00
|
|
|
<add key="listenAny" value="true" />
|
2023-08-17 20:33:30 +08:00
|
|
|
<!--系统代理端口-->
|
2024-03-10 03:41:40 +08:00
|
|
|
<add key="proxyPort" value="8827" />
|
2024-09-28 10:29:10 +08:00
|
|
|
<!--是否启用系统代理,若设置为false 则需要在程序手动指定代理地址 -->
|
|
|
|
|
<add key="usedProxy" value="true" />
|
2024-03-10 03:41:40 +08:00
|
|
|
<!--上游代理地址,例如开启了系统代理,但是需要将其他无关请求转发到VPN工具中,例如:127.0.0.1:11223,不要带http://-->
|
|
|
|
|
<add key="upstreamProxy" value="" />
|
2023-08-17 20:33:30 +08:00
|
|
|
<!--在控制台输出弹幕-->
|
2024-03-10 03:41:40 +08:00
|
|
|
<add key="printBarrage" value="true" />
|
|
|
|
|
<!--要在控制台打印的弹幕类型,多个使用','分隔,(空代表不过滤) 1[普通弹幕],2[点赞消息],3[进入直播间],4[关注消息],5[礼物消息],6[统计消息],7[粉丝团消息],8[直播间分享],9[下播]-->
|
|
|
|
|
<add key="printFilter" value="" />
|
|
|
|
|
<!--要推送的弹幕消息类型,多个使用','分隔,同上-->
|
|
|
|
|
<add key="pushFilter" value="" />
|
|
|
|
|
<!--要日志记录的弹幕消息类型,多个使用','分隔,同上-->
|
|
|
|
|
<add key="logFilter" value="1,2,4,5,6,7,8" />
|
2024-03-29 17:34:14 +08:00
|
|
|
<!--要进行过滤的Web房间ID,多个使用','分隔,根据缓存来过滤的,直播伴侣不支持 -->
|
|
|
|
|
<add key="webRoomIds" value="" />
|
2023-08-17 20:33:30 +08:00
|
|
|
<!--开启内置的域名过滤,设置为false会解包所有https请求,cpu占用很高,建议在无法获取弹幕数据时调整 -->
|
2024-03-10 03:41:40 +08:00
|
|
|
<add key="filterHostName" value="true" />
|
2023-08-17 20:33:30 +08:00
|
|
|
<!--已知的弹幕域名列表 ','分隔 用作过滤规则中,凡是webcast开头的域名程序都会自动列入白名单-->
|
2024-03-10 03:41:40 +08:00
|
|
|
<add key="hostNameFilter" value="" />
|
|
|
|
|
<!--隐藏控制台-->
|
|
|
|
|
<add key="hideConsole" value="false" />
|
2023-11-23 16:43:21 +08:00
|
|
|
<!--弹幕文件日志-->
|
2024-03-10 03:41:40 +08:00
|
|
|
<add key="barrageFileLog" value="false" />
|
2023-11-23 16:43:21 +08:00
|
|
|
<!--显示窗体-->
|
2024-03-10 03:41:40 +08:00
|
|
|
<add key="showWindow" value="false" />
|
2024-03-29 17:34:14 +08:00
|
|
|
<!--进入直播间自动暂停播放-->
|
|
|
|
|
<add key="autoPause" value="true" />
|
|
|
|
|
<!--强制启用轮询模式获取弹幕 (对于容易断开连接或者更加追求稳定的直播间,可以启用这个开关,虽然响应速度不如WebSocket,但是绝对稳定!)-->
|
|
|
|
|
<add key="forcePolling" value="false" />
|
|
|
|
|
<!--弹幕轮询间隔,当 forcePolling 为 true 时生效 (毫秒,1000毫秒=1秒,不建议小于1000毫秒,太小可能会被封IP,值越小,弹幕流越丝滑,对于观众多的直播间可以改小)-->
|
|
|
|
|
<add key="pollingInterval" value="3000" />
|
|
|
|
|
<!--禁用直播页浏览器脚本缓存 (如果需要确保脚本每次能够正常匹配替换,则启用它,可能会损失一定的页面加载速度)-->
|
2024-09-28 10:29:10 +08:00
|
|
|
<add key="disableLivePageScriptCache" value="false" />
|
2024-03-29 17:34:14 +08:00
|
|
|
<!--指定要发送的COM串口 格式:'COM1:9600' 代表用COM1发送,波特率9600,若不需要使用串口抄送服务请留空 -->
|
2024-03-29 17:49:24 +08:00
|
|
|
<add key="comPort" value="" />
|
2024-03-29 17:34:14 +08:00
|
|
|
<!--启用自定义消息过滤,启用后可去程序根目录 Scripts/engine/comPortFilter.js 调整过滤规则 -->
|
|
|
|
|
<add key="useComPortFilter" value="true" />
|
2024-09-28 15:38:45 +08:00
|
|
|
<!--直播伴侣exe文件位置(除非程序找不到,否则请留空)-->
|
2024-09-28 16:16:27 +08:00
|
|
|
<add key="liveCompanPath" value="" />
|
2024-09-28 17:06:00 +08:00
|
|
|
<!--直播伴侣进程代理开关-->
|
|
|
|
|
<add key="liveCompanHookSwitch" value="false" />
|
2023-08-17 20:33:30 +08:00
|
|
|
</appSettings>
|
2024-03-10 03:41:40 +08:00
|
|
|
<runtime>
|
|
|
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
|
|
|
|
</dependentAssembly>
|
2024-09-28 16:16:27 +08:00
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Diagnostics.Tracing" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Runtime.InteropServices" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
|
|
|
|
</dependentAssembly>
|
2024-03-10 03:41:40 +08:00
|
|
|
</assemblyBinding>
|
|
|
|
|
</runtime>
|
|
|
|
|
<startup>
|
|
|
|
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
|
|
|
|
</startup>
|
|
|
|
|
<system.web>
|
|
|
|
|
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
|
|
|
|
<providers>
|
|
|
|
|
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
|
|
|
|
|
</providers>
|
|
|
|
|
</membership>
|
|
|
|
|
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
|
|
|
|
<providers>
|
|
|
|
|
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
|
|
|
|
|
</providers>
|
|
|
|
|
</roleManager>
|
|
|
|
|
</system.web>
|
|
|
|
|
</configuration>
|