chore: Added new Embed URL for BunnyStream Player

This commit is contained in:
CA Harsh Agrawal
2026-03-13 18:32:17 +05:30
parent 62685b93e2
commit 6085471053
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -183,7 +183,7 @@ export function getEditorTools() {
window.innerWidth < 640 ? '15rem' : '30rem'
};" frameborder="0" allowfullscreen></iframe>`,
},
bunnyStream: {
legacyBunnyStream: {
regex: /^https:\/\/(?:iframe\.mediadelivery\.net|video\.bunnycdn\.com)\/play\/([a-zA-Z0-9]+\/[a-zA-Z0-9-]+)$/,
embedUrl:
'https://iframe.mediadelivery.net/embed/<%= remote_id %>',
@@ -191,6 +191,14 @@ export function getEditorTools() {
window.innerWidth < 640 ? '15rem' : '30rem'
};" frameborder="0" allowfullscreen></iframe>`,
},
bunnyStream: {
regex: /https:\/\/(?:player\.mediadelivery\.net)\/play\/([a-zA-Z0-9]+\/[a-zA-Z0-9-]+)$/,
embedUrl:
'https://player.mediadelivery.net/embed/<%= remote_id %>',
html: `<iframe style="width:100%; height: ${
window.innerWidth < 640 ? '15rem' : '30rem'
};" frameborder="0" allowfullscreen></iframe>`,
},
codepen: true,
aparat: {
regex: /^(?:http[s]?:\/\/)?(?:www.)?aparat\.com\/v\/([^\/\?\&]+)\/?$/,
+1
View File
@@ -202,6 +202,7 @@ def get_lesson_icon(body: str, content: str):
"vimeo",
"cloudflareStream",
"bunnyStream",
"legacyBunnyStream",
]:
return "icon-youtube"