From badaa33ddb7006c61c797809871aef3ae1e01304 Mon Sep 17 00:00:00 2001 From: safe user Date: Thu, 24 Apr 2025 07:01:55 +0000 Subject: [PATCH] feat: Embedding for CloudflareStream --- frontend/src/utils/index.js | 3 ++- lms/lms/utils.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index 9c717596..f2c24ce2 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -260,7 +260,8 @@ export function getEditorTools() { }, cloudflareStream: { regex: /https:\/\/customer-[a-z0-9]+\.cloudflarestream\.com\/([a-f0-9]{32})\/watch/, - embedUrl: 'https://iframe.videodelivery.net/<%= remote_id %>', + embedUrl: + 'https://iframe.videodelivery.net/<%= remote_id %>', html: ``, diff --git a/lms/lms/utils.py b/lms/lms/utils.py index 26c4903a..a069acb7 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -181,7 +181,7 @@ def get_lesson_icon(body, content): if block.get("type") == "embed" and block.get("data").get("service") in [ "youtube", "vimeo", - "cloudflareStream" + "cloudflareStream", ]: return "icon-youtube"