// initialize jwplayer var playerInstance = jwplayer('player'); // player dom elements var playerContainerEl = document.querySelector('.player-container'); // returns video player position from top of document function getElementOffsetTop(el) { var boundingClientRect = el.getBoundingClientRect(); var bodyEl = document.body; var docEl = document.documentElement; var scrollTop = window.pageYOffset || docEl.scrollTop || bodyEl.scrollTop; var clientTop = docEl.clientTop || bodyEl.clientTop || 0; return Math.round(boundingClientRect.top + scrollTop - clientTop); } // returns the current y scroll position function getScrollTop() { var docEl = document.documentElement; return (window.pageYOffset || docEl.scrollTop) - (docEl.clientTop || 0); } // configure jwplayer instance playerInstance.setup({ autostart: true, playlist: 'https://cdn.jwplayer.com/v2/playlists/mYdavspX', primary: 'html5', setFullscreen: true, width: '100%' }); // when jwplayer instance is ready playerInstance.on('ready', function() { var config = playerInstance.getConfig(); var utils = playerInstance.utils; // get height of player element var playerHeight = config.containerHeight; // flag determining whether close has been clicked var closed = true; // CHANGED // flag determing whether player is playing var playing = false; // ADDED // eventhandler for when close button is being pressed document.getElementsByClassName('icon-close')[0].addEventListener('click', () => { closed = true; onScrollViewHandler(); }); playerInstance.on('play', function() { closed = false; playing = true; // ADDED }).on('pause', function () { playing = false; // ADDED }).on('adPlay', function() { closed = false; // ADDED playing = true; // ADDED }).on('adPause', function() { playing = false; // ADDED }); // get player element position from top of document var playerOffsetTop = getElementOffsetTop(playerContainerEl); // set player container to match height of actual video element playerContainerEl.style.height = playerHeight + 'px'; // below we handle window scroll event without killing performance function onScrollViewHandler() { var minimized = getScrollTop() >= playerOffsetTop; if (closed && minimized) { minimized = false; jwplayer().pause(); playing = false; // ADDED } else if (!minimized && !playing) { closed = true; // ADDED } utils.toggleClass(playerContainerEl, 'player-minimize', minimized); // update the player's size so the controls are adjusted playerInstance.resize(); } // namespace for whether or not we are waiting for setTimeout() to finish var isScrollTimeout = false; // window onscroll event handler window.onscroll = function() { // skip if we're waiting on a scroll update timeout to finish if (isScrollTimeout) return; // flag that a new timeout will begin isScrollTimeout = true; // otherwise, call scroll event view handler onScrollViewHandler(); // set new timeout setTimeout(function() { // reset timeout flag to false (no longer waiting) isScrollTimeout = false; }, 80); }; });

The latest Game Settings Update for Call of Duty: Black Ops 4 on all platforms is live, and there’s new, limited time Black Ops Pass bonuses, return of Hot Pursuit, and more.

Here’s the details:

Party Up With Black Ops Pass + New Rewards for Pass Holders

Today, we’re excited to announce new rewards for Black Ops Pass owners (and their friends) as we prepare to kick off the second half of Operation Spectre Rising in early June, which will deliver new ways for all Black Ops 4players to earn in-game rewards.


Starting today, Black Ops Pass holders instantly grant access to all Black Ops Pass MP maps to their squadmates while playing in a party. Pass holders also now receive a bonus of 5 Reserve Crates (containing 15 Reserve items), plus a one-week bonus of 2X Tiers for themselves and their party members now through May 28th!

With these new rewards, Black Ops Pass holders now get access to:

  • 12 Multiplayer maps
  • 5 Zombies experiences
  • 4 unique Blackout characters
  • 5 Reserve Crates (one-time bonus)
  • 1,000 COD Points (one-time bonus)
  • 300 Nebulium Plasma (one-time bonus)
  • Access to all Black Ops Pass MP maps for party members
  • 2X Tier Boost for owners and their party members through May 28th

Check out the official trailer for details, and watch for more intel later this week on what’s in store for our next major update for all Black Ops 4 players.

Hot Pursuit Returns to Blackout

Hot Pursuit is back in Blackout this week on all platforms! Time to squad up and drop in again… and again and again. If you’re enjoying Hot Pursuit, let us know what you like most about the mode in the comments below – we’re always working on ways we can improve with the next revision.


Speaking of which, we’ve heard your feedback on the inclusion of shotguns in our latest version of Ambush, and we’ll be making some changes behind the scenes for its next release. While we heard from plenty of players who enjoyed getting the jump on their enemies with their favorite 12-gauge, we can definitely appreciate the beauty of snipers-and-knives gameplay. Watch out for the return of Ambush later this summer after Ground War makes its debut during the second half of Operation Spectre Rising.

Featured Playlist Updates and Improvements

We’ve also extended Prop Hunt’s placement in the Featured Playlist category as it quickly became our 2nd-most played MP game mode as of May 16th on PS4. Finally, we’ve included some improvements in Blackout and MP since our last update, including a fix for exploitable areas in Blackout’s main map and paintjobs showing up unexpectedly on weapons, as well as improvements for Prop Hunt and Control.

Here’s what’s new:



  • Black Ops Pass
    • Black Ops Pass holders now grant access to all Black Ops Pass Multiplayer maps to their squadmates while playing in a party.
    • Black Ops Pass holders now receive a one-time bonus of 5 Reserve Crates (15 Reserve items).
    • 2X Tiers now live for Black Ops Pass holders and their party members through 10AM PT Tuesday, May 28.


  • Featured Playlists (May 17-24)
    • PS4/Xbox One
      • Barebones Deathmatch Moshpit
      • Prop Hunt
      • Infected
      • Deathmatch Domination
      • Mercenary Deathmatch Moshpit
    • PC
      • Barebones Deathmatch Moshpit
      • Prop Hunt
      • Deathmatch Domination
  • Game Modes
    • Prop Hunt
      • Improved HUD visuals during Best Play.
    • Controls
      • Removed an unnecessary delay at the end of Control rounds.


  • Featured Playlists (May 21-28)
    • PS4/Xbox One
      • Hot Pursuit
      • Alcatraz
      • Solo
      • Duos
      • Quads
    • PC
      • Hot Pursuit
      • Alcatraz
      • Solo
  • Miscellaneous
    • Addressed a bug that allowed paintjobs to erroneously appear on weapons in Blackout.
    • Closed some exploitable locations in the main map.

SOURCE: Reddit

comments below