diff --git a/src/components/layout/Templates/BoardLayout.tsx b/src/components/layout/Templates/BoardLayout.tsx
index 81f4ed712..f82730dac 100644
--- a/src/components/layout/Templates/BoardLayout.tsx
+++ b/src/components/layout/Templates/BoardLayout.tsx
@@ -243,6 +243,12 @@ const BackgroundImage = () => {
return null;
}
+ // Check if the background image URL is a video
+ const videoFormat = getVideoFormat(config?.settings.customization.backgroundImageUrl);
+ if (videoFormat) {
+ return ;
+ }
+
return (
{
);
};
+
+const getVideoFormat = (video: string) => {
+ const supportedFormats = ['mp4', 'webm', 'ogg'];
+ for(const format of supportedFormats) {
+ if(video.endsWith(format)) return format;
+ }
+ return undefined;
+}
+
+interface BackgroundVideoProps {
+ videoSource: string;
+ videoFormat: string;
+}
+
+const BackgroundVideo = ({videoSource, videoFormat}: BackgroundVideoProps) => {
+ return (
+
+ );
+};
+
+
export const useBoardLink = (
link: '/board' | `/board/${string}/customize` | `/board/${string}`
) => {