mirror of
https://github.com/IS1DI/x0gp.git
synced 2026-07-16 20:47:55 +00:00
feat: implement WebRTC signaling and UDP-based video streaming and control service
This commit is contained in:
@@ -2219,18 +2219,24 @@ paths:
|
||||
- system
|
||||
/api/video/control:
|
||||
post:
|
||||
description: Sends a text command (e.g. start, stop, left, right) to the ESP32
|
||||
command port (UDP 8888).
|
||||
description: Sends a text command or a JSON control packet to the ESP32 command
|
||||
port (UDP 8888).
|
||||
parameters:
|
||||
- description: Device ID (0..127)
|
||||
in: query
|
||||
name: id
|
||||
type: integer
|
||||
- description: Command text
|
||||
- description: Command text (legacy)
|
||||
in: query
|
||||
name: cmd
|
||||
required: true
|
||||
type: string
|
||||
- description: Control packet JSON (steer, throttle, brake, gear, flags)
|
||||
in: body
|
||||
name: body
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: integer
|
||||
type: object
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
@@ -2240,7 +2246,7 @@ paths:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
"400":
|
||||
description: Missing cmd parameter
|
||||
description: Missing parameter or invalid body
|
||||
schema:
|
||||
type: string
|
||||
"500":
|
||||
|
||||
Reference in New Issue
Block a user