From 39988f20f3d4e7646f8e8679f3bffaa2e21e9b9d Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 12 May 2021 16:40:10 +0200 Subject: [PATCH] responsive layout --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index c15237f..22a6764 100644 --- a/script.js +++ b/script.js @@ -8,13 +8,14 @@ document.addEventListener("DOMContentLoaded", () => { let xhr = new XMLHttpRequest(); xhr.addEventListener("load", () => { let video = document.createElement("video"); - video.className = "video-js"; + video.className = "video-js vjs-big-play-centered"; body.appendChild(video); let ctype = xhr.getResponseHeader("Content-Type"); console.log(ctype); let options = {}; options.controls = true; options.liveui = true; + options.responsive = true; options.techOrder = ["chromecast", "html5"]; options.plugins = {}; options.plugins.chromecast = {};