From f8fb412691ca302574b4894aa5b9e358dbf3cd1f Mon Sep 17 00:00:00 2001 From: Ivan Ramljak Date: Wed, 4 Sep 2024 16:08:44 +0200 Subject: [PATCH] Fix video component poster - remove posterId from php template as it is not used - fix posterId type in manifest --- blocks/init/src/Blocks/components/video/manifest.json | 2 +- blocks/init/src/Blocks/components/video/video.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/blocks/init/src/Blocks/components/video/manifest.json b/blocks/init/src/Blocks/components/video/manifest.json index 24e8020..4d5fdf5 100644 --- a/blocks/init/src/Blocks/components/video/manifest.json +++ b/blocks/init/src/Blocks/components/video/manifest.json @@ -51,7 +51,7 @@ "default": "metadata" }, "videoPosterId": { - "type": "string" + "type": "number" }, "videoPosterUrl": { "type": "string" diff --git a/blocks/init/src/Blocks/components/video/video.php b/blocks/init/src/Blocks/components/video/video.php index 3e8a4ec..20b6cf0 100644 --- a/blocks/init/src/Blocks/components/video/video.php +++ b/blocks/init/src/Blocks/components/video/video.php @@ -26,7 +26,6 @@ } $videoMimeType = Helpers::checkAttr('videoMimeType', $attributes, $manifest); -$videoPosterId = Helpers::checkAttr('videoPosterId', $attributes, $manifest); $videoPosterUrl = Helpers::checkAttr('videoPosterUrl', $attributes, $manifest); $videoLoop = Helpers::checkAttr('videoLoop', $attributes, $manifest); $videoAutoplay = Helpers::checkAttr('videoAutoplay', $attributes, $manifest); @@ -47,7 +46,6 @@ class="" preload="" - poster="" poster=""