IDCARD SCANNER

Scan a press ID QR code to verify its authenticity

Position the QR code in front of your camera

⚠️

Camera Access Issue

Could not access your camera. Please check your permissions or try another browser.

Enter the press ID manually:

Verification Result

Verifying ID...
STATUS Expired

Name

Position:

Media:

Press ID:

Region:

Status:

Verification Failed

Press ID not found in our database.

const qrReader = document.getElementById('qrcode-reader'); function startScanner() { // Implementation for QR code scanning in AMP // This is a simplified version due to AMP restrictions try { // Request camera access navigator.mediaDevices.getUserMedia({ video: { facingMode: "environment" } }) .then(function(stream) { // Set up QR code scanning // Due to AMP restrictions, we need to use a simplified approach // This would be implemented with a compatible QR scanning library // When QR code is detected, send the data for verification const mockQrCode = "DEMO123"; // This would be the actual scanned code verifyPressId(mockQrCode); }) .catch(function(error) { document.dispatchEvent(new CustomEvent('camera-error', { detail: { message: "Could not access camera. Please check permissions." } })); }); } catch (error) { document.dispatchEvent(new CustomEvent('camera-error', { detail: { message: "Camera access not supported in this browser." } })); } } function stopScanner() { // Stop the scanner } function verifyPressId(pressId) { // Send event to trigger verification document.dispatchEvent(new CustomEvent('qr-detected', { detail: { pressId: pressId } })); } // Export functions for AMP to use exportFunction('start', startScanner); exportFunction('stop', stopScanner);