From 10c8457417678b165a0dbf01f847991d64ee9b60 Mon Sep 17 00:00:00 2001 From: "haibo.chen" <495810242@qq.com> Date: Wed, 5 Mar 2025 10:58:17 +0800 Subject: [PATCH 1/3] Remove detailed narrative paragraphs from About page --- html/NextGB/src/views/setting/About.vue | 8 -------- 1 file changed, 8 deletions(-) diff --git a/html/NextGB/src/views/setting/About.vue b/html/NextGB/src/views/setting/About.vue index 6c31ff3..0aa49d4 100644 --- a/html/NextGB/src/views/setting/About.vue +++ b/html/NextGB/src/views/setting/About.vue @@ -12,14 +12,6 @@ const aboutInfo = { subtitle: '', content: '本项目是一次探索性实验,代码通过与Cursor AI助手对话生成。项目旨在验证当前AI技术在实际项目开发中的能力和潜力。从项目启动到完成基本功能,总计投入约40个小时,包括UI,架构,甚至目录结构。' }, - { - subtitle: '', - content: '对于我这样一个后端开发者而言,UI设计几乎是不可能完成的任务,而现在,竟成了对话框里的文字。"要一个左边设备树、右边视频墙的布局",当这句话变成代码在浏览器上显示时,我竟有些兴奋。从"八方向的云台控制面板"到"能拖拽缩放的时间轴",AI像一个魔术师,不断的给我惊喜。有时,我甚至不知如何描述,只会输入"帮我优化样式",然后就是等待惊喜的出现。' - }, - { - subtitle: '', - content: '看着这样一件由对话框诞生的作品,我有一种"作弊"的兴奋感,同时还有一些恍惚。坦白讲,我不知道这将会是替代,还是开发者能力的延伸。毫无疑问的是,它将推倒领域间的壁垒,而我们,也将成为这一切的参与者,抑或见证者。' - }, { subtitle: '', content: '' From f583d6cfc44beb65f1152ee24ca1bbcf8c735442 Mon Sep 17 00:00:00 2001 From: "haibo.chen" <495810242@qq.com> Date: Wed, 5 Mar 2025 10:58:33 +0800 Subject: [PATCH 2/3] Update README.md with SIP registration authentication flow --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ca8251b..61a4a80 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,11 @@ docker run -id -p 1985:1985 -p 5060:5060 -p 8025:8025 -p 9000:9000 -p 5060:5060/ ```mermaid sequenceDiagram Device ->> SRS-SIP : 1. Register - SRS-SIP ->> Device : 2. 200 OK + SRS-SIP ->> Device : 2. 401 + Device ->> SRS-SIP : 3. Register + SRS-SIP ->> Device : 4. 200 OK ``` -暂时没有实现鉴权功能,敬请期待。 - 2. 播放视频流程 Player、SRS-SIP、SRS Server和GB28181 Device的交互图如下: @@ -69,3 +69,10 @@ sequenceDiagram 8. Player停止播放 9. SRS-SIP通知SRS停止收流 10. SRS-SIP通过设备停止推流 + + + + + + + From ee73f4e8eec151a4ada5ad601ab4b06b58ac0942 Mon Sep 17 00:00:00 2001 From: "haibo.chen" <495810242@qq.com> Date: Wed, 5 Mar 2025 11:12:20 +0800 Subject: [PATCH 3/3] Add API documentation structure to README --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 61a4a80..9270faf 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,27 @@ sequenceDiagram 10. SRS-SIP通过设备停止推流 +## API 接口 +- 请求与响应数据格式为JSON +- 所有响应的统一结构为: +```json +{ + "code": 0, + "data": {} +} +``` +错误响应示例: +``` +{ + "code": 500, + "data": { + "msg": "error message" + } +} +``` +### 接口列表 - +暂无,请参考demo。