// 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); }; });

Treyarch has released a new Game Settings Update for Black Ops 4, bringing Nuketown and Hot Pursuit.

In addition, DLC4 Zombies teasers will arrive early next week.

2XP Nuketown Weekend is Here!

https://i.redd.it/wh5pvgj8amj31.png

You didn’t think we’d let you head into the long holiday weekend without some sweet 2XP and a dedicated Nuketown playlist, did you? Maybe you did. That’s fair. Well, buckle up because we’re activating our 2XP Nuketown playlist in Multiplayer, starting now through 10AM PT Tuesday, Sept. 3rd!

Hot Pursuit Returns on All Platforms

https://i.redd.it/gqo1c1gdamj31.jpg

We’re also bringing Hot Pursuit back to Blackout on all platforms today so you can slay all weekend long with your friends… and we’re not stopping next week, either. Special birthday shout-out to COD partymaster u/h0b0_shanker on this one… we got you.

We know just how much people love to play Hot Pursuit and Alcatraz, and while we try to keep them both featured as often as possible, we also have a ton of players who can’t get enough of Blackout’s other LTMs as well, including Ambush and Pandemic.

In the interest of keeping matchmaking times low and player counts high, we’ll continue to swap in new and returning LTMs from time to time in the Featured Playlist slot. After all, keeping things fresh and interesting is why we run limited-time modes. We’re happy to run Hot Pursuit and Alcatraz simultaneously this week so everyone can party up and get wild during the long weekend, so get out there and show us what you’ve got.

“Heatwave” Event Continues Through Sept. 3

https://i.redd.it/bqf7qxwgamj31.png

As an added bonus, you’ll unlock additional rewards as our new “Heatwave” Contraband event continues through 10AM PT Tuesday, culminating in an earnable Ultra Weapon Bribe at Tier 15. Remember to jump into Zombies every day for that extra Daily Tier Skip! And while we’re on the topic of Zombies…

The Final Chapter in the Aether Story Approaches

We know our Zombies community has been collectively counting the days, minutes, and seconds until the first hints of our final Aether story experience in Black Ops 4, and it’s almost time. As we near the end of the 2019 DLC season, the team has been 100% laser-focused on making this final map the best experience possible for long-time Zombies fans.

We also know the community has been looking forward to tying up all the loose ends from over a decade of storytelling, and we can’t wait to share the secrets and surprises to come. In the meantime, we’ll have the first details and teasers for DLC 4 coming early next week… so enjoy the long weekend, and we’ll see you when you get back.

See below for this weekend’s Featured Playlist updates:

https://i.redd.it/z8rsexckamj31.png

MULTIPLAYER

  • Featured Playlists (Aug. 30 – Sept. 3)
    • PS4/Xbox One
      • 2XP Nuketown
      • Party Game Moshpit
      • Mercenary Deathmatch Moshpit
      • Barebones Moshpit
      • Bolt-Action Barebones Moshpit
    • PC
      • 2XP Nuketown
      • Barebones Moshpit
      • Party Game Moshpit

BLACKOUT

  • Featured Playlists (Aug. 30 – Sept. 3)
    • PS4/Xbox One
      • Hot Pursuit
      • Alcatraz Portals
      • Quads
      • Duos
      • Solo
    • PC
      • Hot Pursuit
      • Alcatraz Portals
      • Quads

-Treyarch

comments below