Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #146 from Wikia/release-63-XW-3913
Browse files Browse the repository at this point in the history
XW-3913 | remove vpaid-specific, broken code
  • Loading branch information
Igor Rogatty authored Aug 28, 2017
2 parents 80b9010 + dc0c51b commit c186cee
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/modules/video-players/ooyala-v4.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,6 @@ export default class OoyalaV4Player extends BasePlayer {
moatVideoTracker(IMAAdsManager, uiContainer, window.google.ima.ViewMode.NORMAL, 'ooyala', 'featured-video');
}

IMAAdsManager.addEventListener('loaded', (eventData) => {
if (eventData.getAdData().vpaid === true) {
window.pp.mb.publish(window.OO.EVENTS.WIKIA.SHOW_AD_TIME_LEFT, false);
window.pp.mb.publish(window.OO.EVENTS.WIKIA.SHOW_AD_FULLSCREEN_TOGGLE, false);
}
}, false, this);

// that's a hack for autoplay on mobile for VPAID ads
// VPAID ads still don't work perfectly
let initiallyResumed = false;
Expand Down

0 comments on commit c186cee

Please sign in to comment.