From 9ab3da61aa4738d8219996260f861fb4643837ee Mon Sep 17 00:00:00 2001 From: Ivo Branco Date: Fri, 8 Dec 2023 23:02:15 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(video=5Fplayer)=20lazy=20load=20embed?= =?UTF-8?q?=20video=20player?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of loading the external video player, it only loads the video player if the user clicks on the big ▶ icon. --- CHANGELOG.md | 1 + .../djangocms_video/default/video_player.html | 83 ++++++++++++++++++- tests/apps/core/test_videoplayer.py | 36 ++++++++ 3 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 tests/apps/core/test_videoplayer.py diff --git a/CHANGELOG.md b/CHANGELOG.md index cc6dc445d4..438e72fd04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ Versioning](https://semver.org/spec/v2.0.0.html). ### Added +- Lazy load embed video player - Add a footer on enrollment's item in the learner dashboard. It give the possibility to purchase linked product or download linked certificate. - Add download contracts pages on the teacher dashboard. diff --git a/src/richie/apps/core/templates/djangocms_video/default/video_player.html b/src/richie/apps/core/templates/djangocms_video/default/video_player.html index e13d7b05fb..2483cc7509 100644 --- a/src/richie/apps/core/templates/djangocms_video/default/video_player.html +++ b/src/richie/apps/core/templates/djangocms_video/default/video_player.html @@ -1,7 +1,13 @@ -{% load i18n cms_tags %} +{% load i18n cms_tags extra_tags thumbnail static %} {% comment %} This is a copy of original template from plugin just to clean