Implement Safari video startup fixes and range streaming support
This commit is contained in:
+2
-30
@@ -43,34 +43,6 @@ This launches the same pywebview-based desktop flow used by the Windows build.
|
||||
## Notes
|
||||
|
||||
- The selected media folder is scanned continuously by the backend.
|
||||
- The Windows desktop app remembers the chosen folder between launches.
|
||||
- The desktop app remembers the chosen folder between launches.
|
||||
- HTTP and WebSocket endpoints are documented in [API.md](API.md).
|
||||
- MPC-BE integration details live in [mpc-be.md](mpc-be.md).
|
||||
*** Add File: c:\mediahive\docs\API.md
|
||||
# API
|
||||
|
||||
MediaHive exposes a small local API used by the desktop app and frontend.
|
||||
|
||||
## Endpoints
|
||||
|
||||
| Method | Path | Purpose |
|
||||
| --- | --- | --- |
|
||||
| `GET` | `/api/health` | Lightweight health check. |
|
||||
| `GET` | `/api/config` | Returns the currently selected media folder. |
|
||||
| `POST` | `/api/change-folder` | Persists and switches the active media folder without restarting the app. |
|
||||
| `GET` | `/api/index` | Returns the current in-memory media index. |
|
||||
| `GET` | `/api/playback/resume-positions` | Returns saved resume positions by media path. |
|
||||
| `GET` | `/api/status` | Returns scanner and library status information. |
|
||||
| `POST` | `/api/scan` | Triggers a new scan if the scanner is active. |
|
||||
| `POST` | `/api/play` | Opens a media file with the system player. |
|
||||
| `POST` | `/api/open-folder` | Opens a folder in the system file explorer, or selects a file in its parent folder. |
|
||||
| `GET` | `/api/mpcbe/status` | Reports whether MPC-BE's local web interface is reachable. |
|
||||
| `GET` | `/api/media/{file_path:path}` | Serves files from the active media root. |
|
||||
| `WS` | `/api/ws` | Streams live index updates and task progress events. |
|
||||
|
||||
## Notes
|
||||
|
||||
- `POST /api/change-folder` validates the new folder, saves it to config, and switches the in-memory scanner asynchronously.
|
||||
- `POST /api/play` and `POST /api/open-folder` expect JSON request bodies matching the frontend calls.
|
||||
- `GET /api/media/{file_path:path}` is constrained to the current media root.
|
||||
- `GET /api/mpcbe/status` only checks the local MPC-BE web interface.
|
||||
- MPC-BE integration details (Windows only) live in [mpc-be.md](mpc-be.md).
|
||||
|
||||
Reference in New Issue
Block a user