1. 添加了上游代理支持,现在可以将无关的请求转发到其他的代理地址!详见下方配置说明upstreamProxy
2. 内部添加了webRoomid 的缓存映射,只要打开直播间地址即可缓存WebRoomId和Roomid的映射关系,`WebRoomId`现已添加至ws弹幕流数据中!,需要注意直播伴侣端提取的弹幕当前不会有该字段,除非在开播后打开浏览器访问一次你的直播间 3. MsgPack 现在添加了进程名字段`ProcessName`
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
/// <summary>
|
||||
/// 弹幕消息类型
|
||||
/// </summary>
|
||||
public enum BarrageMsgType
|
||||
public enum PackMsgType
|
||||
{
|
||||
无 = 0,
|
||||
弹幕消息 = 1,
|
||||
@@ -50,7 +50,12 @@
|
||||
/// <summary>
|
||||
/// 消息类型
|
||||
/// </summary>
|
||||
public BarrageMsgType Type { get; set; }
|
||||
public PackMsgType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 进程名
|
||||
/// </summary>
|
||||
public string ProcessName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消息对象
|
||||
@@ -62,10 +67,11 @@
|
||||
|
||||
}
|
||||
|
||||
public BarrageMsgPack(string data, BarrageMsgType type)
|
||||
public BarrageMsgPack(string data, PackMsgType type,string processName)
|
||||
{
|
||||
Data = data;
|
||||
Type = type;
|
||||
ProcessName = processName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,6 +99,11 @@
|
||||
/// 房间号
|
||||
/// </summary>
|
||||
public long RoomId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// web直播间ID
|
||||
/// </summary>
|
||||
public long WebRoomId { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user