1
0
Commit Graph

12 Commits

Author SHA1 Message Date
Michael Verdi
da4ca420f6 Fix 2D control panel positioning relative to canvas
- Fix panel positioning calculation to account for panel height
- Position panel bottom edge 10% from canvas bottom (not container)
- Ensure panel stays within canvas bounds when WebGL canvas is active
- Update positioning on window resize for responsive behavior
- Resolves issue where panel appeared partially below canvas
2025-07-31 19:24:56 -05:00
Michael Verdi
dbaefeb337 Implement 2D video controls for non-VR devices
- Add complete 2D control panel with HTML structure and CSS styling
- Implement JavaScript functionality for all control buttons:
  - Fullscreen toggle for immersive 16:9 video experience
  - Play/pause with dynamic icon switching
  - Back/forward 15-second skip controls
  - Mute/unmute toggle
  - Click-to-seek progress bar with real-time updates
- Add auto-hide behavior (5-second timeout) with mouse/touch activation
- Integrate with existing 2D mode - shows only when VR not supported
- Include all button PNG assets (normal and hover states)
- Responsive design for mobile devices
- Professional styling matching design specifications
2025-07-31 18:26:49 -05:00
Michael Verdi
14e90f7428 Replaced svg with png file 2025-07-31 14:54:31 -05:00
Michael Verdi
e748d904ea Refactor: Use external SVG file for play button
- Replace embedded SVG code with external play.svg file
- Update HTML to use <img src='play.svg'> for cleaner code
- Update CSS selector from 'svg' to 'img' element
- Maintain all existing functionality and styling
- Improve code maintainability and separation of concerns
- Enable better caching and easier SVG updates
2025-07-30 10:35:32 -05:00
Michael Verdi
45e1617ca3 Implement custom SVG play button with enhanced UX
- Replace text button with beautiful SVG play button
- Position button over center of video with responsive sizing
- Add smooth hover and click animations
- Hide button after click and enable native browser controls for 2D
- Maintain VR functionality when supported
- Add proper accessibility with aria-label
- Responsive design works on mobile and desktop
2025-07-30 10:26:18 -05:00
Michael Verdi
b0430a75ee Clean up HTML element IDs: rename player-container to vr-container, vrVideo to vr180, and enterVrBtn to playBtn 2025-07-29 17:15:39 -05:00
Michael Verdi
f378a5fff1 Added a sample video and updated the README. 2025-07-29 13:47:24 -05:00
Michael Verdi
df75e2a32d Removed the video-info div, button is now visible but disabled when VR is not available, button label respected, title attribute of the video div is displayed as the video title in the UI. 2025-06-24 19:09:00 -05:00
Michael Verdi
8539a54f40 Update vr180-player.js and index.html to use HTML text for enterVrBtn and fix exit VR label 2025-06-18 17:05:35 -05:00
Michael Verdi
7b3aee7636 Update index.html 2025-06-18 09:50:14 -05:00
Michael Verdi
40b350fb7f Can I make a commit? 2025-06-07 17:26:46 -05:00
Michael Verdi
c1cd670275 Add files via upload 2025-06-04 16:28:46 -05:00