/* FICHIER 1 : index.html */ Lecteur Média
[ 'images' => ['jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp'], 'videos' => ['mp4', 'webm', 'ogg', 'mov', 'avi', 'mkv'] ], 'media_folder' => MEDIA_FOLDER, 'image_duration' => IMAGE_DURATION ]; ?> // .htaccess (optionnel - pour configuration Apache) # Activer la réécriture d'URL RewriteEngine On # Autoriser l'accès aux fichiers média Header set Access-Control-Allow-Origin "*" # Désactiver la liste des répertoires Options -Indexes # Page d'erreur personnalisée ErrorDocument 404 /index.html /* Structure des fichiers recommandée: votre-projet/ ├── index.html ├── get_media.php ├── config.php (optionnel) ├── .htaccess (optionnel) └── media/ ├── image1.jpg ├── image2.png ├── video1.mp4 └── video2.webm */