75afc987f4
Major improvements to stream type detection logic: - Refactor validateHTTPStream with prioritized detection chain - Use JPEG magic bytes (FF D8 FF) as primary detection method - Add comprehensive URL pattern matching for JPEG streams - Properly distinguish between JPEG snapshots and MJPEG streams - Remove duplicated detection logic from testHTTP function - Consolidate all HTTP type detection in validateHTTPStream This fixes the issue where cameras returning incorrect Content-Type (e.g., application/octet-stream instead of image/jpeg) were being misclassified as HTTP_UNKNOWN instead of JPEG. Detection priority: 1. Magic bytes (most reliable) 2. Content-Type headers 3. URL patterns (fallback for misconfigured cameras) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>