新增对直播伴侣开播/下播事件的检测与弹幕推送,增加相关数据结构和事件机制。移除脚本缓存配置,简化直播页自动暂停逻辑。同步优化消息类型、颜色映射及项目结构,版本升级至2.8.0。
51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
using BarrageGrab.Proxy.ProxyEventArgs;
|
|
|
|
namespace BarrageGrab.Proxy
|
|
{
|
|
public interface ISystemProxy : IDisposable
|
|
{
|
|
event EventHandler<WsMessageEventArgs> OnWebSocketData;
|
|
|
|
event EventHandler<HttpResponseEventArgs> OnFetchResponse;
|
|
|
|
event EventHandler<SystemProxyChangeEventArgs> OnProxyStatus;
|
|
|
|
/// <summary>
|
|
/// 直播伴侣操作事件
|
|
/// </summary>
|
|
event EventHandler<LiveCompanEventArgs> OnLiveCompanAction;
|
|
|
|
/// <summary>
|
|
/// Http上游代理地址
|
|
/// </summary>
|
|
string HttpUpstreamProxy { get; }
|
|
|
|
/// <summary>
|
|
/// Https 上游代理地址
|
|
/// </summary>
|
|
string HttpsUpstreamProxy { get; }
|
|
|
|
/// <summary>
|
|
/// 设置上游代理地址(http+https)
|
|
/// </summary>
|
|
void SetUpstreamProxy(string addr);
|
|
|
|
/// <summary>
|
|
/// 关闭系统代理
|
|
/// </summary>
|
|
void CloseSystemProxy();
|
|
|
|
/// <summary>
|
|
/// 注册为系统代理
|
|
/// </summary>
|
|
void RegisterSystemProxy();
|
|
|
|
/// <summary>
|
|
/// 开始监听
|
|
/// </summary>
|
|
void Start();
|
|
}
|
|
} |