// 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 announced huge changes to Call of Duty: Black Ops 4’s Black Market in a new blog post on the Treyarch site.

The studio has announced that they will be providing players a direct path to access weapons in the game by just playing the game without RNG of the crates.

You will be able to see the Reserve items before acquiring them with the new Reserve Stacks.

From Treyarch:

Then, starting November 12th on all platforms, we‘ll be revamping the Black Market for Black Ops 4 to make all functional content, including base weapons and items in Blackjack’s Shop, unlockable simply by playing the game.

Earn Content in Blackjack’s Shop

In this upcoming update, all players will get more access to more rewards. These changes will include:

  • A new, regularly scheduled “Pick-a-Weapon Bribe” bundle available for 50 Reserve Cases that allows players to select the weapon of their choice (see details below).
  • A new rotating “Reserves Stack” that always displays an item from Reserves that you don’t currently own, which you can unlock by trading in 2 Reserve Cases.
  • Two new rotating “My Deals” slots that can be unlocked with Reserve Cases and will always showcase items you don’t currently own.
  • “Reserves Stack” and “My Deals” will refresh on a regular basis to reveal a new item, and will refresh instantly after the current item on display has been acquired.

These changes will give players the freedom to earn items available in Blackjack’s Shop with Reserve Cases, and for the first time, players will be able to see Reserve items before acquiring them through the new Reserves Stack. The above items will also be available for optional purchase.

With this update, players can continue to earn Reserve Cases in four ways:

  • Completing Contracts in any mode.
  • Earning Cases through the standard Reserve earn rate in Multiplayer and Blackout.
  • Unlocking Contraband Tiers after Tier 50.
  • Completing up to 2 Daily Tier Skips (includes the bonus Daily Tier Skip in Zombies) for additional Reserve Cases each day after Tier 50 has been reached.

Choose Your Black Market Weapons

The new Pick-a-Weapon Bribe bundle will appear in Blackjack’s Shop and the Reserves tab in the Black Market, allowing you to unlock a weapon of your choice from a Crate that also includes 2 Reserve items, along with a bonus of 5 Duplicate-Protected Crates, all for 50 Reserve Cases. This opens up a new way to earn the exact weapons you want in addition to unlocking more weapons through Reserves.

This bundle will allow you to choose from Reserve weapons that you don’t currently own, including Mastercrafts, Signature Weapons, MKII Weapons, and base versions. Keep an eye out for this offer to refresh in the future.

We can’t wait to bring these improvements to Black Ops 4 for everyone – as always, thanks for your continued support, and we’ll see you online!

SOURCE: Treyarch

comments below