From 820ec5bc3dcfb2d88252dc673449c361a369db2f Mon Sep 17 00:00:00 2001 From: churongcon Date: Fri, 9 Aug 2024 19:52:21 +0700 Subject: [PATCH] Update BunnyNet.php Ensure the URL uses the embed format --- includes/Integration/BunnyNet.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Integration/BunnyNet.php b/includes/Integration/BunnyNet.php index a716da4..9b96eac 100644 --- a/includes/Integration/BunnyNet.php +++ b/includes/Integration/BunnyNet.php @@ -186,11 +186,13 @@ public static function is_bunnynet_video_source() { * @return string video content */ private static function get_embed_video( $bunny_video_id ):string { + // Ensure the URL uses the embed format + $embed_url = str_replace('https://iframe.mediadelivery.net/play', 'https://iframe.mediadelivery.net/embed', $bunny_video_id); ob_start(); ?>
- +