Add Discovery Videos feature
Let users upload videos, tag them with one or more entries, and watch them from a new Discovery Videos page. Backend: - Add Video and VideoEntry models and relations - Add video controller and /video routes - Add video thumbnail generation service (ffmpeg-static) - Add video upload storage location and config Frontend: - Add DiscoveryVideosPage with sidebar link and route - Add AddVideoDialog, VideoDropzone, EntryMultiSelect, VideoCard and VideoPlayerDialog components - Add discoveryVideos API client and useDiscoveryVideos hook - Add format helpers, video types and normalizers - Add skeleton for the page Docs: - Document the feature in docs-vault
This commit is contained in:
1 parent
4d88747649
commit
eb3a12f6cb
41 files changed
+2163
-15
No files matched your search
@@ -170,6 +170,23 @@ See [[Media System]] for details.
|
||||
|
||||
---
|
||||
|
||||
## Discovery Videos
|
||||
|
||||
> [!info] File: `routes/video.routes.js` → `controllers/videoController.js`
|
||||
|
||||
See [[Discovery Videos]] for details.
|
||||
|
||||
| Method | Path | Description |
|
||||
|---|---|---|
|
||||
| `GET` | `/discovery-videos?page=&limit=` | Paginated list (includes linked entries) |
|
||||
| `POST` | `/discovery-videos` | Multipart upload: `videos[]` (≤ 10), `description`, `entryIds` (JSON array) |
|
||||
| `PUT` | `/discovery-videos/:id` | Update title / description / entry links |
|
||||
| `DELETE` | `/discovery-videos/:id` | Delete record + files from disk |
|
||||
| `GET` | `/discovery-videos/:id/thumbnail` | Thumbnail image — generated on demand when missing |
|
||||
| `GET` | `/discovery-videos/:id/stream` | Video stream with HTTP Range support (`?token=` auth) |
|
||||
|
||||
---
|
||||
|
||||
## People
|
||||
|
||||
> [!info] File: `routes/people.routes.js` → `controllers/peopleController.js`
|
||||
|
||||
Reference in new issue
Block a user