<?php
// Media upload configuration

// Allowed MIME types per content type
define('MEDIA_ALLOWED', [
    'video' => ['video/mp4', 'video/webm', 'video/ogg'],
    'slides' => ['application/pdf', 'application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.presentationml.presentation'],
    'assignment' => ['application/pdf', 'application/zip', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
    'image' => ['image/jpeg', 'image/png', 'image/gif'],
    'audio' => ['audio/mpeg', 'audio/ogg']
]);

// Max sizes (bytes)
define('MEDIA_MAX_SIZE', [
    'video' => 200 * 1024 * 1024,   // 200MB
    'slides' => 20 * 1024 * 1024,   // 20MB
    'assignment' => 50 * 1024 * 1024,// 50MB
    'image' => 5 * 1024 * 1024,     // 5MB
    'audio' => 50 * 1024 * 1024     // 50MB
]);

// Path to ffmpeg command (if available)
define('FFMPEG_PATH', '/usr/bin/ffmpeg');

// Web-visible upload base path (relative to project)
define('MEDIA_WEBPATH', 'uploads/courses');
