Skip to content

Commit

Permalink
Show video controls when testing outside of OBS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared K committed Mar 29, 2022
1 parent 9144b25 commit 1f2ff79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
() => {
Expand Down

0 comments on commit 1f2ff79

Please sign in to comment.