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
This commit is contained in:
parent
77055dec61
commit
60f33156b4
@ -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)
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user