From d7d02f59d5a48347a4d9aa6e3e5ef24cef878a9c Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Thu, 31 Oct 2024 00:34:15 +0200 Subject: [PATCH] Add fluid video.js option --- functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 914653f..9c7ef59 100644 --- a/functions.php +++ b/functions.php @@ -208,6 +208,10 @@ function stream_player_shortcode($params = []) { 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'); + $videoJsConfig = [ + 'fluid' => true, + ]; + $params = array_merge([ 'host' => 'stream.openfest.org', 'track' => 'hall-a', @@ -217,7 +221,7 @@ function stream_player_shortcode($params = []) { ob_start(); ?> -