N
O
D
E
M
E
D
I
A
Thinking
首页
产品
文档
博客
订单
文档
NME通道管理
2026年 5月 20日 下午3:36
## 版本兼容 当前文档仅适用于3.23及以下的版本 ## 1、列出设备 **请求URL:** - ` http://xx.com/api/platform/devices ` **请求方式:** - GET **返回示例** ``` { "code": 200, "error": "", "data": { "449b7f4f0c4ebd29": { "DeviceID": "449b7f4f0c4ebd29", "IP": "192.168.0.4:47458", "UA": "NME_449b7f4f0c4ebd29", "Protocol": "NME", "Transport": "kmp", "Online": true, "RegisterTime": "0001-01-01T00:00:00Z", "Channels": { "0ojkkerp": { "channel_id": "0ojkkerp", "channel_name": "102", "input_url": "rtsp://admin:chen2509@192.168.0.112:554/Streaming/channels/102", "connecting": true, "pushing": true, "auto_push": true, "Anxupush": false }, "silqwqbe": { "channel_id": "silqwqbe", "channel_name": "fds", "input_url": "rtsp://admin:chen2509@192.168.0.112:554/Streaming/channels/101", "connecting": true, "pushing": true, "auto_push": true, "Anxupush": false } }, "ChannelNum": 3 } } } ``` ## 2、创建通道 **请求URL:** - ` http://xx.com/api/platform/device/{deivce_id}/channel ` **请求方式:** - POST **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |channel_id |是 |string |通道id,同一NME设备内不重复 | |channel_name |是 |string | 通道备注名 | |input_url |否 |string | 通道地址 | **返回示例** ``` { "code": 200, "error": "", "data": null } ``` **备注** - 请求地址中did为NME设备注册上来的deivce_id ## 3、关闭自动推流 **请求URL:** - ` http://xx.com/api/platform/device/{divice_id}/auto/{channel_id} ` **请求方式:** - DELETE **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |divice_id |是 |string |NME设备ID | |channel_id |是 |string | 创建的通道ID | ## 4、开启自动推流 **请求URL:** - ` http://xx.com/api/platform/device/{divice_id}/auto/{channel_id} ` **请求方式:** - POST **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |divice_id |是 |string |NME设备ID | |channel_id |是 |string | 上一步创建的通道ID | ## 5、删除通道 **请求URL:** - ` http://xx.com/api/platform/device/{device_id}/channel/{channel_id} ` **请求方式:** - DELETE **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |divice_id |是 |string |NME设备ID | |channel_id |是 |string | 创建的通道ID | ## 6、删除离线的NME设备 **请求URL:** - ` http://xx.com/api/platform/device/{device_id}` **请求方式:** - DELETE **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |divice_id |是 |string |NME设备ID |
嘿,我是小R,需要帮助随时找我哦
QQ客服:281269007
邮件支持
扫码加微信
回到顶部