- {/* DEBUG OVERLAY */}
- {showDebug && (
-
-
Diagnostic Caméra
-
Secure Context: {window.isSecureContext ? "YES (HTTPS/Local)" : "NO (HTTP) - CAMERA BLOCKED"}
-
Err Permission: {permissionError || "Aucune"}
-
Resolution: {resolutionInfo}
-
Selected Device: {selectedDeviceId || "Auto"}
-
Stream Active: {stream ? "Oui" : "Non"}
-
-
Devices ({devices.length}):
- {devices.map((d, i) => (
-
- [{d.kind}] {d.label || "Sans étiquette"} ({d.deviceId.slice(0, 8)}...)
-
- ))}
-
- )}
-
- {/* Critical Error Display */}
- {!window.isSecureContext && (
-
+ {/* Error Overlay */}
+ {cameraError && (
+
-
Connexion non sécurisée (HTTP)
-
Les navigateurs bloquent l'accès caméra sur les sites non sécurisés (sauf localhost).
-
Veuillez passer en HTTPS ou utiliser localhost.
+
Erreur Caméra
+
{cameraError}
+
Vérifiez vos permissions et que vous êtes bien en HTTPS (ou localhost).
+
)}
- {/* Regular Error Display */}
- {permissionError && window.isSecureContext && (
-
-
-
Erreur : {permissionError}
-
-
- )}
-
- {/* Settings Modal */}
+ {/* Settings Overlay */}
{showSettings && !isRecording && (
@@ -326,10 +205,10 @@ export function CameraRecorder({ onCapture, onCancel }: CameraRecorderProps) {
-
+
+