- Done. The media platform now tracks sources as either local uploads or remote URLs.
Changed: [includes/db.php (line 43)](/Users/tyemeclifford/Documents/GH/mediaplayer/includes/db.php:43) adds source_type and source_url, with an automatic migration for existing SQLite databases. [admin/add.php (line 260)](/Users/tyemeclifford/Documents/GH/mediaplayer/admin/add.php:260) and [admin/edit.php (line 383)](/Users/tyemeclifford/Documents/GH/mediaplayer/admin/edit.php:383) now let each source be an upload or an external URL. [index.php (line 226)](/Users/tyemeclifford/Documents/GH/mediaplayer/index.php:226) and [embed.php (line 193)](/Users/tyemeclifford/Documents/GH/mediaplayer/embed.php:193) resolve playback URLs based on where the source lives. [catalogue.php (line 79)](/Users/tyemeclifford/Documents/GH/mediaplayer/catalogue.php:79) now has public search for published videos only. [README.md (line 63)](/Users/tyemeclifford/Documents/GH/mediaplayer/README.md:63) documents local vs remote sources and public search.
This commit is contained in:
@@ -41,8 +41,8 @@ Styled to match the existing `gate.php` / `index.php` dark theme exactly.
|
||||
│ └── layout.php ← Shared HTML head, topbar, footer, pagination
|
||||
├── admin/
|
||||
│ ├── index.php ← Video list with search + pagination
|
||||
│ ├── add.php ← Add new video with multi-format sources
|
||||
│ ├── edit.php ← Edit video metadata + manage sources
|
||||
│ ├── add.php ← Add new video with uploaded or external URL sources
|
||||
│ ├── edit.php ← Edit video metadata + manage local/remote sources
|
||||
│ ├── settings.php ← Site settings, per-page count, password
|
||||
│ ├── login.php ← Admin login
|
||||
│ ├── logout.php ← Session destroy + redirect
|
||||
@@ -63,12 +63,21 @@ Styled to match the existing `gate.php` / `index.php` dark theme exactly.
|
||||
1. Go to `admin/add.php`
|
||||
2. Fill in title, description, duration, sort order
|
||||
3. Upload a thumbnail (JPG/PNG/WebP)
|
||||
4. Upload one or more video files — each can be a different format or quality:
|
||||
4. Add one or more video sources. Each source can be either:
|
||||
- an uploaded local video file, stored under `media/videos/`
|
||||
- an external video URL, stored in SQLite and played directly by URL
|
||||
5. For uploaded files, supported formats include:
|
||||
- **MP4** (H.264) — widest compatibility
|
||||
- **WebM** (VP9) — smaller size, modern browsers
|
||||
- **OGV** — Firefox fallback (legacy)
|
||||
5. Set quality labels (1080p, 720p, 480p, etc.)
|
||||
6. Save — Video.js will auto-select the best format the browser supports
|
||||
6. Set quality labels (1080p, 720p, 480p, etc.)
|
||||
7. Save — Video.js will use the stored source location and auto-select the best format the browser supports
|
||||
|
||||
External URLs must use `http://` or `https://`. Uploaded files and remote URLs can be mixed on the same video.
|
||||
|
||||
### Public Search
|
||||
|
||||
The full catalogue page includes a public search for published videos only. Search matches video title, description, and slug; draft videos remain hidden.
|
||||
|
||||
### Catalogue Per-Page
|
||||
|
||||
@@ -92,6 +101,7 @@ Use the **Sort Order** field — lower numbers appear first. Default is 0.
|
||||
- Custom skin matching the site's dark purple/green theme
|
||||
- Playback rate controls: 0.5×, 1×, 1.25×, 1.5×, 2×
|
||||
- Multiple source fallback — browser picks best format automatically
|
||||
- Local uploaded sources and remote URL sources
|
||||
- Thumbnail posters
|
||||
- Keyboard accessible
|
||||
|
||||
|
||||
Reference in New Issue
Block a user