// 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 the latest Game Settings Update for Call of Duty: Black Ops 4 on PlayStation 4, Xbox One, and PC.

Today’s new game settings update brings the Shamrock & Awe event to Call of Duty: Black Ops 4 on Xbox One and PC, after the in-game event debuted on PS4 last week.

The Shamrock & Awe event ends on March 26 on PlayStation 4, and April 2 on Xbox One and PC.

PlayStation 4 players also got access to the new Blackjack Shop update with new purchasable bundle including The Replacer Character.

“Ancient Evil” Arrives March 26 on PS4

The chilling next chapter of the Black Ops 4 Zombies saga unfolds next week on PS4 with “Ancient Evil”, the final Chaos story experience of the current Zombies season. We’ve got much more to share over the next week, with the world premiere of the gameplay trailer just around the corner.

And just in case you missed this morning’s teaser… Delphi awaits.

Shamrock & Awe Event (Xbox One/PC)

Shamrock & Awe continues on PS4 and arrives today on Xbox One and PC, bringing free seasonal content to Multiplayer, Blackout, and Zombies!

These limited-time updates include St. Patrick’s Stockpile in Multiplayer, Hardcore Mode along with the Homunculus Leprechauns and his Pot-o-Gold in Blackout, green-eyed zombies that come with their own new seasonal Easter Egg in Zombies, and free personalization items for logging in during the event.

Enjoy these seasonal in-game goodies during the month of March as we prepare for our next major game update on March 26, including all-new experiences in Multiplayer, Blackout, and Zombies.

Playlist & Blackout Updates on PC

We’ve also made some updates across all modes today on PC as a result of player feedback:

  • Multiplayer: We’ve heard the PC community’s feedback on the new Deathmatch Moshpit playlist, and we’ve split it back out into separate Team Deathmatch and Kill Confirmed playlists with today’s Game Settings update.
  • Blackout: We’ve reduced the number of players required to auto-start Quads, Duos, and Solo matches from 100 to 80 for faster match start times.
  • Zombies: As we prepare for the upcoming release of “Ancient Evil”, we’ve temporarily removed the “New Map” playlist on PC, which was previously for “Dead of the Night”. This map will still be playable in the “Chaos” playlist moving forward.

Read on below for today’s updates:

  • General
    • Shamrock & Awe Event now live in Multiplayer, Blackout, and Zombies (Xbox & PC)
    • Cha-Ching and Secret Santa melee range adjustments
    • Pause/play fix in Theater Mode
  • Multiplayer
    • St. Patrick’s Stockpile added as Featured Playlist (Xbox One/PC)
    • Stockpile added as Featured Playlist (PS4)
    • Mercenary Objective Moshpit, Hardcore Moshpit, One in the Chamber, and Domination added to the Featured category (consoles)
    • Mercenary Objective Moshpit, Hardcore Moshpit, One in the Chamber, and Objective Moshpit added to the Featured category (PC)
    • Deathmatch Moshpit playlist split into separate TDM and Kill Confirmed playlists on PC
  • Blackout
    • Hardcore Mode added as Featured Playlist (Xbox One/PC)
    • Homunculus Leprechaun, Pot-o-Gold, and seasonal Easter Egg added (Xbox One/PC)
    • Contraband Stashes featuring KAP 45, Rampage, and Switchblade X9 (Xbox One/PC)
    • Muscle Car and SUV added to Solos, Duos, and Quads (Xbox One/PC)
    • Reduced the number of players required to auto-start Quads, Duos, and Solo matches on PC from 100 to 80 for faster match start times
    • Hot Pursuit continues on all platforms
  • Zombies
    • “Hellcatraz” Gauntlet added (Xbox One/PC)
    • Green-eyed zombies and new seasonal Easter Egg added (Xbox One/PC)
    • Temporarily removed the “New Map” playlist on PC to prepare for the release of “Ancient Evil”
    • Stability fix for “Dead of the Night”

General

  • Weapons
    • Melee range for Cha-Ching and Secret Santa weapons adjusted to match the range of the Combat Knife.
  • Theater
    • Reinstated proper pause/play functionality in Theater.

Multiplayer

  • Game Modes
    • Featured category updated:
      • Mercenary Objective Moshpit
      • Hardcore Moshpit
      • One in the Chamber
      • Domination (Xbox One/PS4), Objective Moshpit (PC)

Blackout

  • Shamrock & Awe
    • Addressed an issue that allowed players to activate the Shamrock & Awe Easter Egg multiple times in a match.
    • Addressed an issue that prevented the rainbow from appearing when the Shamrock & Awe Easter Egg is available in an area.
  • Game Modes
    • Hot Pursuit continues on all platforms.

Zombies

  • Stability
    • Dead of the Night
      • Fixed a crash that could occur during the Stake Knife Quest.

General

  • Events
    • Shamrock & Awe Event now live in Multiplayer, Blackout, and Zombies.
    • Players can visit the Black Market to collect their free St. Patrick’s Day Gesture & Calling Card.

Multiplayer

  • Shamrock & Awe Event
    • St. Patrick’s Stockpile
      • Carry your banked enemy shamrocks to the nearest pot of gold to score points and claim victory for your team in this limited-time game mode.

Blackout

  • Game Modes
    • Hardcore added as Featured Playlist.
    • Quads version of Blackout with no HUD, armor, vehicles, or zombies.
    • No mini-map, player information, team information, compass, player count, or killfeed.
    • Quick Equip Menu disabled.
    • Med Kits are the only available healing items (no Trauma Kits or Bandages).
    • A fleet of helicopters drops flares overhead to inform players of each new circle location.
  • Weapons
    • Contraband Stashes
    • Contraband Stashes allow access to the latest weapons: Rampage shotgun, Switchblade X9 SMG, and KAP 45 auto-pistol.
  • Vehicles
    • Muscle Car & SUV
    • Muscle Car and SUV now available in Solos, Duos, and Quads, without their special abilities exclusive to Hot Pursuit.
  • Shamrock & Awe Event
    • St. Patrick’s-themed map updates, including additional loot available in Pot-o-Gold Stashes, Homunculus Leprechaun hoards, and in Mystery Boxes at the end of the rainbow.

Zombies

  • Gauntlets
    • Hellcatraz
      • Take on 30 rounds of new challenges as the Primis crew in “Blood of the Dead” for rewards at Tiers 10, 20, and 30.
  • Shamrock & Awe Event
    • Green-eyed zombies and a new seasonal Easter Egg now live in Classic Chaos story maps.

Multiplayer

  • Featured Playlists
    • Split the Deathmatch Moshpit back out into separate Team Deathmatch and Kill Confirmed playlists.
    • Objective Moshpit added to Featured category this week.

Blackout

  • General
    • Reduced the number of players required to auto-start Blackout Quads, Duos, and Solo matches from 100 to 80 for faster match start times.

Zombies

  • “New Map” Playlist
    • Temporarily removed the “New Map” playlist for Zombies, which was previously “Dead of the Night”.
    • This playlist will return on PC once “Ancient Evil” has been released for Black Ops Pass holders.
    • “Dead of the Night” can still be played in the “Chaos” playlist.

SOURCE: Treyarch

comments below