From 42071de21dfa93f3ff5a04addf48b2e2786d0e54 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Wed, 30 Oct 2024 23:42:23 +0200 Subject: [PATCH] Add Video.js styles and script if a stream is active --- front-page-content.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front-page-content.php b/front-page-content.php index f308b54..ec7f24a 100644 --- a/front-page-content.php +++ b/front-page-content.php @@ -66,6 +66,9 @@ if ($isBeforeEvent) { } if ($activeStream) { + wp_enqueue_style('video.js', 'https://unpkg.com/video.js/dist/video-js.css'); + wp_enqueue_script('video.js', 'https://unpkg.com/video.js/dist/video.min.js'); + // TODO }