Files
web-Iot/.workbuddy/memory/2026-09-14.md
2026-09-14 09:27:15 +08:00

7 lines
838 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2026-09-14
- 编写 `docs/DOC-10-声网视频接入说明-V1.0.md`:声网(Agora)视频接入说明文档。
- 梳理了项目中声网相关代码:`src/components/AgoraRtc.tsx`(通用观看组件,URL 传参 app_id/channel/token/uid,mode rtc/vp8)、`src/components/AgrtcRoomRobot.tsx`(机器人上位机组件,CHANNEL=serialNumber,mode live/h264,硬编码 AppID 7887b4db... 与临时 Token,含 2s 自动重连)、`DroneVideoPlayer.tsx` 按 `url_type`(volc/agora)分流到火山/声网播放器。
- 注意:本仓库 Read 工具将 src 下部分 tsx/md 误判为二进制,需用 python 读取;docs/ 文档规范为 DOC-XX-名称-V1.0.md + 元数据表。
- 文档中标出了安全风险:Token 硬编码在前端、无 renewToken、UID 随机生成,上线前需改为后端动态生成 Token。