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> |
||
|---|---|---|
| .. | ||
| admin.html | ||
| video-server-enhanced.js | ||
| video-server-final.js | ||
| video-server.js | ||
| wrangler-enhanced.toml | ||
| wrangler-simple.toml | ||
| wrangler.toml | ||