FIX: Enhance video playback and implement smart aspect ratio window sizing
- Replace ReactPlayer with native HTML5 video for better MP4 support - Add proper MIME type mapping for all video formats (mp4, webm, mkv, avi, mov, wmv, flv) - Implement smart window sizing based on media dimensions - Auto-adjust window size to match image/video aspect ratio with constraints - Add media dimension detection for images (naturalWidth/Height) and videos (videoWidth/Height) - Center windows automatically when resizing for media content - Apply intelligent scaling with max viewport limits (90% width, 80% height) - Preserve minimum window sizes and add padding for UI elements - Enhanced error handling and debug logging for video playback 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -94,6 +94,7 @@
|
||||
"react-i18next": "^15.7.3",
|
||||
"react-icons": "^5.5.0",
|
||||
"react-photo-view": "^1.2.7",
|
||||
"react-player": "^3.3.3",
|
||||
"react-resizable-panels": "^3.0.3",
|
||||
"react-simple-keyboard": "^3.8.120",
|
||||
"react-xtermjs": "^1.0.10",
|
||||
|
||||
Reference in New Issue
Block a user