b9c92540d4
Scans nested course folders for mp4s, tracks per-user resume position and per-folder progress. SPA frontend with hash routing over a JSON API; range-request streaming via stream.php. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21 lines
657 B
PHP
21 lines
657 B
PHP
<?php
|
|
// ---- CourseHub configuration ----
|
|
|
|
// Absolute path to the directory that contains your course folders, e.g.
|
|
// /srv/media/courses/
|
|
// Course 1/Intro/Video1.mp4
|
|
// Course 2/Module 3/Advanced/lesson.mp4
|
|
define('VIDEOS_ROOT', '/home/harwinder/Development/coursehub/videos');
|
|
|
|
define('DB_HOST', '127.0.0.1');
|
|
define('DB_PORT', 3306);
|
|
define('DB_NAME', 'coursehub');
|
|
define('DB_USER', 'coursehub');
|
|
define('DB_PASS', 'change-me');
|
|
|
|
// A video counts as "completed" once the user has watched this fraction of it.
|
|
define('COMPLETE_THRESHOLD', 0.95);
|
|
|
|
// Allow new users to self-register from the login page.
|
|
define('ALLOW_REGISTRATION', true);
|