diff --git a/server/bunny.ts b/server/bunny.ts index 1fcad45..ea64ee4 100644 --- a/server/bunny.ts +++ b/server/bunny.ts @@ -55,15 +55,15 @@ export class BunnyService { // Use proxy endpoint for thumbnails to handle private access const thumbnailUrl = `/thumbnail/${bunnyVideo.guid}`; - // For private videos, use iframe embed which properly handles private video authentication - const videoUrl = `https://iframe.mediadelivery.net/embed/${this.libraryId}/${bunnyVideo.guid}?controls=true&autoplay=false&preload=metadata`; + // For private videos, use iframe embed which properly handles authentication + const iframeUrl = `https://iframe.mediadelivery.net/embed/${this.libraryId}/${bunnyVideo.guid}?controls=true&autoplay=false`; return { id: bunnyVideo.guid, title: bunnyVideo.title || 'Untitled Video', description: null, // Bunny API doesn't return description in list view thumbnailUrl, - videoUrl, + videoUrl: iframeUrl, // Use iframe for reliable playback duration: Math.floor(bunnyVideo.length || 0), views: bunnyVideo.views || 0, category: bunnyVideo.category || null,