From 1f2ff795541ce206754a954feadf97e70260e80f Mon Sep 17 00:00:00 2001 From: Jared K Date: Mon, 28 Mar 2022 20:37:21 -0700 Subject: [PATCH] Show video controls when testing outside of OBS --- js/body.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/body.js b/js/body.js index b33945c..75e6316 100644 --- a/js/body.js +++ b/js/body.js @@ -6,6 +6,12 @@ const player = /** @type {HTMLMediaElement} */ ( const player2 = /** @type {HTMLMediaElement} */ ( document.getElementById('videoPlayer2') ); + +if (!isOBS) { + player.setAttribute('controls', "true"); + player2.setAttribute('controls', "true"); +} + player.addEventListener( 'ended', () => {