// 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 is now officially live on PlayStation 4, Xbox One, and PC.

As part of this update, Treyarch has added in a Special Fourth of July Contraband Stream into the Black Market across platforms, giving players new tiers to go through to unlock July 4th-themed gear. The new Tiers also includes the first Ultra Weapon Bribe, which gives players one dupe-protected Black Market weapon to use in Call of Duty: Black Ops 4.

The new tier system has 15 tiers total. Every other tier is a Reserve Case, and then the highest tier is an Ultra Weapon Bribe.

Image via @eColiespresso

Beyond this week’s update, the next big content drop for Call of Duty: Black Ops 4 will be on July 9 with the fifth Operation for the game releases on PlayStation 4 and brings a new Zombies DLC map. Stay tuned for more info on Operation 5.

FROM TREYARCH:

Operation Apocalypse Z Starts July 9th on PS4

The zombie apocalypse arrives one week from today on PS4 as the undead take over Multiplayer, Zombies, and Blackout in Operation Apocalypse Z! We’ll have more intel and surprises to share as we count down to launch, along with more of what’s in store for the next chapter of the Zombies Aether story in “Alpha Omega”.

Speaking of which… prepare to get your hands on some newly-upgraded hardware courtesy of Broken Arrow.

Post image

“Fourth of July” Special Event Now Live

Starting today on all platforms, our “Fourth of July” special event is now live in the Contraband stream, culminating in a new earnable Ultra Weapon Bribe at the 15th Tier. Ultra Weapon Bribes reward players with a new ranged Black Market weapon and two Reserve Cases when opened. If you already own a variant of all Black Market weapons, you’ll be rewarded with an additional weapon variant from your Ultra Weapon Bribe. Get out there, enjoy the new rewards, and have a safe and happy Fourth!Duplicate-Protected Crates Now Available for Trade-In

New Duplicate-Protected Crates are now available on all platforms for trade-in at the Reserves tab in the Black Market. Players can trade in six Reserve Cases for a new Duplicate-Protected Crate containing three distinct Reserve items, so be sure to complete as many Contracts as possible across all modes each day to maximize your rewards.Bolt-Action Barebones and Hardcore Blackout Return

As we ramp up to next week’s new Operation, we’re bringing back two fan-favorite playlists this week with Bolt-Action Barebones in Multiplayer and Hardcore Duos in Blackout, both available on all platforms. Multiplayer fans on PC can also jump into Endurance Free-for-All for the first time this week!

On Xbox One and PC, today’s update delivers the new Hard Mode “Unsinkable” Gauntlet in Zombies, Blackjack’s Stash in Blackout’s limited-time modes, and the new “Numbers” Death Effect to all modes for players who’ve completed at least one Outfit Mission in Blackout. Check out the patch notes below for all the details.

We’re also tracking a known issue with the Koshka MKII incorrectly displaying the base version of the weapon in-game, with a fix planned for our next major update. Here’s what new today:

Post image

GLOBAL

  • Black Market
    • Special Event
      • “Fourth of July” event now live in the Contraband stream on all platforms.
      • New Ultra Weapon Bribe earnable at the 15th Tier, which will reward players with a new ranged Black Market weapon and two Reserve Cases. If the player already owns a variant of all Black Market weapons, they will be awarded an additional weapon variant.
    • Duplicate-Protected Crates
      • Duplicate-Protected Crates now available for trade-in at the Reserves tab in the Black market.
      • Players can now trade in six Reserve Cases for a new Crate containing three duplicate-protected Reserve items.

BLACKOUT

  • Limited-Time Modes
    • Hardcore
      • Hardcore Duos playlist now live on all platforms.
      • Disabled EMP Disruptor in Hardcore playlists.
    • Hot Pursuit
      • Added a fifth Collapse to Hot Pursuit.
  • Miscellaneous
    • Addressed an issue that prevented the last squad member to die from seeing their Merit report.
  • Featured Playlists (July 2-9)
    • PS4/Xbox One
      • Hot Pursuit
      • Hardcore Duos
      • Solo
      • Duos
      • Quads
    • PC
      • Quickplay
      • Alcatraz Duos
      • Hardcore Duos
      • Quads

MULTIPLAYER

  • Featured Playlists (July 2-9)
    • PS4/Xbox One
      • Endurance Chaos Moshpit
      • Bolt-Action Barebones
      • Barebones Objective Moshpit
      • Prop Hunt
      • Mercenary Deathmatch Moshpit
    • PC
      • Quickplay
      • Endurance Chaos Moshpit
      • Bolt-Action Barebones
      • Endurance Free-for-All
Post image

GLOBAL

  • Death Effects
    • “Numbers” Death Effect now rewarded in all modes for completing at least one Outfit Mission in Blackout.

BLACKOUT

  • Blackjack’s Stash
    • Blackjack’s Stash now available to find and open only in limited-time modes.
    • Players can unlock only one of Blackjack’s Stashes per match, which contain Black Market weapons currently in the player’s collection.

ZOMBIES

  • Gauntlets (Hard Mode)
    • Hard Mode “Unsinkable” Gauntlet now available with doubled Nebulium Plasma rewards and Hard Mode-exclusive Medals and Calling Cards to earn.

SOURCE: Treyarch

comments below