// 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’s latest Game Settings Update is live in Call of Duty: Black Ops 4 with some bug fixes and updates to PlayStation 4 and Xbox One. The latest large patch update for Black Ops 4 went live yesterday on PS4 and Xbox One; the details on that are available here.

Treyarch stated the next PC update is scheduled for April 2.

Today’s update includes some additional details on the Free Weapon Crate (available now on PS4), Blackout low population region details, bug fixes, and more.

Check out the details below:

Free MKII Weapon Crate

Live this week on PS4 with other platforms to follow: Get your free Weapon Crate at the Black Market for a guaranteed MKII Weapon that grants +25% bonus XP per kill, plus two additional free Reserve items. This is a limited-time offer, so redeem yours before it’s gone.

Low-Population Region Blackout Update

For our players in regions with lower player populations including parts of South Africa and South America, we’re also happy to announce that we’ve expanded your available Blackout playlists on consoles to include a second rotating playlist that is planned to cycle each week, in addition to the current global Featured Playlist and. We hope this provides more ways to enjoy Blackout while still keeping match wait times low and matchmaking quality high in these regions.

This update is live today on consoles in regions with lower player populations. Thanks for your patience as we continue to monitor matchmaking conditions in all regions across the globe.

Read on below for today’s updates:

  • Bug fixes and gameplay improvements in Multiplayer, Blackout, and Zombies.
  • Added a second rotating playlist for lower player population regions in addition to the global Featured Playlist option on consoles in Blackout.
  • Redeploying multiple times in Hot Pursuit now provides players with progressive loadouts in Blackout.
  • Nomad’s K9-Unit kills will now properly track toward the “Special Weapon Kills” Challenge in Multiplayer.
  • Gameplay improvements and stability fixes for “Ancient Evil” in Zombies (PS4).
  • Stability fix for new Zombshell Perk in Zombies (PS4).

The following updates are live on PS4, with other platforms to follow:


  • Ancient Evil
    • Gaia Wonder Weapon can no longer insta-kill zombies at high rounds.
    • Addressed an issue with characters speaking over the Pegasus cut scene.
    • Addressed visual issues that could occur when a player was downed while the “Do Not Take Damage” Tribute was active.
    • Addressed a streaming issue with the Giant Drakaina on the dark side of the map.
    • Addressed a rare issue where enemies could become un-targetable by wonder weapons during Main Quest Amphitheater step.
  • Stability
    • Ancient Evil
      • Fixed a crash that could occur during the Redeemed Hand of Gaia Quest.
    • Zombshell Perk
      • Fixed a crash that could occur when a player was downed while the Zombshell Perk’s area effect was active.

The following updates are live on PS4 and Xbox One, with PC to follow:


  • Equipment
    • Thrown Equipment will now damage the correct enemy if the player changes teams while the Equipment is still active.
  • Challenges
    • Nomad’s K9-Unit kills will now properly track toward the “Special Weapon Kills” Challenge.
  • Lobby
    • Addressed an issue where lobbies could occasionally become non-joinable.


  • Game Modes
    • Hot Pursuit
      • Redeploying multiple times in Hot Pursuit now provides players with progressive loadouts, up to a final loadout stage including an MX9 and Armor.
  • Playlist Update
    • Added a second rotating playlist for lower player population regions in addition to the global Featured Playlist option. Currently set at Duos.
  • UI
    • Cleaned up overlapping text that sometimes appeared on the Eliminated screen.


  • Host Migration
    • Addressed an issue where Scarlett would always appear in the After Action Report after a host migration.
  • Stability
    • Fixed a crash that could occur when the non-host of a 2-player private game disconnected from the match.

SOURCE: Treyarch

comments below