From 7c7661f8b4d9a146b50bc8fd6472f81a6298ac1c Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Thu, 31 Oct 2024 22:13:44 +0200 Subject: [PATCH] Simplify Video.js setup --- functions.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/functions.php b/functions.php index 14e0229..7c2b7c0 100644 --- a/functions.php +++ b/functions.php @@ -208,10 +208,6 @@ 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'); - $vjsConfig = htmlspecialchars(json_encode([ - 'fluid' => true, - ])); - $params = array_merge([ 'host' => 'stream.openfest.org', 'track' => 'hall-a', @@ -220,7 +216,7 @@ function stream_player_shortcode($params = []) { $urlPrefix = 'https://' . $params['host'] . '/'; return << +