// 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 have released the latest game settings update for Call of Duty: Black Ops 4 on PlayStation 4, Xbox One, and PC.

On PlayStation 4, Xbox One, and PC, Treyarch has added in two updated maps for free, for all Call of Duty: Black Ops 4 players. The two new maps, which were originally leaked from the PC files after the last game update, are now live for all players in multiplayer — bringing the current total map count to 17.

  • Firing Range Night: Black Ops Flashback: US forces gear up for red team/blue team combat exercises in this Guantanamo Bay military base.
  • Seaside Sunset: An anti-government protest in this quaint coastal Spanish town grew out of control and forced a military shutdown.

Alongside these new maps, Treyarch has added in the Safeguard mode from Call of Duty: Black Ops 3 back into Call of Duty: Black Ops 4 as the Featured MP Mode in the title on PS4, and brought HC Nuketown Playlist to the title as well under the Featured Playlist Section.

Treyarch: 

In today’s Black Ops 4 update: Safeguard makes its Black Ops 4 debut on PS4 in Multiplayer! Escort the robot into enemy territory and keep the opposing team from doing the same to secure the win. We’ve also added three new playlists to the Featured category on all platforms: Hardcore Nuketown, Mercenary Objective Moshpit, and Chaos Hardpoint. See below for details and let us know what you think.

Seaside Sunset and Firing Range Night join the MP map rotation starting today as well, bringing a new nighttime flair to two of our most frenetic maps. These map variants are free for all players and join the map rotation indefinitely – let us know which version you prefer in the comments.

For our Blackout players, the Bowie Knife is now available in Equipment Stashes and as Zombies-related drops on all platforms! Get your hands on one for some stealthy 1-hit kills. We’ve also added Character Missions to unlock Dempsey, Nikolai, Takeo, and Richtofen, and the Blightfather event has returned on PS4, now with reduced Blightfather health in Solos and Duos for faster takedowns.

Zombies gets a new round of stability updates today, including fixes for crashes in all maps and specific fixes for IX. Stay tuned for additional improvements in a future update, and some exciting additions to Zombies in the coming weeks.

Also, a note to our South American Blackout players: We’re currently testing a Featured Playlist-only setup on consoles to ensure more players in the region are able to join fuller matches with solid pings. Thanks for your patience as we continue to evaluate various solutions to deliver the best experience possible for Blackout players in this region, and please continue to give us your feedback here and on Twitter (@Treyarch and @TreyarchPC).

Finally, we’ve added a new Summary section below to provide a quick glimpse at what’s new in each update.

SUMMARY

  • Multiplayer
    • Safeguard (PS4).
    • Seaside Sunset and Firing Range Night.
    • Hardcore Nuketown, Chaos Hardpoint, Mercenary Objective Moshpit.
    • Exploit/bug fixes.
  • Blackout
    • Zombies Origins Character Missions (PS4).
    • Blightfather Event with lower health in Solos and Duos (PS4).
    • Bowie Knife now available on all platforms.
  • Zombies
    • Stability fixes across all maps.
  • General
    • Specialist HQ and After Action Report improvements.

ALL PLATFORMS

We’ve made the following changes on all platforms (version 262.34(54).22.0.28.0.16542 on PC):

Multiplayer

  • Playlists
    • Featured Playlist changed to Safeguard (PS4) / Hardcore Mercenary Moshpit (Xbox One and PC).
    • Hardcore Nuketown added to Featured category.
    • Chaos Hardpoint added to Featured category.
      • Hardpoints spawn in a random order
      • Score increases with each teammate on the Hardpoint
      • Score limit increased to 1000
      • 6v6
    • Mercenary Objective Moshpit added to Featured category.
      • Domination, Hardpoint, Control, Search & Destroy, Heist
      • No parties allowed
      • 5v5
  • Maps
    • Added Seaside Sunset and Firing Range Night to all playlists.
    • Closed exploits in Nuketown that allowed Ruin to grapple outside of the map.
    • Resolved an issue where the scoreboard would flash on screen after ending a game on Nuketown.
    • Resolved an issue on Summit that allowed Care Packages deployed on a ramp in the eastern part of the map to float.
  • Create-a-Class
    • Resolved an issue that removed an attachment from weapons with maximum attachments and a Clan Tag or Kill Counter equipped.
  • Challenges
    • Tactical Mask Challenge now properly tracks kills while an enemy Counter UAV is active.

Blackout

  • Weapons
    • Bowie Knife now available in Equipment Stashes, as a random drop from killing Zombies, and as a randomized item spawn in Zombies-themed locations on all platforms.
  • Character Missions
    • Zombies Origins Character Missions (Dempsey, Nikolai, Takeo, Richtofen) now available to find and complete (PS4).
  • Playlists
    • Blightfather event enabled in all playlists (PS4).
    • Reduced the health of the Blightfather in Solo and Duo playlists.

Zombies

  • Gameplay
    • IX
      • Resolved an issue where sliding under a Blade Trap without taking damage would not contribute to another player’s challenge.
  • Stability
    • General
      • Fixed a crash that could occur occasionally when using Anywhere But Here.
      • Fixed a rare crash that could occur when a player disconnected while another player was downed.
      • Fixed a rare crash that could occur when a player disconnected during Fast Travel.
    • IX
      • Fixed a crash that could occur when killing enemies with traps in IX.
      • Fixed additional crashes related to a player helping another with challenges in IX.

General

  • Specialist Headquarters
    • Improved Torque tutorial mission scripting.
  • After Action Report
    • After Action Report in Multiplayer and Blackout will now display all earned Tier Rewards and allow the player to scroll through the Tier Rewards menu.

SOURCE: Reddit

comments below