// 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 Patch Update for Call of Duty: Black Ops 4, version 1.21, on PlayStation 4 and Xbox One.

The update is 4.7GB on PlayStation 4 and 9GB on Xbox One. This new update for Black Ops 4 on PS4 was unexpected as Operation Apocalypse Z dropped just one week ago on PS4 with a big update file. For Xbox One and PC, the new update enables Operation Apocalypse Z content.

Full update notes from Treyarch:

Our latest Operation is now live on all platforms, with today’s update delivering new content and features to Multiplayer, Blackout, and Zombies on Xbox One and PC, including:

  • Multiplayer
    • Reaper playable in MP once unlocked at Tier 1 in the Contraband stream
    • 3 Black Ops Pass maps: Der Schatten, Remnant, and Havana
    • Sticks and Stones party game mode
    • Map Pack Moshpit featuring Der Schatten, Remnant, and Havana
  • Zombies
    • “Alpha Omega” now available with the Black Ops Pass
    • New Perk: Blood Wolf Bite
    • 2 Epic Elixirs added: Phoenix Up and Head Drama
    • New Black Ops 4 version of “Damned” music in the Zombies lobby
    • Support added for new Black Market weapons and new MKII Weapons
  • Blackout
    • “The Haunting Fog” and “Alcatraz: Nightfall” map updates
    • Quads Fog and Alcatraz Horde limited-time modes
    • Zombies Wonder Weapons now available in the Mystery Box
    • Outfit Mission added to unlock “The Numbers” Outfit for Reaper
    • Zombies-themed music now plays during infiltration
    • New Humiliations now available
  • Black Market
    • New Contraband stream including new Koshka Mastercraft at Tier 20 and earnable Ultra Weapon Bribe at Tier 40
    • Reaver C86 auto-crossbow, Argus shotgun, new weapon camos, MKII Weapons, Zombies-themed outfits, and more now available

Light Breaks In and Reaper Deploys in Blackout

Daylight has begun to trickle in through the fog in Blackout’s main map, bringing higher visibility and improved lighting to core Quads, Duos, and Solo matches. While a light mist still remains, you’ll have an easier time tracking your prey in the main map with today’s update. Quads Fog and Alcatraz matches will retain their current lighting conditions to keep things interesting, no matter which Blackout mode you’re into.

Reaper also returns to Blackout on all platforms along with Reaper’s Outfit Mission for “The Numbers” camo on Xbox One and PC, plus gameplay improvements for Alcatraz and various bug fixes across all modes. See below for the patch notes on what’s new since our last update:

Post image
  • Operation Apocalypse Z content now live on Xbox One and PC.
  • Improved lighting and visibility in core Quads, Duos, and Solo matches in Blackout.
  • Reaper now playable in Blackout on all platforms.
  • Alcatraz gameplay improvements in Blackout.
  • Fixed an issue in Blackout that would sometimes display negative Merits.
  • Enabled parties of up to 4 players in Sticks and Stones in Multiplayer.
  • Addressed issues with Reaver C86 Purple Hex camo, Crash’s “The Snitch” outfit, and certain Contracts in the After Action Report in Multiplayer.
  • Various stability improvements for Zombies in “Alpha Omega”.
  • Corrected FX on certain Death Effects.
  • Featured Playlist updates on all platforms.
Post image

MULTIPLAYER

  • Game Modes
    • Sticks and Stones
      • Enabled parties of up to four players in Sticks and Stones.
  • Create-a-Class
    • Purple Hex camo for the Reaver C86 now requires 5 Revenge kills to unlock.
  • Contracts
    • Addressed an issue with some Contracts not showing up properly in the After Action Report.
  • Outfits
    • Crash’s “The Snitch” outfit will now properly display full heatmap in NVIR scopes.
  • Stability
    • Fixed a crash that could occur when switching from the Reaver C86 to any weapon with a Mastercraft on Xbox One.
  • Featured Playlists (July 16-23)
    • PS4
      • Bolt-Action Barebones
      • Sticks and Stones
      • Barebones Objective Moshpit
      • Mercenary Objective Moshpit
      • Deathmatch Domination
    • Xbox One
      • Sticks and Stones
      • Map Pack Moshpit
      • Prop Hunt
      • Mercenary Objective Moshpit
      • Barebones Objective Moshpit
    • PC
      • Sticks and Stones
      • Bolt-Action Barebones
      • Deathmatch Domination

BLACKOUT

  • Maps
    • Main Map
      • Daylight has begun to break through the mist on the main Blackout map, brightening the environment and increasing visibility in Quads, Duos, and Solos matches (Quads Fog LTM and Alcatraz not affected).
    • Alcatraz
      • The Warden will now drop Trauma Kits and Med Kits more consistently.
      • Added collision to a rock near the Shipwreck on Alcatraz.
  • Characters
    • Reaper
      • Reaper now playable in Blackout on all platforms with corrected footstep audio.
    • Merits
      • Addressed an issue that would sometimes display a negative Merit value.
  • Featured Playlists (July 16-23)
    • PS4/Xbox One
      • Alcatraz Horde
      • Quads Fog
      • Quads (improved lighting)
      • Duos (improved lighting)
      • Solo (improved lighting)
    • PC
      • Alcatraz Horde
    • Quads Fog
      • Duos (improved lighting)

ZOMBIES

  • Stability
    • “Alpha Omega”
      • Fixed an issue where Pack-a-Punching a Saug 9mm with Clan Tag and Dual Wield could cause a crash.
      • Fixed a crash that could occur by when a player entered “Clear” as the first input in the Rushmore keypad.
      • Fixed a crash that could occur when other players joined the match while a player used a telepad.
      • Fixed a crash that could occur when players progressed Easter Egg quests during certain Rushmore VO.
      • Fixed a crash that could occur when multiple players interacted with the power switch simultaneously.
      • Various general stability improvements.

GLOBAL

  • Death Effects
    • Added proper FX to Magma and Black Hole Death Effects.

SOURCE: Treyarch

comments below