Restored to '7fd7127003398a269f1f765208c8baced728aafb'

Replit-Restored-To: 7fd7127003
This commit is contained in:
sebastjanartic
2025-08-30 12:39:34 +00:00
parent a424d51560
commit 2355fc4da6
30 changed files with 111 additions and 602 deletions
+2 -4
View File
@@ -73,11 +73,9 @@ export class BunnyService {
private bunnyVideoToVideo(bunnyVideo: BunnyVideo | BunnyVideoDetails): Video {
// Generate optimized thumbnail URL from Bunny CDN with WebP format for better performance
// Add cache busting timestamp to ensure fresh thumbnails
const timestamp = Date.now();
const thumbnailUrl = bunnyVideo.thumbnailFileName
? `https://${this.hostname}/${bunnyVideo.guid}/${bunnyVideo.thumbnailFileName}?width=400&height=225&format=webp&t=${timestamp}`
: `https://${this.hostname}/${bunnyVideo.guid}/thumbnail.jpg?width=400&height=225&format=webp&t=${timestamp}`;
? `https://${this.hostname}/${bunnyVideo.guid}/${bunnyVideo.thumbnailFileName}?width=400&height=225&format=webp`
: `https://${this.hostname}/${bunnyVideo.guid}/thumbnail.jpg?width=400&height=225&format=webp`;
// Generate signed HLS URL for private video access
const hlsUrl = this.generateSignedUrl(bunnyVideo.guid);