diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index e69c7747..19c17a9b 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -197,6 +197,14 @@ export function getEditorTools() { window.innerWidth < 640 ? '15rem' : '30rem' };" frameborder="0" allowfullscreen>`, }, + bunnyStream: { + 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 %>', + html: ``, + }, codepen: true, aparat: { regex: /(?:http[s]?:\/\/)?(?:www.)?aparat\.com\/v\/([^\/\?\&]+)\/?/, diff --git a/lms/lms/utils.py b/lms/lms/utils.py index 8e5f290e..ced178c6 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -182,6 +182,7 @@ def get_lesson_icon(body, content): "youtube", "vimeo", "cloudflareStream", + "bunnyStream", ]: return "icon-youtube"