# wudiqingshuidawang/ezviz-camera-console architecture

> Architecture diagram of the GitHub repository wudiqingshuidawang/ezviz-camera-console, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wudiqingshuidawang/ezviz-camera-console
- Repository: https://github.com/wudiqingshuidawang/ezviz-camera-console

## Overview

This repository is a single-file, dependency-free browser console for Hikvision cameras. Its documented workflow is to load the page, retrieve devices and live-stream information through a Spring Boot API, display video with the Ezviz iframe player, and send PTZ commands from buttons or keyboard input. The README also documents a speed slider and a stop command. No source excerpts are available, so the graph represents documented capabilities and API relationships only; it does not infer internal JavaScript modules or backend implementation.

Main entry points: [`index.html`](https://github.com/wudiqingshuidawang/ezviz-camera-console/blob/main/index.html) (Camera console)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser console"]
  node_page["Camera console<br/>[index.html]"]
  node_controls["PTZ controls<br/>[index.html]"]
  node_video["Live video player<br/>[index.html]"]
end

subgraph group_services["Camera services"]
  node_backend["Spring Boot API"]
  node_token["Token API"]
  node_devices["Device list API"]
  node_live["Live stream API"]
  node_ptz["PTZ API"]
  node_ptzstop["PTZ stop API"]
end

node_user(("User"))
node_ezviz["Ezviz cloud API"]
node_camera["Camera"]
node_player["Ezviz iframe player"]

node_user -->|"opens"| node_page
node_page -->|"calls API"| node_backend
node_backend -->|"calls API"| node_ezviz
node_ezviz -->|"controls"| node_camera
node_page -->|"requests token"| node_token
node_page -->|"requests devices"| node_devices
node_page -->|"requests stream"| node_live
node_page -->|"provides controls"| node_controls
node_controls -->|"sends PTZ"| node_ptz
node_controls -->|"stops PTZ"| node_ptzstop
node_live -->|"provides stream"| node_video
node_video -->|"embeds iframe"| node_player

click node_page "https://github.com/wudiqingshuidawang/ezviz-camera-console/blob/main/index.html"
click node_controls "https://github.com/wudiqingshuidawang/ezviz-camera-console/blob/main/index.html"
click node_video "https://github.com/wudiqingshuidawang/ezviz-camera-console/blob/main/index.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_page,node_controls,node_video,node_user toneBlue
class node_backend,node_token,node_devices,node_live,node_ptz,node_ptzstop toneAmber
class node_ezviz toneMint
class node_camera,node_player toneIndigo
```

## Components

### Browser console

- [Camera console](https://github.com/wudiqingshuidawang/ezviz-camera-console/blob/main/index.html): `index.html`
- [PTZ controls](https://github.com/wudiqingshuidawang/ezviz-camera-console/blob/main/index.html): `index.html`
- [Live video player](https://github.com/wudiqingshuidawang/ezviz-camera-console/blob/main/index.html): `index.html`

### Camera services

- **Spring Boot API**
- **Token API**
- **Device list API**
- **Live stream API**
- **PTZ API**
- **PTZ stop API**

### Other components

- **User**
- **Ezviz cloud API**
- **Camera**
- **Ezviz iframe player**

## Connections

- User → Camera console: opens (evidence: `README.md`)
- Camera console → Spring Boot API: calls API (evidence: `README.md`)
- Spring Boot API → Ezviz cloud API: calls API (evidence: `README.md`)
- Ezviz cloud API → Camera: controls (evidence: `README.md`)
- Camera console → Token API: requests token (evidence: `README.md`)
- Camera console → Device list API: requests devices (evidence: `README.md`)
- Camera console → Live stream API: requests stream (evidence: `README.md`)
- Camera console → PTZ controls: provides controls (evidence: `README.md`)
- PTZ controls → PTZ API: sends PTZ (evidence: `README.md`)
- PTZ controls → PTZ stop API: stops PTZ (evidence: `README.md`)
- Live stream API → Live video player: provides stream (evidence: `README.md`)
- Live video player → Ezviz iframe player: embeds iframe (evidence: `README.md`)
