Skip to content
Permalink
Browse files

Addressed Mark's feedback

JW8-10170
  • Loading branch information...
waxidiotic committed Aug 14, 2019
1 parent b1b9dd8 commit c0cb6df7782a14cd1f2f5dad6bfee07210e4aca7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/js/controller/instream-adapter.js
@@ -404,9 +404,9 @@ const InstreamAdapter = function(_controller, _model, _view, _mediaPool) {
*/
this.skipAd = function(event) {
const autoPauseAds = _model.get('autoPause').pauseAds;
const didNotAutostart = _model.get('playReason') !== 'autostart';
const didAutostart = _model.get('playReason') === 'autostart';
const viewable = _model.get('viewable');
if (autoPauseAds && didNotAutostart && !viewable) {
if (autoPauseAds && !didAutostart && !viewable) {
// If autoPause.pauseAds is enabled and player is not viewable
// when skipAd() is called, do not resume playback unless player
// was autostarted out of view and never came in to view

0 comments on commit c0cb6df

Please sign in to comment.
You can’t perform that action at this time.