fix: 修正资源ID typo 及单元类型声明

修正布局文件中 `@+rid` 为 `@+id` 的 typo,将 UNIT_TYPE 常量类型从 int 改为 byte 以保持协议一致性,新增 StreamModeReportListener 接口,并将日志级别从 error 调整为 debug。
This commit is contained in:
2026-07-23 12:14:56 +08:00
parent 6138a1ffa4
commit 1800881219
3 changed files with 10 additions and 5 deletions

View File

@@ -29,8 +29,8 @@ public class SelfCodecEncoder {
// ---- 自定义二进制协议(与控制端 SelfCodecDecoder 保持一致)----
private static final byte MAGIC = (byte) 0xAB;
private static final int CHUNK_SIZE = 16384; // 每个 DataChannel 分片大小
private static final int UNIT_TYPE_CONFIG = 1; // SPS/PPS 等参数集
private static final int UNIT_TYPE_FRAME = 2; // 编码帧
private static final byte UNIT_TYPE_CONFIG = 1; // SPS/PPS 等参数集
private static final byte UNIT_TYPE_FRAME = 2; // 编码帧
private static final String TAG = "SelfCodecEncoder";