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:
parent
c69b1fef31
commit
2c508bf4bc
BIN
attached_assets/image_1756380923185.png
Normal file
BIN
attached_assets/image_1756380923185.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 921 KiB |
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user