Skip to content

Commit

Permalink
Merge pull request #29 from basil79/add-timeouts
Browse files Browse the repository at this point in the history
added checker for test button to play video element if paused for pre…
  • Loading branch information
basil79 authored Jan 27, 2022
2 parents 96d9c46 + 19537b0 commit 260e97f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@
eventsList.innerHTML = '';

var giveVastUrl = document.getElementById('vast-url-input').value;

if(videoElement.paused) {
videoElement.play();
}

adsManager.requestAds(giveVastUrl, {
resolveAll : false
});
Expand Down

0 comments on commit 260e97f

Please sign in to comment.