From 60f33156b4cb9d837732fb55455975fa27edc4c1 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 30 Aug 2025 13:07:55 +0000 Subject: [PATCH] Add direct MP4 URL for video previews and face detection fields Update BunnyService to include `videoUrlMp4` with a direct MP4 link and add new fields `faceCenterPosition`, `facesDetected`, and `faceConfidence` for face detection data. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/iazasnP --- server/bunny.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/bunny.ts b/server/bunny.ts index 0f831b2..f973ca8 100644 --- a/server/bunny.ts +++ b/server/bunny.ts @@ -107,7 +107,7 @@ export class BunnyService { thumbnailUrl, customThumbnailUrl: null, videoUrl: hlsUrl, // Signed HLS URL - videoUrlMp4: null, // Remove MP4 since it likely won't work for private videos + videoUrlMp4: `https://${this.hostname}/${bunnyVideo.guid}/play_720p.mp4`, // Direct MP4 URL for preview videoUrlIframe: iframeUrl, // iframe fallback duration: Math.floor(bunnyVideo.length || 0), views: bunnyVideo.views || 0, @@ -121,6 +121,9 @@ export class BunnyService { resolution: null, format: null, encoding: null, + faceCenterPosition: null, + facesDetected: null, + faceConfidence: null, createdAt: new Date(bunnyVideo.dateUploaded), updatedAt: new Date(bunnyVideo.dateUploaded) };