细化接口内容

This commit is contained in:
2025-12-31 20:43:54 +08:00
parent 8cd36f44ac
commit 0534ddca75
5 changed files with 26 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
using System;
using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace SHH.Contracts
{
@@ -8,6 +9,8 @@ namespace SHH.Contracts
/// </summary>
public class VideoPayload
{
public List<string> SubscriberIds { get; } = new List<string>(16);
// ==========================================
// 1. 基础元数据 (将被序列化到 JSON)
// ==========================================
@@ -65,6 +68,7 @@ namespace SHH.Contracts
OriginalHeight,
TargetWidth,
TargetHeight,
SubscriberIds,
// 标记一下是否有目标图方便接收端判断要不要读第3帧
HasTargetImage = (TargetImageBytes != null && TargetImageBytes.Length > 0)
};