Work to add Youtube downloads, video and image uploads, and the player script

This commit is contained in:
Bradley committed 2026-11-13 17:37:31 -05:00
1 parent a3f55a8c35
commit 92d6473e1d
15 files changed
+1047 -79

No files matched your search

+15 -8
View File
@@ -2,8 +2,8 @@
Sanctuary Commander is the planned successor to Video Commander: a simple,
web-based interface for managing sanctuary TVs and displaying dynamically added
media. The current implementation provides the web interface and media-storage
foundation; playback and device control are still future work.
media. The current implementation provides the web interface, media storage, and
an FFplay-based player; playback UI controls and device control are still future work.
## Completed foundations
@@ -12,7 +12,9 @@ foundation; playback and device control are still future work.
- [x] Build a Bootstrap-based home page with controls grouped into common tools,
playback, and media submission.
- [x] Create the configured upload directory automatically when the server starts.
- [x] Implement static-image uploads that save a file and create a media record.
- [x] Upload named static images (up to 100MB) to the configurable `Images` folder,
show progress and navigation warnings, and return home after saving the file
and media record.
- [x] Add browser-side upload progress reporting and basic upload error feedback.
- [x] Implement stream registration with a display name and URL.
- [x] Provide a SQLite database wrapper and a database initialization script.
@@ -36,10 +38,13 @@ foundation; playback and device control are still future work.
## Playback and media preparation
- [ ] Implement FFPlay-based video and audio playback.
- [ ] Display uploaded static images.
- [ ] Play registered streams and apply stored playback options.
- [ ] Support uploading and playing local video files.
- [x] Implement fullscreen FFPlay-based playback with error-only FFplay logging.
- [x] Display uploaded static images when selected as active or default media.
- [x] Play registered stream URIs using the player.
- [ ] Apply compatible stored playback options without overriding fullscreen or logging rules.
- [x] Upload named local video files (up to 5GB) to the shared video storage folder,
show upload progress and navigation warnings, and return home after saving.
- [x] Play uploaded local video files when selected as active or default media.
- [x] Download YouTube videos ahead of time for later playback using queued jobs.
- [x] Implement a download worker that updates job status from `pending` to
`downloading` to `downloaded` after the file is saved successfully.
@@ -58,7 +63,9 @@ foundation; playback and device control are still future work.
the existing `media_preparing` flag; do not restore the old preparation table.
- [ ] Implement background media preparation using the new tracking approach.
- [ ] Surface preparation status in the web interface.
- [ ] Track active and default media and implement their intended behavior.
- [x] Poll active/default media every two seconds, prioritizing active media and
falling back to default media or a fullscreen black screen.
- [ ] Add web controls for changing active and default media.
- [ ] Implement the Disable Video and Blackout Screen controls.
- [ ] Detect USB media and make it available for playback.