Add low-quality server video support
Include low-quality video file paths in movie settings, expose them through the admin UI, and add a player toggle that streams /api/video with quality=low when available. Extend both Node and Python video endpoints to serve the low-quality file. Test: not run (mark for testing)
This commit is contained in:
@@ -21,6 +21,9 @@ const movieSchema = new mongoose.Schema({
|
||||
// Server-hosted file (relative path under VIDEO_FILES_DIR, default public/video)
|
||||
// If set, the backend can stream it via /api/video/:movieId (Range/seek supported).
|
||||
video_file: { type: String, required: false },
|
||||
// Optional low-quality server file (relative path under VIDEO_FILES_DIR, default public/video)
|
||||
// Served when the player requests ?quality=low on /api/video/:movieId.
|
||||
video_file_low: { type: String, required: false },
|
||||
watchedBy: [{ type: mongoose.Schema.Types.ObjectId, ref: 'User' }]
|
||||
}, { timestamps: true });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user