Disable preroll and postroll ads in video embeds

Modify Bunny.net embed URLs to explicitly disable preroll and postroll ads by appending '?preroll=false&postroll=false&ads=false' to the iframe URL in server/bunny.ts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d7424866-83d1-4486-a212-ac12b4c7becf
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/d7424866-83d1-4486-a212-ac12b4c7becf/vzQNQIB
This commit is contained in:
sebastjanartic 2025-08-28 11:37:04 +00:00
parent c69b1fef31
commit 2c508bf4bc
2 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 921 KiB

View File

@ -57,7 +57,7 @@ export class BunnyService {
// Generate signed HLS URL for private video access
const hlsUrl = this.generateSignedUrl(bunnyVideo.guid);
const iframeUrl = `https://iframe.mediadelivery.net/embed/${this.libraryId}/${bunnyVideo.guid}`;
const iframeUrl = `https://iframe.mediadelivery.net/embed/${this.libraryId}/${bunnyVideo.guid}?preroll=false&postroll=false&ads=false`;
return {
id: bunnyVideo.guid,