feat: Embedding for Bunny Stream
This commit is contained in:
@@ -197,6 +197,13 @@ export function getEditorTools() {
|
||||
window.innerWidth < 640 ? '15rem' : '30rem'
|
||||
};" frameborder="0" allowfullscreen></iframe>`,
|
||||
},
|
||||
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: `<iframe style="width:100%; height: ${
|
||||
window.innerWidth < 640 ? '15rem' : '30rem'
|
||||
};" frameborder="0" allowfullscreen></iframe>`,
|
||||
},
|
||||
codepen: true,
|
||||
aparat: {
|
||||
regex: /(?:http[s]?:\/\/)?(?:www.)?aparat\.com\/v\/([^\/\?\&]+)\/?/,
|
||||
|
||||
@@ -182,6 +182,7 @@ def get_lesson_icon(body, content):
|
||||
"youtube",
|
||||
"vimeo",
|
||||
"cloudflareStream",
|
||||
"bunnyStream",
|
||||
]:
|
||||
return "icon-youtube"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user