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

The latest Game Settings Update for Call of Duty: Black Ops 4 has been released across PlayStation 4, Xbox One, and PC.

Today’s update is highlighted by a First Day of Summer Double XP celebration, which is live now on all platforms through June 25.

Treyarch has also shared a preview of what’s coming to Black Ops 4 on Tuesday, June 25, including a weather-altered map, Contracts, and more.

Here’s the full details on today’s update, from Treyarch:

Fun in the Sun Weekend is Here

It’s officially the first day of summer… who’s ready for some 2XP and free map access all weekend long? Better yet, why not all the way through Tuesday? Our Fun in the Sun Weekend kicks off today in Black Ops 4, featuring:

  • 2XP in Multiplayer
  • 2XP in Zombies
  • 2XP in League Play
  • 2X Merits in Blackout
  • Free Black Ops Pass MP Map access for all players in all Featured, Core, and Hardcore playlists
  • Map Pack Moshpit playlist featuring Masquerade, Artifact, and WMD
  • 50% Off Tiers

This event runs through 10AM Tuesday, when we’ll be dropping more new content in Multiplayer, Blackout, and Zombies. Speaking of which…New Content Arrives Tuesday with Contracts, Hacienda Twilight, Blackout Updates + More

Our next major update is coming on June 25th, including:

  • The launch of Contracts on all platforms, kicking off with a rotating selection of up to 28 Contracts to complete each day across all four modes (up to 196 Contracts per week!)
  • Our newest alternative lighting map in Multiplayer, Hacienda Twilight
  • More maps added to rotation for Prop Hunt and Capture the Flag
  • New MedalsEquipment, and Humiliations in Blackout
  • The introduction of Hard Mode Gauntlets in Zombies
  • Weapon tuning for the Daemon 3XB, Switchblade X9, and MOG 12 + more

In case you missed it, head over to our Contracts Blog for all the info on how Contracts work in Black Ops 4, as well as intel on the new Ultra Weapon Bribe that we’ll be introducing the following week as part of a new special event.

Post image

We also have some highly-requested bug fixes lined up for Tuesday that couldn’t be hotfixed before this next major game update. An issue with leveling up MKII Weapons is planned to be fixed in this update, as well as a remaining exploit on Grind. Thanks as always for the reports, and we appreciate your patience while we’ve nailed down these issues.Grav Assault Rifle Unlocked on PS4

With 15 million matches completed during our Community Challenge on PS4, the Grav assault rifle has now been unlocked for PS4 players in Multiplayer! Xbox One and PC players are already well past the 50% mark with their combined efforts, and will unlock the Grav in MP once the Community Challenge has been achieved across all platforms. Almost there!

Post image

On the competitive side, we’ve made a conscious decision to include the Grav in League Play. The Grav was designed with competitive play in mind, built with a set of attachments that are all unrestricted in the CWL ruleset. The release of the Grav gave us an opportunity to keep the competitive meta fresh with a new weapon available to everyone, and offers an alternative to the KN-57 or ICR-7 for mid-to-long range position play. We’ll be keeping a close eye on the performance and community/pro feedback for this weapon as we evaluate its place in the future of League Play.Featured Playlist Updates

We’ve added Map Pack Moshpit to the MP Featured Playlists with free access to Masquerade, Artifact, and WMD for all platforms, and for Zombies players on PC, we’ve replaced the Chaos and Aether Moshpits with individual playlists for each Zombies map. Enjoy the 2XP in all modes through Tuesday, and we’ll see you online.

Here’s what’s new in today’s update:

Post image

GLOBAL

  • Fun in the Sun Weekend Event (10AM June 21-25)
    • 2XP in Multiplayer
    • 2XP in Zombies
    • 2XP in League Play
    • 2X Merits in Blackout
    • Free Black Ops Pass MP Map access for all players in all Featured, Core, and Hardcore playlists
    • Map Pack Moshpit playlist featuring Masquerade, Artifact, and WMD
    • 50% Off Tiers

MULTIPLAYER

  • Weapons
    • S6 Stingray
      • Spectrum Camo progress can now be properly earned in Hardcore modes.
  • Featured Playlists (June 21-25)
    • PS4/Xbox One
      • Map Pack Moshpit
      • Capture the Flag
      • Barebones Deathmatch Moshpit
      • Prop Hunt
      • Mercenary Deathmatch Moshpit
    • PC
      • Map Pack Moshpit
      • Capture the Flag
      • Barebones Deathmatch Moshpit

BLACKOUT

  • Featured Playlists
    • PS4/Xbox One (June 18-25)
      • Ground War
      • Alcatraz Quads
      • Solo
      • Duos
      • Quads
    • PC (June 21-25)
      • Ground War
      • Alcatraz Quads
      • Solo
Post image

ZOMBIES

  • Playlists
    • Chaos and Aether Moshpits have been replaced with individual playlists for each map.

SOURCE: Treyarch

comments below