obs-r2-uploader/worker
Jeff Emmett fd5868f569 Fix video playback from R2 with proper range request handling
Critical fixes for video streaming:

- Fix range request handling by using HEAD request first
  - Get total file size before processing range requests
  - Properly calculate Content-Range header with accurate boundaries
  - Prevent issues where object.size wasn't available on range requests

- Add proper CORS headers for video streaming
  - Expose Content-Length, Content-Range, Accept-Ranges headers
  - Allow Range header in requests
  - Enables video seeking and progressive loading in browsers

- Improve range request logic
  - Ensure end byte doesn't exceed file size
  - Calculate correct Content-Length for partial responses
  - Always return accurate byte ranges in 206 responses

These fixes resolve issues where videos wouldn't play or seek properly
due to incorrect Content-Range headers and missing CORS headers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 22:07:17 -08:00
..
admin.html Initial commit: OBS R2 video uploader and streaming service 2025-11-25 03:37:35 -08:00
video-server-enhanced.js Fix video playback from R2 with proper range request handling 2025-11-25 22:07:17 -08:00
video-server-final.js Initial commit: OBS R2 video uploader and streaming service 2025-11-25 03:37:35 -08:00
video-server.js Initial commit: OBS R2 video uploader and streaming service 2025-11-25 03:37:35 -08:00
wrangler-enhanced.toml Initial commit: OBS R2 video uploader and streaming service 2025-11-25 03:37:35 -08:00
wrangler-simple.toml Initial commit: OBS R2 video uploader and streaming service 2025-11-25 03:37:35 -08:00
wrangler.toml Initial commit: OBS R2 video uploader and streaming service 2025-11-25 03:37:35 -08:00