Commit Graph

6 Commits

Author SHA1 Message Date
dilgenfritz 77af6076e0 Fix Porn Cinema video loading bug and cleanup debug logs
CRITICAL BUG FIX: Porn Cinema Video Loading
- Fixed destructive data overwrite issue where DesktopFileManager was clearing unified video library
- Added data preservation logic to prevent overwriting existing videos when no directories are linked
- Enhanced VideoLibrary fallback mechanisms for reliable video access across components
- Resolved timing/synchronization issues between main game and Porn Cinema

 CLEANUP & OPTIMIZATION
- Removed excessive debug logging from porn-cinema.html initialization
- Cleaned up console output in desktop-file-manager.js and videoLibrary.js
- Preserved core functionality while improving user experience

 DOCUMENTATION
- Updated ROADMAP.md with completed video loading bug fix milestone
- Added detailed technical implementation notes

This resolves the issue where users had linked video directories in the main game
but videos weren't appearing in the Porn Cinema due to storage conflicts.
2025-10-31 15:01:31 -05:00
dilgenfritz 755b5ec8d6 COMPLETE: Video Player Extraction & Integration
BaseVideoPlayer System:
- Created BaseVideoPlayer class (400+ lines) with full video controls
- Built FocusVideoPlayer extending base for focus interruptions
- Added base-video-player.css for shared styling
- Global exports for browser compatibility

 Integration Complete:
- Updated interactiveTaskManager.js with FocusVideoPlayer + fallback
- Added script loading to index.html in proper order
- Created video-player-test.html - ALL TESTS PASSING

 Architecture Ready:
- Modular, reusable video components
- Consistent styling across game modes
- Foundation prepared for porn cinema refactoring
- Backward compatible with existing focus sessions
2025-10-31 07:27:07 -05:00
dilgenfritz 1e89ee95aa Implement clean porn cinema layout with header and sidebar navigation
- Fix HTML structure: move header inside body tag
- Style header to match mockup: slim purple gradient design
- Create right sidebar with Playlist/Search tabs
- Minimize Video Library section for clean appearance
- Add proper two-column grid layout
- Implement tab switching functionality
- Override conflicting body flex styles for cinema mode
2025-10-30 21:11:57 -05:00
dilgenfritz a2af9ba8f3 Implement working Porn Cinema media player with video library
- Added complete porn cinema media player with dedicated HTML page
- Implemented PornCinema class with video playback, controls, keyboard shortcuts
- Added VideoLibrary class with thumbnail generation and duration display
- Canvas-based thumbnails with aspect ratio support for portrait/landscape videos
- Playlist functionality with save/load, shuffle, auto-advance
- Desktop file manager integration for video file access
- Enhanced MIME type handling with fallback strategies for .mov files
- Professional dark cinema theme with responsive design
- One-handed keyboard controls for playback and navigation
- Quality selection, theater mode, fullscreen support
- Working video playback with proper file:// URL handling for Electron
2025-10-30 20:12:00 -05:00
dilgenfritz c65a58bae9 Fix Porn Cinema desktop file manager integration
- Initialize DesktopFileManager properly in porn-cinema.html
- Add minimal data manager for standalone cinema operation
- Update VideoLibrary to use correct desktop file manager API
- Scan all video directories (background, tasks, rewards, punishments)
- Add fallback to localStorage for stored videos
- Improve empty library display with helpful instructions
- Add gameDataManager dependency for data operations
- Better error handling and user guidance

Fixes:
 Desktop file manager now properly initialized
 Video library loads from all categories
 Graceful fallback when videos not found
 Clear instructions for adding videos
2025-10-30 19:02:43 -05:00
dilgenfritz c524f3bc46 Implement Porn Cinema media player
- Add dedicated porn-cinema.html page with professional media player UI
- Create PornCinema class with full video player functionality
- Implement VideoLibrary class for grid/list video management
- Add comprehensive one-handed keyboard shortcuts
- Support playlist creation, management, and auto-advance
- Include quality selection and theater/fullscreen modes
- Add cinema-specific CSS styling with dark theme
- Integrate with existing video management system
- Add button on home screen to launch cinema mode

Features:
 Separate dedicated page
 Video thumbnails using existing patterns
 Playlist support from start
 Multiple quality options for performance
 One-handed keyboard shortcuts for easy control
 Professional media player controls
 Grid/list library views
 Theater mode and fullscreen support
2025-10-30 16:43:03 -05:00